Fix coding style part 2

This commit is contained in:
Job Snijders
2015-07-13 20:10:26 +02:00
parent ad9590df9b
commit d8693f05ae
733 changed files with 37359 additions and 33947 deletions

View File

@@ -1,23 +1,18 @@
<?php
if (device_permitted($entry['device_id']))
{
echo("<tr>");
if (device_permitted($entry['device_id'])) {
echo '<tr>';
// Stop shortening hostname. Issue #61
//$entry['hostname'] = shorthost($entry['hostname'], 20);
if ($vars['page'] != "device")
{
echo("<td>" . $entry['date'] . "</td>");
echo("<td><strong>".generate_device_link($entry)."</strong></td>");
echo("<td><strong>" . $entry['program'] . " : </strong> " . htmlspecialchars($entry['msg']) . "</td>");
} else {
echo("<td><i>" . $entry['date'] . "</i>&nbsp;&nbsp;&nbsp;<strong>" . $entry['program'] . "</strong>&nbsp;&nbsp;&nbsp;" . htmlspecialchars($entry['msg']) . "</td>");
}
echo("</tr>");
// Stop shortening hostname. Issue #61
// $entry['hostname'] = shorthost($entry['hostname'], 20);
if ($vars['page'] != 'device') {
echo '<td>'.$entry['date'].'</td>';
echo '<td><strong>'.generate_device_link($entry).'</strong></td>';
echo '<td><strong>'.$entry['program'].' : </strong> '.htmlspecialchars($entry['msg']).'</td>';
}
else {
echo '<td><i>'.$entry['date'].'</i>&nbsp;&nbsp;&nbsp;<strong>'.$entry['program'].'</strong>&nbsp;&nbsp;&nbsp;'.htmlspecialchars($entry['msg']).'</td>';
}
echo '</tr>';
}
?>