summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-07-24 23:46:57 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-07-24 23:46:57 +0000
commit8ed1f1a97711654ca5a5ec4bfe69925a9e51ac3e (patch)
tree4935ead4b0595aa51bf18add2b28393e275d8756
parent12886b41977625b8d9dc14cd2f4d9fcaee3914f3 (diff)
downloadpfsense-8ed1f1a97711654ca5a5ec4bfe69925a9e51ac3e.zip
pfsense-8ed1f1a97711654ca5a5ec4bfe69925a9e51ac3e.tar.gz
Reload configuration after page is displyaed if needed
-rwxr-xr-xusr/local/www/diag_backup.php13
1 files changed, 11 insertions, 2 deletions
diff --git a/usr/local/www/diag_backup.php b/usr/local/www/diag_backup.php
index 7964f2c..2ecdfad 100755
--- a/usr/local/www/diag_backup.php
+++ b/usr/local/www/diag_backup.php
@@ -142,7 +142,8 @@ if ($_POST) {
conf_mount_rw();
touch("/needs_package_sync");
conf_mount_ro();
- reload_all();
+ $reloadall = true;
+
$savemsg = "The configuration has been restored. The firewall is now reloading the settings.";
} else {
$input_errors[] = "The configuration could not be restored.";
@@ -159,7 +160,7 @@ if ($_POST) {
if ($ver2restore <> "") {
$conf_file = "{$g['cf_conf_path']}/bak/config-" . strtotime($ver2restore) . ".xml";
if (config_install($conf_file) == 0) {
- reload_all();
+ $reloadall = true;
$savemsg = "The configuration has been restored. The firewall is now reloading the settings.";
} else {
$input_errors[] = "The configuration could not be restored.";
@@ -259,3 +260,11 @@ include("head.inc");
<?php include("fend.inc"); ?>
</body>
</html>
+
+<?php
+
+if($reloadall == true) {
+ reload_all();
+}
+
+?> \ No newline at end of file
OpenPOWER on IntegriCloud