diff options
author | NOYB <Al_Stu@Frontier.com> | 2016-02-18 01:10:48 -0800 |
---|---|---|
committer | NOYB <Al_Stu@Frontier.com> | 2016-02-18 01:10:48 -0800 |
commit | 8031655dd6dd4014da07c8eb0a24dd72e8beb90b (patch) | |
tree | d0d9c6c163c2303232bec0e99699a2f67c7eb72e /src/usr | |
parent | 00f298029285114925a733af2ab29222351b12fd (diff) | |
download | pfsense-8031655dd6dd4014da07c8eb0a24dd72e8beb90b.zip pfsense-8031655dd6dd4014da07c8eb0a24dd72e8beb90b.tar.gz |
Diagnostics / Tables - InfoBox - # Records
Include number of records in table info box.
Diffstat (limited to 'src/usr')
-rw-r--r-- | src/usr/local/www/diag_tables.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/usr/local/www/diag_tables.php b/src/usr/local/www/diag_tables.php index 567cb80..46512ed 100644 --- a/src/usr/local/www/diag_tables.php +++ b/src/usr/local/www/diag_tables.php @@ -169,10 +169,14 @@ if ($bogons || !empty($entries)) { <?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', false); + $last_update_msg = sprintf(gettext("Table last updated on %s."), $last_updated); } else { - print_info_box(gettext("Date of last update of table is unknown."), 'info', false); + $last_update_msg = gettext("Date of last update of table is unknown."); } + + $records_count_msg = sprintf(gettext("%s records."), number_format(count($entries), 0, gettext("."), gettext(","))); + + print_info_box($last_update_msg . " " . $records_count_msg, 'info', false); ?> </div> </div> |