From 2f8d0729bec8dff7813558b59adcf71297097d89 Mon Sep 17 00:00:00 2001 From: Bill Marquette Date: Mon, 16 May 2005 01:08:26 +0000 Subject: Enable config restore --- usr/local/www/diag_confbak.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'usr') diff --git a/usr/local/www/diag_confbak.php b/usr/local/www/diag_confbak.php index 5e39d7a..66ca599 100755 --- a/usr/local/www/diag_confbak.php +++ b/usr/local/www/diag_confbak.php @@ -28,6 +28,18 @@ POSSIBILITY OF SUCH DAMAGE. */ + +if ($_GET['newver']) { + $conf_file = "/cf/conf/backup/config-${_GET['newver']}.xml"; + + if (config_install($conf_file) == 0) { + system_reboot(); + $savemsg = "The configuration has been restored. The firewall is now rebooting."; + } else { + $input_errors[] = "The configuration could not be restored."; + } +} + require("guiconfig.inc"); ?> @@ -44,6 +56,7 @@ require("guiconfig.inc"); include("fbegin.inc"); ?>

Diagnostics: Local Restore

+
    -- cgit v1.1