diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-07-25 16:48:48 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-07-25 16:48:48 +0000 |
commit | 6cd5852ed0d7c1a8426821356f4d388485bfbcfe (patch) | |
tree | 3f27f8a017c7215e16cc7de8d812834072c23522 /usr/local | |
parent | 8a3c130b6a8828971f8991e4bac9165453f2d494 (diff) | |
download | pfsense-6cd5852ed0d7c1a8426821356f4d388485bfbcfe.zip pfsense-6cd5852ed0d7c1a8426821356f4d388485bfbcfe.tar.gz |
Link reboot against Yes button. Move No button before yes to take priority.
While here, center form.
Ticket #248
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/www/reboot.php | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/usr/local/www/reboot.php b/usr/local/www/reboot.php index 9f19897..184c430 100755 --- a/usr/local/www/reboot.php +++ b/usr/local/www/reboot.php @@ -32,16 +32,6 @@ require("guiconfig.inc"); -if ($_POST) { - if ($_POST['Submit'] != " No ") { - system_reboot(); - $rebootmsg = "The system is rebooting now. This may take one minute."; - } else { - header("Location: index.php"); - exit; - } -} - $pgtitle = "Diagnostics: Reboot System"; include("head.inc"); @@ -49,15 +39,28 @@ include("head.inc"); <body link="#0000CC" vlink="#0000CC" alink="#0000CC"> <?php include("fbegin.inc"); ?> <p class="pgtitle"><?=$pgtitle?></p> +<center> <?php if ($rebootmsg): echo print_info_box($rebootmsg); else: ?> <form action="reboot.php" method="post"> <p><strong>Are you sure you want to reboot the system?</strong></p> <p> - <input name="Submit" type="submit" class="formbtn" value=" Yes "> <input name="Submit" type="submit" class="formbtn" value=" No "> + <input name="Submit" type="submit" class="formbtn" value=" Yes "> </p> </form> <?php endif; ?> <?php include("fend.inc"); ?> </body> </html> + +<?php +if ($_POST) { + if ($_POST['Submit'] == " Yes ") { + system_reboot(); + $rebootmsg = "The system is rebooting now. This may take one minute."; + } else { + header("Location: index.php"); + exit; + } +} +?> |