diff options
author | Bill Marquette <billm@pfsense.org> | 2005-05-19 04:02:06 +0000 |
---|---|---|
committer | Bill Marquette <billm@pfsense.org> | 2005-05-19 04:02:06 +0000 |
commit | 2e2d1de731bc4682357dd82b02c4b00865800dd2 (patch) | |
tree | 93f739b3f7df46ac612ddeb83d0c0c35998cdea7 /usr | |
parent | 1f4adc3ec56325e0fa70496ab509440c638c994c (diff) | |
download | pfsense-2e2d1de731bc4682357dd82b02c4b00865800dd2.zip pfsense-2e2d1de731bc4682357dd82b02c4b00865800dd2.tar.gz |
Show current version
Allow to select previous version
standardize object placement
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/diag_confbak.php | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/usr/local/www/diag_confbak.php b/usr/local/www/diag_confbak.php index 57e0e1f..37b3a63 100755 --- a/usr/local/www/diag_confbak.php +++ b/usr/local/www/diag_confbak.php @@ -59,12 +59,9 @@ unset($confvers['versions']); <link href="gui.css" rel="stylesheet" type="text/css"> </head> <body link="#0000CC" vlink="#0000CC" alink="#0000CC"> -<?php -include("fbegin.inc"); -if($savemsg) print_info_box($savemsg); -?> +<?php include("fbegin.inc"); ?> <p class="pgtitle">Diagnostics: Configuration History</p> -<br> +<?php if($savemsg) print_info_box($savemsg); ?> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr><td> <ul id="tabnav"> <li class="tabinact"><a href="diag_backup.php">Remote</a></li> @@ -75,7 +72,6 @@ if($savemsg) print_info_box($savemsg); <td class="tabcont"> <?php if(is_array($confvers)) { - $i = 0; ?> <table align="center" width="100%" border="0" cellpadding="6" cellspacing="0"> <tr> @@ -83,6 +79,11 @@ if(is_array($confvers)) { <td width="70%" class="listhdrr">Configuration Change</td> </tr> + <tr valign="top"> + <td class="listlr"> <?= date("n/j/y H:i:s", $config['revision']['time']) ?></td> + <td class="listlr"> <?= $config['revision']['description'] ?></td> + <td valign="middle" class="list" nowrap>Current</td> + </tr> <?php foreach($confvers as $version) { if($version['time'] != 0) { @@ -95,16 +96,13 @@ if(is_array($confvers)) { <tr valign="top"> <td class="listlr"> <?= $date ?></td> <td class="listlr"> <?= $desc ?></td> - <?php if($i != 0) { ?> <td valign="middle" class="list" nowrap> <a href="diag_confbak.php?newver=<?=$version['time'];?>"><img src="plus.gif" width="17" height="17" border="0"></a> </td> <td valign="middle" class="list" nowrap> <a href="diag_confbak.php?rmver=<?=$version['time'];?>"><img src="x.gif" width="17" height="17" border="0"></a> - <?php } ?> </tr> <?php - $i++; } ?> </table> <?php } else { |