2009-09-07 11:07:59 +00:00
|
|
|
<?php
|
2007-04-03 14:10:23 +00:00
|
|
|
|
2011-03-17 11:46:02 +00:00
|
|
|
if ($bg == $list_colour_a) { $bg = $list_colour_b; } else { $bg=$list_colour_a; }
|
2008-11-27 12:36:37 +00:00
|
|
|
|
2011-03-17 11:46:02 +00:00
|
|
|
unset($icon);
|
2008-11-27 12:36:37 +00:00
|
|
|
|
2011-03-17 11:46:02 +00:00
|
|
|
$icon = geteventicon($entry['message']);
|
|
|
|
if ($icon) { $icon = "<img src='images/16/$icon'>"; }
|
2007-04-03 14:10:23 +00:00
|
|
|
|
2011-03-17 11:46:02 +00:00
|
|
|
echo("<tr style=\"background-color: $bg\">
|
|
|
|
<td width=0></td>
|
|
|
|
<td class=syslog width=140>
|
|
|
|
".$entry['humandate']."
|
|
|
|
</td>
|
|
|
|
<td class=syslog>");
|
2007-04-03 14:10:23 +00:00
|
|
|
|
2011-03-17 11:46:02 +00:00
|
|
|
if ($entry['type'] == "interface") {
|
|
|
|
$entry['link'] = "<b>".generate_port_link(getifbyid($entry['reference']))."</b>";
|
|
|
|
}
|
2007-04-03 14:10:23 +00:00
|
|
|
|
2011-03-17 11:46:02 +00:00
|
|
|
echo($entry['link'] ." ". htmlspecialchars($entry['message'])
|
|
|
|
. "</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>");
|
2007-04-03 14:10:23 +00:00
|
|
|
|
2011-03-17 11:46:02 +00:00
|
|
|
?>
|