diff options
author | Bill Marquette <billm@pfsense.org> | 2005-03-24 04:58:46 +0000 |
---|---|---|
committer | Bill Marquette <billm@pfsense.org> | 2005-03-24 04:58:46 +0000 |
commit | 961e1dbfb0ceda920a75e34b6ea72018a8525d2e (patch) | |
tree | 85d407053366eecc773639f8b52757653e85075f /usr/local | |
parent | ded4e2a356141dcbca84d9c1ec341fa5e49df24b (diff) | |
download | pfsense-961e1dbfb0ceda920a75e34b6ea72018a8525d2e.zip pfsense-961e1dbfb0ceda920a75e34b6ea72018a8525d2e.tar.gz |
let there be descriptions (warning, this could be slow)
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/www/diag_backup.php | 8 |
1 files changed, 5 insertions, 3 deletions
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("<lastchangedesc>(.*)</lastchangedesc>", $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); } |