diff options
author | Phil Davis <phil.davis@inf.org> | 2016-01-07 21:31:35 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2016-01-07 21:31:35 +0545 |
commit | c57b2aaded88d261517678d69a824a3a73366cca (patch) | |
tree | 4517896efb65df5415f24388e9b14723b21932c6 /src/usr/local/www/diag_tables.php | |
parent | b5dbd201778947ec5ca44f4e1b227212c4c72d45 (diff) | |
download | pfsense-c57b2aaded88d261517678d69a824a3a73366cca.zip pfsense-c57b2aaded88d261517678d69a824a3a73366cca.tar.gz |
diag_tables give different message when last updated is unknown
and put the message in an infoblock_open so the user can close/open it as they wish.
Diffstat (limited to 'src/usr/local/www/diag_tables.php')
-rw-r--r-- | src/usr/local/www/diag_tables.php | 15 |
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 } ?> |