Révision 7c2d0050
Ajouté par Renato Botelho il y a plus de 9 ans
usr/local/www/system_usermanager.php | ||
---|---|---|
63 | 63 |
|
64 | 64 |
$a_user = &$config['system']['user']; |
65 | 65 |
|
66 |
if (isset($_SERVER['HTTP_REFERER'])) |
|
67 |
$referer = $_SERVER['HTTP_REFERER']; |
|
68 |
else |
|
69 |
$referer = '/system_usermanager.php'; |
|
70 |
|
|
66 | 71 |
if (isset($id) && $a_user[$id]) { |
67 | 72 |
$pconfig['usernamefld'] = $a_user[$id]['name']; |
68 | 73 |
$pconfig['descr'] = $a_user[$id]['descr']; |
... | ... | |
823 | 828 |
<td width="22%" valign="top"> </td> |
824 | 829 |
<td width="78%"> |
825 | 830 |
<input id="submit" name="save" type="submit" class="formbtn" value="<?=gettext("Save");?>" /> |
826 |
<input type="button" value="<?=gettext("Cancel");?>" onclick="window.location.href='/system_usermanager.php'" />
|
|
831 |
<input type="button" value="<?=gettext("Cancel");?>" onclick="window.location.href='<?=$referer;?>'" />
|
|
827 | 832 |
<?php if (isset($id) && $a_user[$id]): ?> |
828 | 833 |
<input name="id" type="hidden" value="<?=htmlspecialchars($id);?>" /> |
829 | 834 |
<?php endif;?> |
Formats disponibles : Unified diff
Back to referer instead of hard coded system_usermanager.php since this page is called from other places