2007-04-03 14:10:23 +00:00
|
|
|
|
|
|
|
<?
|
|
|
|
|
|
|
|
if($bg == $list_colour_a) { $bg = $list_colour_b; } else { $bg=$list_colour_a; }
|
|
|
|
|
|
|
|
$hostname = gethostbyid($entry['host']);
|
|
|
|
$interface = fixifname(getifbyid($entry['interface']));
|
|
|
|
|
|
|
|
unset($icon);
|
|
|
|
|
|
|
|
$icon = geteventicon($entry['message']);
|
2008-03-12 19:50:05 +00:00
|
|
|
if($icon) {$icon = "<img src='images/16/$icon'>"; }
|
2007-04-03 14:10:23 +00:00
|
|
|
|
|
|
|
|
|
|
|
echo("<tr style=\"background-color: $bg\">
|
|
|
|
<td width=0></td>
|
2008-04-01 01:19:59 +00:00
|
|
|
<td class=syslog width=160>
|
2007-04-04 10:43:23 +00:00
|
|
|
" . $entry['datetime'] . "
|
2007-04-03 14:10:23 +00:00
|
|
|
</td>");
|
|
|
|
if(!$_GET[id] && !$overview) {
|
2007-04-11 20:57:56 +00:00
|
|
|
$dev['device_id'] = $entry['host'];
|
2007-04-03 14:10:23 +00:00
|
|
|
$dev['hostname'] = $hostname;
|
2008-04-01 01:19:59 +00:00
|
|
|
echo("<td class=list-bold width=150>
|
|
|
|
" . generatedevicelink($dev, shorthost($dev['hostname'])) . "
|
2007-04-03 14:10:23 +00:00
|
|
|
</td>");
|
|
|
|
}
|
|
|
|
|
2008-04-01 01:19:59 +00:00
|
|
|
echo("<td class=syslog>");
|
2007-04-04 10:43:23 +00:00
|
|
|
|
2007-04-07 21:15:23 +00:00
|
|
|
if($interface) {
|
|
|
|
$if['interface_id'] = $entry['interface'];
|
|
|
|
$if['ifDescr'] = $interface;
|
2007-04-04 10:43:23 +00:00
|
|
|
echo(generateiflink($if));
|
|
|
|
}
|
2008-04-01 01:19:59 +00:00
|
|
|
echo(" " . htmlspecialchars($entry['message']) . "
|
2007-04-03 14:10:23 +00:00
|
|
|
</td>
|
|
|
|
</tr>");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
?>
|