1 | <?php |
||
2 | /* |
||
3 | * LibreNMS |
||
4 | * |
||
5 | * This program is free software: you can redistribute it and/or modify it |
||
6 | * under the terms of the GNU General Public License as published by the |
||
7 | * Free Software Foundation, either version 3 of the License, or (at your |
||
8 | * option) any later version. Please see LICENSE.txt at the top level of |
||
9 | * the source code distribution for details. |
||
10 | * |
||
11 | * @package LibreNMS |
||
12 | * @subpackage webui |
||
13 | * @link https://www.librenms.org |
||
14 | * @copyright 2017 LibreNMS |
||
15 | * @author LibreNMS Contributors |
||
16 | */ |
||
17 | |||
18 | unset($icon); |
||
19 | $severity_colour = eventlog_severity($entry['severity']); |
||
20 | $icon = '<span class="alert-status ' . $severity_colour . '"></span>'; |
||
21 | |||
22 | echo '<tr>'; |
||
23 | echo '<td>' . $icon . '</td>'; |
||
24 | echo '<td>' . $entry['humandate'] . '</td>'; |
||
25 | |||
26 | if ($entry['type'] == 'interface') { |
||
27 | $entry['link'] = '<b>' . generate_port_link(cleanPort(getifbyid($entry['reference']))) . '</b>'; |
||
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
28 | } |
||
29 | |||
30 | echo '<td style="white-space: nowrap;max-width: 100px;overflow: hidden;text-overflow: ellipsis;">' . $entry['link'] . '</td>'; |
||
31 | echo '<td>' . htmlspecialchars($entry['message']) . '</td>'; |
||
32 | |||
33 | echo '</tr>'; |
||
34 |