mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +01:00
changed the code, to not rely on english language
It was not possible to delete users.
This commit is contained in:
parent
bfc67191a7
commit
311d7e65d9
@ -13,7 +13,7 @@
|
||||
|
||||
$phpgw_info = array();
|
||||
|
||||
if ($submit || !$account_id)
|
||||
if ($delete_account || !$account_id)
|
||||
{
|
||||
$phpgw_info["flags"] = array("noheader" => True, "nonavbar" => True);
|
||||
}
|
||||
@ -22,13 +22,13 @@
|
||||
include("../header.inc.php");
|
||||
// Make sure they are not attempting to delete their own account, or they have cancelled.
|
||||
// If they are, they should not reach this point anyway.
|
||||
if($submit=='Cancel' || $phpgw_info['user']['account_id'] == $account_id)
|
||||
if($cancel || $phpgw_info['user']['account_id'] == $account_id)
|
||||
{
|
||||
Header('Location: '.$phpgw->link('/admin/accounts.php'));
|
||||
$phpgw->common->phpgw_exit();
|
||||
}
|
||||
|
||||
if (($account_id) && ($submit<>'Delete'))
|
||||
if ($account_id && !$delete_account)
|
||||
{
|
||||
$phpgw->template->set_file(array("form" => "delete_account.tpl"));
|
||||
|
||||
@ -55,7 +55,7 @@
|
||||
|
||||
$phpgw->common->phpgw_footer();
|
||||
}
|
||||
if($submit=='Delete')
|
||||
if($delete_account)
|
||||
{
|
||||
$accountid = $account_id;
|
||||
settype($account_id,'integer');
|
||||
|
@ -10,7 +10,7 @@
|
||||
<td align="center">{new_owner_select}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center"><input type="submit" name="submit" value="{cancel}"> <input type="submit" name="submit" value="{delete}"></td>
|
||||
<td align="center"><input type="submit" name="cancel" value="{cancel}"> <input type="submit" name="delete_account" value="{delete}"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
|
@ -10,7 +10,7 @@
|
||||
<td align="center">{new_owner_select}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center"><input type="submit" name="submit" value="{cancel}"> <input type="submit" name="submit" value="{delete}"></td>
|
||||
<td align="center"><input type="submit" name="cancel" value="{cancel}"> <input type="submit" name="delete_account" value="{delete}"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
|
@ -10,7 +10,7 @@
|
||||
<td align="center">{new_owner_select}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center"><input type="submit" name="submit" value="{cancel}"> <input type="submit" name="submit" value="{delete}"></td>
|
||||
<td align="center"><input type="submit" name="cancel" value="{cancel}"> <input type="submit" name="delete_account" value="{delete}"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
|
Loading…
Reference in New Issue
Block a user