Révision 62424bdb
Ajouté par Renato Botelho il y a plus de 9 ans
usr/local/www/services_unbound_acls.php | ||
---|---|---|
32 | 32 |
require("guiconfig.inc"); |
33 | 33 |
require("unbound.inc"); |
34 | 34 |
|
35 |
$referer = (isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '/services_unbound_acls.php'); |
|
36 |
|
|
35 | 37 |
if (!is_array($config['unbound']['acls'])) |
36 | 38 |
$config['unbound']['acls'] = array(); |
37 | 39 |
|
... | ... | |
302 | 304 |
<td width="22%" valign="top"> </td> |
303 | 305 |
<td width="78%"> |
304 | 306 |
<br /> |
305 |
<input name="Submit" type="submit" class="formbtn" value="<?=gettext("Save"); ?>" /> <input type="button" class="formbtn" value="<?=gettext("Cancel"); ?>" onclick="history.back()" /> |
|
307 |
<input name="Submit" type="submit" class="formbtn" value="<?=gettext("Save"); ?>" /> |
|
308 |
<input type="button" class="formbtn" value="<?=gettext("Cancel");?>" onclick="window.location.href='<?=$referer;?>'" /> |
|
306 | 309 |
</td> |
307 | 310 |
</tr> |
308 | 311 |
</table> |
Formats disponibles : Unified diff
Remove almost all calls to history.back() and make Cancel button back to HTTP_REFERER, there are a couple of places I didn't touch on this commit because it requires more work