Revision e6f78714
Added by Marcos M over 1 year ago
src/etc/inc/syslog.inc | ||
---|---|---|
1303 | 1303 |
function find_action_image($action) { |
1304 | 1304 |
global $g; |
1305 | 1305 |
if ((strstr(strtolower($action), "p")) || (strtolower($action) == "rdr")) { |
1306 |
return "fa-check-circle-o";
|
|
1306 |
return "fa-regular fa-circle-check";
|
|
1307 | 1307 |
} else if (strstr(strtolower($action), "r")) { |
1308 |
return "fa-times-circle-o";
|
|
1308 |
return "fa-regular fa-circle-xmark";
|
|
1309 | 1309 |
} else { |
1310 |
return "fa-ban"; |
|
1310 |
return "fa-solid fa-ban";
|
|
1311 | 1311 |
} |
1312 | 1312 |
} |
1313 | 1313 |
|
... | ... | |
1357 | 1357 |
} |
1358 | 1358 |
|
1359 | 1359 |
if ($log_row['act'] == "block") { |
1360 |
$icon_act = "fa-times text-danger"; |
|
1360 |
$icon_act = "fa-solid fa-times text-danger";
|
|
1361 | 1361 |
} else { |
1362 |
$icon_act = "fa-check text-success"; |
|
1362 |
$icon_act = "fa-solid fa-check text-success";
|
|
1363 | 1363 |
} |
1364 | 1364 |
|
1365 |
$btn = '<i class="fa-solid ' . $icon_act . ' icon-pointer" title="' . $log_row['act'] . '/' . $log_row['tracker'] . '" onclick="javascript:getURL(\'status_logs_filter.php?getrulenum=' . $log_row['rulenum'] . ',' . $log_row['tracker'] . ',' . $log_row['act'] . '\', outputrule);"></i>';
|
|
1365 |
$btn = '<i class="' . $icon_act . ' icon-pointer" title="' . $log_row['act'] . '/' . $log_row['tracker'] . '" onclick="javascript:getURL(\'status_logs_filter.php?getrulenum=' . $log_row['rulenum'] . ',' . $log_row['tracker'] . ',' . $log_row['act'] . '\', outputrule);"></i>'; |
|
1366 | 1366 |
$new_rules .= "{$btn}||{$log_row['time']}||{$log_row['interface']}||{$log_row['srcip']}||{$log_row['srcport']}||{$log_row['dstip']}||{$log_row['dstport']}||{$log_row['proto']}||{$log_row['version']}||" . time() . "||\n"; |
1367 | 1367 |
} |
1368 | 1368 |
} |
Also available in: Unified diff
Update fontawesome references in form buttons