diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-10-19 03:43:51 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-10-19 03:43:51 +0000 |
commit | c7c5bffbf9cb75297ae26187c5a4d6beb0156253 (patch) | |
tree | 1c91ef00d7c9d6e26cb143a563a941ae1a67bb14 /packages/autoconfigbackup/autoconfigbackup.php | |
parent | d213f559fd5b3c52734854f225b30d4af5308f24 (diff) | |
download | pfsense-packages-c7c5bffbf9cb75297ae26187c5a4d6beb0156253.tar.gz pfsense-packages-c7c5bffbf9cb75297ae26187c5a4d6beb0156253.tar.bz2 pfsense-packages-c7c5bffbf9cb75297ae26187c5a4d6beb0156253.zip |
Axe the user if they would like to reboot after restore.
Diffstat (limited to 'packages/autoconfigbackup/autoconfigbackup.php')
-rw-r--r-- | packages/autoconfigbackup/autoconfigbackup.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/packages/autoconfigbackup/autoconfigbackup.php b/packages/autoconfigbackup/autoconfigbackup.php index 10ec7ac0..fc12785e 100644 --- a/packages/autoconfigbackup/autoconfigbackup.php +++ b/packages/autoconfigbackup/autoconfigbackup.php @@ -96,6 +96,15 @@ if($_REQUEST['newver'] != "") { if(!$input_errors && $data) { if(config_restore("/tmp/config_restore.xml") == 0) { $savemsg = "Successfully reverted the pfSense configuration to timestamp " . urldecode($_REQUEST['newver']) . "."; + $savemsg .= <<<EOF + <p/> + <form action="reboot.php" method="post"> + Would you like to reboot? + <input name="Submit" type="submit" class="formbtn" value=" Yes "> + <input name="Submit" type="submit" class="formbtn" value=" No "> + </form> +EOF; + } else { $savemsg = "Unable to revert to the selected configuration."; } |