From 946ab33b995ad3a95d9d7b7b728bc106e73f8ecf Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Wed, 8 Oct 2008 20:58:29 +0000 Subject: Pass along $hostname --- packages/autoconfigbackup/autoconfigbackup.php | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/packages/autoconfigbackup/autoconfigbackup.php b/packages/autoconfigbackup/autoconfigbackup.php index 2e0fcbeb..63444a6d 100644 --- a/packages/autoconfigbackup/autoconfigbackup.php +++ b/packages/autoconfigbackup/autoconfigbackup.php @@ -84,7 +84,7 @@ if($_REQUEST['newver'] != "") { } else { curl_close($curl_session); } - if(!$input_errors && config_restore("/tmp/config_restore.xml") == 0) { + if(!$input_errors && $data && config_restore("/tmp/config_restore.xml") == 0) { $savemsg = "Successfully reverted the pfSense configuration to timestamp " . date("n/j/y H:i:s", $_REQUEST['newver']) . "."; } else { $savemsg = "Unable to revert to the selected configuration."; @@ -110,10 +110,8 @@ if (curl_errno($curl_session)) { curl_close($curl_session); } - if($_REQUEST['rmver'] != "") { - //unlink_if_exists($g['conf_path'] . '/backup/config-' . $_REQUEST['rmver'] . '.xml'); - //$savemsg = "Deleted backup with timestamp " . date("n/j/y H:i:s", $_REQUEST['rmver']) . " and description \"" . $confvers[$_REQUEST['rmver']]['description'] . "\"."; + // XXX: delete revision, or all backups from server. } // Loop through and create new confvers @@ -167,7 +165,9 @@ include("head.inc"); - + + + - +

  Hint:  @@ -188,7 +188,6 @@ include("head.inc"); Click the + sign next to the revision you would like to restore.

- -- cgit v1.2.3