summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/diag_tables.php
diff options
context:
space:
mode:
authorNOYB <Al_Stu@Frontier.com>2016-02-18 01:10:48 -0800
committerNOYB <Al_Stu@Frontier.com>2016-02-18 01:10:48 -0800
commit8031655dd6dd4014da07c8eb0a24dd72e8beb90b (patch)
treed0d9c6c163c2303232bec0e99699a2f67c7eb72e /src/usr/local/www/diag_tables.php
parent00f298029285114925a733af2ab29222351b12fd (diff)
downloadpfsense-8031655dd6dd4014da07c8eb0a24dd72e8beb90b.zip
pfsense-8031655dd6dd4014da07c8eb0a24dd72e8beb90b.tar.gz
Diagnostics / Tables - InfoBox - # Records
Include number of records in table info box.
Diffstat (limited to 'src/usr/local/www/diag_tables.php')
-rw-r--r--src/usr/local/www/diag_tables.php8
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 . "&nbsp; &nbsp; " . $records_count_msg, 'info', false);
?>
</div>
</div>
OpenPOWER on IntegriCloud