From 96caa2a84e85554b7ea27cec06eb77a01d847320 Mon Sep 17 00:00:00 2001 From: Bill Marquette Date: Mon, 16 May 2005 00:49:49 +0000 Subject: speed improvements - backup.cache was created so we didn't have to read through all the XML files --- usr/local/www/diag_confbak.php | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'usr') 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; -- cgit v1.1