diff options
author | jim-p <jimp@pfsense.org> | 2013-12-26 11:07:13 -0500 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2013-12-26 11:07:13 -0500 |
commit | bfe615ee530b48490165319b358346ea77f8aafd (patch) | |
tree | 079c708de3877474123ca6e0507225c172d363bf /usr/local | |
parent | 57671f81d4726cbaf1dd3c75cf0ae2a8a536c41c (diff) | |
download | pfsense-bfe615ee530b48490165319b358346ea77f8aafd.zip pfsense-bfe615ee530b48490165319b358346ea77f8aafd.tar.gz |
Show backup file size in config history.
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/www/diag_confbak.php | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/usr/local/www/diag_confbak.php b/usr/local/www/diag_confbak.php index 08072fc..3ca31b8 100755 --- a/usr/local/www/diag_confbak.php +++ b/usr/local/www/diag_confbak.php @@ -149,10 +149,12 @@ include("head.inc"); <table class="tabcont" align="center" width="100%" border="0" cellpadding="6" cellspacing="0"> <?php if (is_array($confvers)): ?> <tr> - <td colspan="2" valign="middle" align="center" class="list" nowrap><input type="submit" name="diff" value="<?=gettext("Diff"); ?>"></td> - <td width="22%" class="listhdrr"><?=gettext("Date");?></td> - <td width="8%" class="listhdrr"><?=gettext("Version");?></td> - <td width="70%" class="listhdrr"><?=gettext("Configuration Change");?></td> + <td width="5%" colspan="2" valign="middle" align="center" class="list" nowrap><input type="submit" name="diff" value="<?=gettext("Diff"); ?>"></td> + <td width="20%" class="listhdrr"><?=gettext("Date");?></td> + <td width="5%" class="listhdrr"><?=gettext("Version");?></td> + <td width="5%" class="listhdrr"><?=gettext("Size");?></td> + <td width="60%" class="listhdrr"><?=gettext("Configuration Change");?></td> + <td width="5%" class="list"> </td> </tr> <tr valign="top"> <td valign="middle" class="list" nowrap></td> @@ -161,8 +163,9 @@ include("head.inc"); </td> <td class="listlr"> <?= date(gettext("n/j/y H:i:s"), $config['revision']['time']) ?></td> <td class="listr"> <?= $config['version'] ?></td> + <td class="listr"> <?= format_bytes(filesize("/conf/config.xml")) ?></td> <td class="listr"> <?= $config['revision']['description'] ?></td> - <td colspan="3" valign="middle" class="list" nowrap><b><?=gettext("Current");?></b></td> + <td valign="middle" class="list" nowrap><b><?=gettext("Current");?></b></td> </tr> <?php $c = 0; @@ -186,18 +189,15 @@ include("head.inc"); </td> <td class="listlr"> <?= $date ?></td> <td class="listr"> <?= $version['version'] ?></td> + <td class="listr"> <?= format_bytes($version['filesize']) ?></td> <td class="listr"> <?= $version['description'] ?></td> <td valign="middle" class="list" nowrap> <a href="diag_confbak.php?newver=<?=$version['time'];?>" onclick="return confirm('<?=gettext("Revert to this configuration?");?>'")> <img src="/themes/<?= $g['theme']; ?>/images/icons/icon_plus.gif" width="17" height="17" border="0" alt="<?=gettext("Revert to this configuration");?>" title="<?=gettext("Revert to this configuration");?>"> </a> - </td> - <td valign="middle" class="list" nowrap> <a href="diag_confbak.php?rmver=<?=$version['time'];?>" onclick="return confirm('<?=gettext("Delete this configuration backup?");?>')"> <img src="/themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" width="17" height="17" border="0" alt="<?=gettext("Remove this backup");?>" title="<?=gettext("Remove this backup");?>"> </a> - </td> - <td valign="middle" class="list" nowrap> <a href="diag_confbak.php?getcfg=<?=$version['time'];?>"> <img src="/themes/<?= $g['theme']; ?>/images/icons/icon_down.gif" width="17" height="17" border="0" alt="<?=gettext("Download this backup");?>" title="<?=gettext("Download this backup");?>"> </a> |