Revision 961e1dbf
Added by Bill Marquette over 20 years ago
usr/local/www/diag_backup.php | ||
---|---|---|
178 | 178 |
if ($dh = opendir($dir)) { |
179 | 179 |
while (($file = readdir($dh)) !== false) { |
180 | 180 |
if ($file != "." && $file != "..") { |
181 |
if (ereg("config-([0-9]+).xml", $file, $regs)) {
|
|
181 |
if (ereg("config-([0-9]+).xml", $file, $fname_array)) {
|
|
182 | 182 |
$old_ver = array(); |
183 |
$old_ver['date']=date("Y-m-d H:i:s", $regs[1]); |
|
184 |
$old_ver['desc']= "XXX - description not used yet"; |
|
183 |
$conf = return_filename_as_string("{$g['cf_conf_path']}/bak/" .$file); |
|
184 |
ereg("<lastchangedesc>(.*)</lastchangedesc>", $conf, $desc_array); |
|
185 |
$old_ver['date']=date("Y-m-d H:i:s", $fname_array[1]); |
|
186 |
$old_ver['desc']=$desc_array[1]; |
|
185 | 187 |
|
186 | 188 |
array_push(&$old_versions, $old_ver); |
187 | 189 |
} |
Also available in: Unified diff
let there be descriptions (warning, this could be slow)