mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Diagnostics / Tables - InfoBox - # Records
Include number of records in table info box.
This commit is contained in:
parent
00f2980292
commit
8031655dd6
@ -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>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user