diff options
author | Bill Marquette <billm@pfsense.org> | 2005-05-16 00:49:49 +0000 |
---|---|---|
committer | Bill Marquette <billm@pfsense.org> | 2005-05-16 00:49:49 +0000 |
commit | 96caa2a84e85554b7ea27cec06eb77a01d847320 (patch) | |
tree | 00ec5d7485ba144f93de8d5e7f9027204912ddb9 | |
parent | 136f811be8c07a1f4e9c3c5146c65b53acaf411e (diff) | |
download | pfsense-96caa2a84e85554b7ea27cec06eb77a01d847320.zip pfsense-96caa2a84e85554b7ea27cec06eb77a01d847320.tar.gz |
speed improvements - backup.cache was created so we didn't have to read through all the XML files
-rwxr-xr-x | usr/local/www/diag_confbak.php | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/usr/local/www/diag_confbak.php b/usr/local/www/diag_confbak.php index 63a1e42..5e39d7a 100755 --- a/usr/local/www/diag_confbak.php +++ b/usr/local/www/diag_confbak.php @@ -78,16 +78,8 @@ if(is_array($confvers)) { ?> $changes['date'] = "Current"; } else { // Use backup.cache to find the next usable backup. if(file_exists("/conf/backup/config-{$version['time']}.xml")) { - $curconfigs[] = file_get_contents("/conf/backup/config-{$version['time']}.xml"); - $curconfig = parse_xml_config("/conf/backup/config-{$version['time']}.xml", $g['xml_rootobj']); - if(file_exists("/conf/backup/config-{$curconfig['revision']['time']}.xml")) { - $changes['time'] = $curconfig['revision']['time']; - $changes['date'] = date("n/j H:i:s", $changes['time']); - $changes['description'] = $curconfig['revision']['description']; - } else { - $i++; - continue; - } + $changes = $version; + $changes['date'] = date("n/j H:i:s", $changes['time']); } else { $i++; continue; |