Files
librenms-librenms/html/includes/print-syslog.inc.php
T

29 lines
846 B
PHP
Raw Normal View History

2009-09-07 11:07:59 +00:00
<?php
2007-04-03 14:10:23 +00:00
if (device_permitted($entry['device_id']))
{
$syslog_iter++;
if (!is_integer($syslog_iter/2)) { $bg_colour = $list_colour_a; } else { $bg_colour = $list_colour_b; }
echo("<tr style=\"background-color: $bg_colour\">
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
$entry['hostname'] = shorthost($entry['hostname'], 20);
2008-03-23 15:40:58 +00:00
if ($_GET['page'] != "device")
{
2011-05-17 22:10:23 +00:00
echo("<td class=syslog width=140>" . $entry['date'] . "</td>");
echo("<td width=160><strong>".generate_device_link($entry)."</strong></td>");
2011-05-17 22:10:23 +00:00
echo("<td class=syslog><strong>" . $entry['program'] . " : </strong> " . htmlspecialchars($entry['msg']) . "</td>");
} else {
echo("<td class=syslog><i>" . $entry['date'] . "</i>&nbsp;&nbsp;&nbsp;<strong>" . $entry['program'] . "</strong>&nbsp;&nbsp;&nbsp;" . htmlspecialchars($entry['msg']) . "</td>");
2007-06-24 14:56:47 +00:00
}
2011-05-17 22:10:23 +00:00
echo("</tr>");
2007-04-03 14:10:23 +00:00
}
2011-05-17 22:10:23 +00:00
?>