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']);
|
|
|
|
if($icon) {$icon = "<img src='/images/16/$icon'>"; }
|
|
|
|
|
|
|
|
|
|
|
|
echo("<tr style=\"background-color: $bg\">
|
|
|
|
<td width=0></td>
|
2007-04-03 19:39:28 +00:00
|
|
|
<td class=syslog width=140>
|
2007-04-03 14:10:23 +00:00
|
|
|
$entry[humandate]
|
|
|
|
</td>");
|
|
|
|
$if['id'] = $entry[interface];
|
2007-04-03 19:39:28 +00:00
|
|
|
$if['if'] = makeshortif($interface);
|
|
|
|
echo("<td class=list-bold width=75>
|
2007-04-03 14:10:23 +00:00
|
|
|
" . generateiflink($if) . "
|
|
|
|
</td>
|
2007-04-03 19:39:28 +00:00
|
|
|
<td class=syslog>" .
|
|
|
|
truncate($entry[message], 45)
|
|
|
|
. "</td>
|
2007-04-03 14:10:23 +00:00
|
|
|
<td></td>
|
|
|
|
</tr>");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
?>
|