Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
731 B
PHP
Raw Permalink 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_output .= '<tr>';
2007-06-24 14:56:47 +00:00
// Stop shortening hostname. Issue #61
// $entry['hostname'] = shorthost($entry['hostname'], 20);
if ($vars['page'] != 'device') {
$syslog_output .= '<td>' . $entry['date'] . '</td>
<td><strong>' . generate_device_link($entry) . '</strong></td>
2016-02-17 13:59:58 +00:00
<td><strong>' . $entry['program'] . ' : </strong> ' . htmlspecialchars($entry['msg']) . '</td>';
2016-08-18 20:28:22 -05:00
} else {
2016-02-17 13:59:58 +00:00
$syslog_output .= '<td><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
}
2007-04-03 14:10:23 +00:00
$syslog_output .= '</tr>';
}