2007-04-03 14:10:23 +00:00
|
|
|
|
|
|
|
<?
|
|
|
|
|
|
|
|
if($bg == $list_colour_a) { $bg = $list_colour_b; } else { $bg=$list_colour_a; }
|
|
|
|
|
2007-06-24 14:56:47 +00:00
|
|
|
# if($entry['interface']) {
|
|
|
|
# $interface = fixifname(getifbyid($entry['interface']));
|
|
|
|
# }
|
|
|
|
|
2008-03-19 19:15:57 +00:00
|
|
|
$entry['hostname'] = gethostbyid($entry['device_id']);
|
2007-04-03 14:10:23 +00:00
|
|
|
|
|
|
|
unset($icon);
|
|
|
|
|
2008-03-19 19:15:57 +00:00
|
|
|
# $icon = geteventicon($entry['message']);
|
|
|
|
# if($icon) {$icon = "<img src='images/16/$icon'>"; }
|
2007-06-24 14:56:47 +00:00
|
|
|
|
2007-04-03 14:10:23 +00:00
|
|
|
echo("<tr style=\"background-color: $bg\">
|
2008-03-19 19:15:57 +00:00
|
|
|
<td width=0></td>");
|
2007-06-24 14:56:47 +00:00
|
|
|
|
2008-03-19 19:15:57 +00:00
|
|
|
echo("<td class=syslog width=150>" . $entry['date'] . "</td>");
|
|
|
|
|
|
|
|
if($_GET['page'] == "syslog") {
|
|
|
|
echo("<td><strong>".generatedevicelink($entry['device_id'], $entry['hostname'])."</strong></td>");
|
2007-06-24 14:56:47 +00:00
|
|
|
}
|
|
|
|
|
2008-03-19 19:15:57 +00:00
|
|
|
|
|
|
|
echo(" <td class=syslog>
|
|
|
|
<strong>" . $entry['program'] . " : </strong>
|
2007-05-20 19:21:35 +00:00
|
|
|
" . htmlspecialchars($entry['msg']) . "
|
2007-04-03 14:10:23 +00:00
|
|
|
</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>");
|
|
|
|
|
|
|
|
?>
|