added ip in modules list

This commit is contained in:
Daniel Cebrian 2023-01-10 10:50:47 +01:00
parent b596b895d1
commit df87c122af
2 changed files with 8 additions and 4 deletions

View File

@ -1177,7 +1177,11 @@ foreach ($modules as $module) {
$data[6] = ui_print_status_image( $data[6] = ui_print_status_image(
$status, $status,
htmlspecialchars($title), htmlspecialchars($title),
true true,
false,
false,
false,
($module['ip_target']) ? 'IP: '.$module['ip_target'] : false
); );
// MAX / MIN values. // MAX / MIN values.

View File

@ -1176,10 +1176,10 @@ if (check_login()) {
$status, $status,
$title $title
); );
$last_status_change_text = ($module['ip_target']) ? 'IP: '.$module['ip_target'].'<br />' : '';
$last_status_change_text = 'Time elapsed since last status change: '; $last_status_change_text .= 'Time elapsed since last status change: ';
$last_status_change_text .= !empty($module['last_status_change']) ? human_time_comparation($module['last_status_change']) : __('N/A'); $last_status_change_text .= !empty($module['last_status_change']) ? human_time_comparation($module['last_status_change']) : __('N/A');
hd($module, true);
$data[5] = ui_print_status_image($status, htmlspecialchars($title), true, false, false, false, $last_status_change_text); $data[5] = ui_print_status_image($status, htmlspecialchars($title), true, false, false, false, $last_status_change_text);
if (!$show_context_help_first_time) { if (!$show_context_help_first_time) {
$show_context_help_first_time = true; $show_context_help_first_time = true;