From 961e1dbfb0ceda920a75e34b6ea72018a8525d2e Mon Sep 17 00:00:00 2001 From: Bill Marquette Date: Thu, 24 Mar 2005 04:58:46 +0000 Subject: let there be descriptions (warning, this could be slow) --- usr/local/www/diag_backup.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'usr/local/www') diff --git a/usr/local/www/diag_backup.php b/usr/local/www/diag_backup.php index 47a1064..2e1b265 100755 --- a/usr/local/www/diag_backup.php +++ b/usr/local/www/diag_backup.php @@ -178,10 +178,12 @@ if (isset($config['system']['version_control'])) { if ($dh = opendir($dir)) { while (($file = readdir($dh)) !== false) { if ($file != "." && $file != "..") { - if (ereg("config-([0-9]+).xml", $file, $regs)) { + if (ereg("config-([0-9]+).xml", $file, $fname_array)) { $old_ver = array(); - $old_ver['date']=date("Y-m-d H:i:s", $regs[1]); - $old_ver['desc']= "XXX - description not used yet"; + $conf = return_filename_as_string("{$g['cf_conf_path']}/bak/" .$file); + ereg("(.*)", $conf, $desc_array); + $old_ver['date']=date("Y-m-d H:i:s", $fname_array[1]); + $old_ver['desc']=$desc_array[1]; array_push(&$old_versions, $old_ver); } -- cgit v1.1