summaryrefslogtreecommitdiffstats
path: root/usr/local/www
diff options
context:
space:
mode:
authorBill Marquette <billm@pfsense.org>2005-03-24 04:58:46 +0000
committerBill Marquette <billm@pfsense.org>2005-03-24 04:58:46 +0000
commit961e1dbfb0ceda920a75e34b6ea72018a8525d2e (patch)
tree85d407053366eecc773639f8b52757653e85075f /usr/local/www
parentded4e2a356141dcbca84d9c1ec341fa5e49df24b (diff)
downloadpfsense-961e1dbfb0ceda920a75e34b6ea72018a8525d2e.zip
pfsense-961e1dbfb0ceda920a75e34b6ea72018a8525d2e.tar.gz
let there be descriptions (warning, this could be slow)
Diffstat (limited to 'usr/local/www')
-rwxr-xr-xusr/local/www/diag_backup.php8
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);
}
OpenPOWER on IntegriCloud