summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Beaver <sbeaver@netgate.com>2016-01-07 10:49:17 -0500
committerStephen Beaver <sbeaver@netgate.com>2016-01-07 10:49:17 -0500
commite36f265e694049bf672efb3b023a229b988b116f (patch)
tree4517896efb65df5415f24388e9b14723b21932c6
parentb5dbd201778947ec5ca44f4e1b227212c4c72d45 (diff)
parentc57b2aaded88d261517678d69a824a3a73366cca (diff)
downloadpfsense-e36f265e694049bf672efb3b023a229b988b116f.zip
pfsense-e36f265e694049bf672efb3b023a229b988b116f.tar.gz
Merge pull request #2377 from phil-davis/patch-2
-rw-r--r--src/usr/local/www/diag_tables.php15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/usr/local/www/diag_tables.php b/src/usr/local/www/diag_tables.php
index c0d6146..e053e1a 100644
--- a/src/usr/local/www/diag_tables.php
+++ b/src/usr/local/www/diag_tables.php
@@ -157,7 +157,20 @@ $form->add($section);
print $form;
if ($bogons || !empty($entries)) {
- print_info_box(gettext("Table last updated on ") . exec('/usr/bin/grep -i -m 1 -E "^# last updated" /etc/' . escapeshellarg($tablename) . '|cut -d"(" -f2|tr -d ")" '), 'info');
+?>
+<div>
+ <div id="infoblock_open">
+<?php
+ $last_updated = exec('/usr/bin/grep -i -m 1 -E "^# last updated" /etc/' . escapeshellarg($tablename) . '|cut -d"(" -f2|tr -d ")" ');
+ if ($last_updated != "") {
+ print_info_box(gettext("Table last updated on ") . $last_updated, 'info');
+ } else {
+ print_info_box(gettext("Date of last update of table is unknown"), 'info');
+ }
+?>
+ </div>
+</div>
+<?php
}
?>
OpenPOWER on IntegriCloud