diff options
author | sullrich <sullrich@pfsense.org> | 2009-11-29 18:21:59 -0500 |
---|---|---|
committer | sullrich <sullrich@pfsense.org> | 2009-11-29 18:22:11 -0500 |
commit | 344c68b209a983c9f9500593ab489d3d5f15646e (patch) | |
tree | 3d4b565697db50b6f3fb576930d696a9b3344a56 | |
parent | 343bb325f6d3e6b9d477495b367885b317e40d0a (diff) | |
download | pfsense-344c68b209a983c9f9500593ab489d3d5f15646e.zip pfsense-344c68b209a983c9f9500593ab489d3d5f15646e.tar.gz |
Post against reboot.php and reboot instead of reinventing the wheel. Ticket #191
-rwxr-xr-x | usr/local/www/diag_backup.php | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/usr/local/www/diag_backup.php b/usr/local/www/diag_backup.php index 241c042..53325e3 100755 --- a/usr/local/www/diag_backup.php +++ b/usr/local/www/diag_backup.php @@ -141,11 +141,10 @@ function spit_out_select_items($area, $showall) { if ($_POST['apply']) { ob_flush(); flush(); - sleep(5); - conf_mount_rw(); - clear_subsystem_dirty("restore"); - conf_mount_ro(); - mwexec("/sbin/shutdown -r now"); + conf_mount_rw(); + clear_subsystem_dirty("restore"); + conf_mount_ro(); + Header("Location: reboot.php?") exit; } @@ -493,12 +492,16 @@ function decrypt_change() { //--> </script> -<form action="diag_backup.php" method="post" name="iform" enctype="multipart/form-data"> + <?php if ($input_errors) print_input_errors($input_errors); ?> <?php if ($savemsg) print_info_box($savemsg); ?> <?php if (is_subsystem_dirty('restore')): ?><p> +<form action="reboot.php" method="post"> +<input name="Submit" type="hidden" value=" Yes "> <?php print_info_box_np("The firewall configuration has been changed.<br>You must apply the new config by restarting the firewall in order for changes to take effect.", "apply", "Reboot firewall");?><br> +</form> <?php endif; ?> +<form action="diag_backup.php" method="post" name="iform" enctype="multipart/form-data"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td> |