2007-04-03 14:10:23 +00:00
|
|
|
|
2009-09-07 11:07:59 +00:00
|
|
|
<?php
|
2007-04-03 14:10:23 +00:00
|
|
|
|
2010-01-16 23:16:58 +00:00
|
|
|
if(isset($bg) && $bg == $list_colour_a) { $bg = $list_colour_b; } else { $bg=$list_colour_a; }
|
2007-04-03 14:10:23 +00:00
|
|
|
|
|
|
|
$hostname = gethostbyid($entry['host']);
|
|
|
|
|
|
|
|
unset($icon);
|
|
|
|
|
|
|
|
$icon = geteventicon($entry['message']);
|
2010-01-08 23:09:25 +00:00
|
|
|
if($icon) {$icon = '<img src="images/16/' . $icon . '" />'; }
|
2007-04-03 14:10:23 +00:00
|
|
|
|
|
|
|
|
2010-01-08 23:09:25 +00:00
|
|
|
echo('<tr style="background-color: ' . $bg . '">
|
|
|
|
<td width="0"></td>
|
|
|
|
<td class="syslog" width="160">
|
|
|
|
' . $entry['datetime'] . '
|
|
|
|
</td>');
|
2010-01-16 23:16:58 +00:00
|
|
|
if(!isset($_GET['id']) && (!isset($overview) || $overview == 0)) {
|
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>");
|
|
|
|
}
|
|
|
|
|
2010-01-08 23:09:25 +00:00
|
|
|
echo('<td class="syslog" width="100">');
|
|
|
|
if($entry['interface']) {
|
|
|
|
echo(generateiflink(getifbyid($entry['interface'])));
|
2007-04-04 10:43:23 +00:00
|
|
|
}
|
2010-01-08 23:09:25 +00:00
|
|
|
echo("</td><td>" . htmlspecialchars($entry['message']) . "</td>
|
2007-04-03 14:10:23 +00:00
|
|
|
</tr>");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
?>
|