summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorBill Marquette <billm@pfsense.org>2005-03-20 04:09:13 +0000
committerBill Marquette <billm@pfsense.org>2005-03-20 04:09:13 +0000
commit86b0a8f544913b8416d2603c4ddb2535f1df8a4e (patch)
tree7700ca6ca52da0ce8df50a0041fc835cc31c181a /usr
parent6a1e66513954db1241a23b8363e134526c962899 (diff)
downloadpfsense-86b0a8f544913b8416d2603c4ddb2535f1df8a4e.zip
pfsense-86b0a8f544913b8416d2603c4ddb2535f1df8a4e.tar.gz
Nicer display for revisions
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/diag_backup.php11
1 files changed, 7 insertions, 4 deletions
diff --git a/usr/local/www/diag_backup.php b/usr/local/www/diag_backup.php
index 3cc4a8d..862ebcf 100755
--- a/usr/local/www/diag_backup.php
+++ b/usr/local/www/diag_backup.php
@@ -113,7 +113,10 @@ if (isset($config['system']['version_control'])) {
if ($dh = opendir($dir)) {
while (($file = readdir($dh)) !== false) {
if ($file != "." && $file != "..") {
- array_push(&$old_versions, $file);
+ if (ereg("config-([0-9]+).xml", $file, $regs)) {
+ $conf_date=date("Y-m-d H:i:s", $regs[1]);
+ array_push(&$old_versions, $conf_date);
+ }
}
}
closedir($dh);
@@ -200,9 +203,9 @@ if (isset($config['system']['version_control'])) {
</tr>
<?php foreach ($old_versions as $ver): ?>
<tr>
- <td width="22%" valign="baseline" class="vncell">Filename</td>
- <td width="56%" class="vtable"><? echo $ver; ?></td
- <td width="22%" class="vtable"><input name="restore" type="submit" class="formbtn" id="restore" value="Restore version"></td>
+ <td width="22%" valign="baseline" class="vncell"><? echo $ver; ?></td>
+ <td width="56%" valign="baseline" class="vtable"><? echo "description" ?></td>
+ <td width="22%" valign="baseline" class="vtable"><input name="restore" type="submit" class="formbtn" id="restore" value="Restore version"></td>
</tr>
<?php endforeach; ?>
</table>
OpenPOWER on IntegriCloud