diff options
author | N0YB <JunkYardMail1@Frontier.com> | 2012-12-10 17:08:54 -0800 |
---|---|---|
committer | N0YB <JunkYardMail1@Frontier.com> | 2012-12-10 17:08:54 -0800 |
commit | 83b9c4d251d189b55e57e1fcdc9b74ef5b85ad54 (patch) | |
tree | 047f071d00ad78fe64ed8931322d94a877d5e94a /usr/local | |
parent | cff55b3438506a0c1126446734d01dd2c18a3592 (diff) | |
download | pfsense-83b9c4d251d189b55e57e1fcdc9b74ef5b85ad54.zip pfsense-83b9c4d251d189b55e57e1fcdc9b74ef5b85ad54.tar.gz |
Include bogons last update info in Diagnostics: Tables
Diffstat (limited to 'usr/local')
-rw-r--r-- | usr/local/www/diag_tables.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr/local/www/diag_tables.php b/usr/local/www/diag_tables.php index 57b5eb4..af8e01c 100644 --- a/usr/local/www/diag_tables.php +++ b/usr/local/www/diag_tables.php @@ -157,8 +157,10 @@ include("fbegin.inc"); <?php if($count > 0) - if( ($tablename == "bogons") || ($tablename == "bogonsv6") ) - echo "<p/> <b>$count</b> " . gettext("entries in this table.") . "  " . "<input name='Download' type='submit' class='formbtn' value='" . gettext("Download") . "'> " . gettext(" the latest bogon data.") . "<br>" . `/usr/bin/grep -i -m 1 -E "^# last updated" /etc/$tablename`; + if( ($tablename == "bogons") || ($tablename == "bogonsv6") ) { + $last_updated = exec('/usr/bin/grep -i -m 1 -E "^# last updated" /etc/' . escapeshellarg($tablename)); + echo "<p/> <b>$count</b> " . gettext("entries in this table.") . "  " . "<input name='Download' type='submit' class='formbtn' value='" . gettext("Download") . "'> " . gettext(" the latest bogon data.") . "<br>" . "$last_updated"; + }
else echo "<p/>" . gettext("Delete") . " <a href='diag_tables.php?deleteall=true&type=" . htmlspecialchars($tablename) . "'>" . gettext("all") . "</a> " . "<b>$count</b> " . gettext("entries in this table."); ?> |