librenms-librenms/html/includes/print-syslog.inc.php
Paul Gear affc283f25 Merge pull request #62 from laf/issue-61
Stop print-syslog.inc.php from shortening hostnames
2014-02-23 22:14:00 +10:00

24 lines
718 B
PHP

<?php
if (device_permitted($entry['device_id']))
{
echo("<tr class=\"syslog\">");
// Stop shortening hostname. Issue #61
//$entry['hostname'] = shorthost($entry['hostname'], 20);
if ($vars['page'] != "device")
{
echo("<td class=syslog width=140>" . $entry['date'] . "</td>");
echo("<td width=160><strong>".generate_device_link($entry)."</strong></td>");
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>");
}
echo("</tr>");
}
?>