diff options
author | Colin Smith <colin@pfsense.org> | 2005-05-18 03:09:53 +0000 |
---|---|---|
committer | Colin Smith <colin@pfsense.org> | 2005-05-18 03:09:53 +0000 |
commit | cdc0ed31fe0e68c909df4fe2e9124d23812f55bd (patch) | |
tree | 213366b9c9970929eee1820b43b9735cbc107307 /usr/local/www/diag_confbak.php | |
parent | f93c5384ff6783064fe961a70c0df5a34e7e7ac4 (diff) | |
download | pfsense-cdc0ed31fe0e68c909df4fe2e9124d23812f55bd.zip pfsense-cdc0ed31fe0e68c909df4fe2e9124d23812f55bd.tar.gz |
Print out configuration information upon restore and deletion.
Diffstat (limited to 'usr/local/www/diag_confbak.php')
-rwxr-xr-x | usr/local/www/diag_confbak.php | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/usr/local/www/diag_confbak.php b/usr/local/www/diag_confbak.php index fd21390..0a30640 100755 --- a/usr/local/www/diag_confbak.php +++ b/usr/local/www/diag_confbak.php @@ -31,16 +31,18 @@ require("guiconfig.inc"); if($_GET['newver'] != "") { + $confvers = get_backups(); if(config_restore($g['conf_path'] . '/backup/config-' . $_GET['newver'] . '.xml') == 0) { - $savemsg = "Successfully reverted to " . $_GET['newver']; + $savemsg = "Successfully reverted to timestamp " . date("n/j/y H:i:s", $_GET['newver']) . " with description \"" . $confvers[$_GET['newver']]['description'] . "\"."; } else { - $savemsg = "Unable to revert to " . $_GET['newver']; + $savemsg = "Unable to revert to the selected configuration."; } } if($_GET['rmver'] != "") { + $confvers = get_backups(); unlink_if_exists($g['conf_path'] . '/backup/config-' . $_GET['rmver'] . '.xml'); - $savemsg = "Deleted " . $_GET['rmver']; + $savemsg = "Deleted backup with timestamp " . date("n/j/y H:i:s", $_GET['rmver']) . " and description \"" . $confvers[$_GET['rmver']]['description'] . "\"."; } cleanup_backupcache(); @@ -52,7 +54,7 @@ unset($confvers['versions']); <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> -<title><?=gentitle("Diagnostics: Configuration Restore");?></title> +<title><?=gentitle("Diagnostics: Configuration History");?></title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link href="gui.css" rel="stylesheet" type="text/css"> </head> @@ -61,12 +63,12 @@ unset($confvers['versions']); include("fbegin.inc"); if($savemsg) print_info_box($savemsg); ?> -<p class="pgtitle">Diagnostics: Local Restore</p> +<p class="pgtitle">Diagnostics: Configuration History</p> <br> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr><td> <ul id="tabnav"> <li class="tabinact"><a href="diag_backup.php">Remote</a></li> - <li class="tabact">Local</a></li> + <li class="tabact">Config History</a></li> </ul> </td></tr> <tr> |