diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-03-21 19:40:54 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-03-21 19:40:54 +0000 |
commit | f4f0779847ee8e876a21449e41489673168c3ea9 (patch) | |
tree | d0f93ddef214a6df93e6b6f9482900ec021876e4 /usr/local | |
parent | a14c1586053eb789e67d9e4a96dfc1cb8a329b29 (diff) | |
download | pfsense-f4f0779847ee8e876a21449e41489673168c3ea9.zip pfsense-f4f0779847ee8e876a21449e41489673168c3ea9.tar.gz |
Correctly restore configuration "areas"
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/www/diag_backup.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr/local/www/diag_backup.php b/usr/local/www/diag_backup.php index 6ee1015..64dc62d 100755 --- a/usr/local/www/diag_backup.php +++ b/usr/local/www/diag_backup.php @@ -32,6 +32,7 @@ /* omit no-cache headers because it confuses IE with file downloads */ $omit_nocacheheaders = true; require("guiconfig.inc"); +require("xmlparse_pkg.inc"); if ($_POST) { unset($input_errors); @@ -110,9 +111,9 @@ if ($_POST) { if($_POST['restorearea'] <> "") { /* restore a specific area of the configuration */ $rules = return_filename_as_string($_FILES['conffile']['tmp_name']); - restore_config_section("filter", $rules); - system_reboot(); - $savemsg = "The configuration has been restored. The firewall is now rebooting."; + restore_config_section($_POST['restorearea'], $rules); + filter_configure(); + $savemsg = "The configuration area has been restored."; } else { /* restore the entire configuration */ if (config_install($_FILES['conffile']['tmp_name']) == 0) { |