summaryrefslogtreecommitdiffstats
path: root/usr/local/www/diag_confbak.php
diff options
context:
space:
mode:
authorColin Smith <colin@pfsense.org>2005-05-18 03:14:45 +0000
committerColin Smith <colin@pfsense.org>2005-05-18 03:14:45 +0000
commit1d478d96246e227197aee1fa68cccdbc2e7e6d8a (patch)
tree8fee18394b3f552998fc4cce65b56c0970189ba4 /usr/local/www/diag_confbak.php
parentcdc0ed31fe0e68c909df4fe2e9124d23812f55bd (diff)
downloadpfsense-1d478d96246e227197aee1fa68cccdbc2e7e6d8a.zip
pfsense-1d478d96246e227197aee1fa68cccdbc2e7e6d8a.tar.gz
Fix info display. We can't use the array generated by get_backups() - it's suited for iteration, rather than fast retrieval.
Diffstat (limited to 'usr/local/www/diag_confbak.php')
-rwxr-xr-xusr/local/www/diag_confbak.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/diag_confbak.php b/usr/local/www/diag_confbak.php
index 0a30640..1be5efc 100755
--- a/usr/local/www/diag_confbak.php
+++ b/usr/local/www/diag_confbak.php
@@ -31,7 +31,7 @@
require("guiconfig.inc");
if($_GET['newver'] != "") {
- $confvers = get_backups();
+ $confvers = unserialize(file_get_contents($g['cf_conf_path'] . '/backup/backup.cache'));
if(config_restore($g['conf_path'] . '/backup/config-' . $_GET['newver'] . '.xml') == 0) {
$savemsg = "Successfully reverted to timestamp " . date("n/j/y H:i:s", $_GET['newver']) . " with description \"" . $confvers[$_GET['newver']]['description'] . "\".";
} else {
@@ -40,7 +40,7 @@ if($_GET['newver'] != "") {
}
if($_GET['rmver'] != "") {
- $confvers = get_backups();
+ $confvers = unserialize(file_get_contents($g['cf_conf_path'] . '/backup/backup.cache'));
unlink_if_exists($g['conf_path'] . '/backup/config-' . $_GET['rmver'] . '.xml');
$savemsg = "Deleted backup with timestamp " . date("n/j/y H:i:s", $_GET['rmver']) . " and description \"" . $confvers[$_GET['rmver']]['description'] . "\".";
}
OpenPOWER on IntegriCloud