aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-10-19 03:43:51 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-10-19 03:43:51 +0000
commitc7c5bffbf9cb75297ae26187c5a4d6beb0156253 (patch)
tree1c91ef00d7c9d6e26cb143a563a941ae1a67bb14 /packages
parentd213f559fd5b3c52734854f225b30d4af5308f24 (diff)
downloadpfsense-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')
-rw-r--r--packages/autoconfigbackup/autoconfigbackup.php9
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.";
}