mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix coding style part 2
This commit is contained in:
@@ -1,37 +1,37 @@
|
||||
<?php
|
||||
|
||||
if ($_SESSION['userlevel'] >= '10')
|
||||
{
|
||||
echo("<table cellspacing=0 cellpadding=1 width=100%>");
|
||||
if ($_SESSION['userlevel'] >= '10') {
|
||||
echo '<table cellspacing=0 cellpadding=1 width=100%>';
|
||||
|
||||
foreach (dbFetchRows("SELECT *,DATE_FORMAT(datetime, '".$config['dateformat']['mysql']['compact']."') as humandate FROM `authlog` ORDER BY `datetime` DESC LIMIT 0,250") as $entry)
|
||||
{
|
||||
if ($bg == $list_colour_a) { $bg = $list_colour_b; } else { $bg=$list_colour_a; }
|
||||
foreach (dbFetchRows("SELECT *,DATE_FORMAT(datetime, '".$config['dateformat']['mysql']['compact']."') as humandate FROM `authlog` ORDER BY `datetime` DESC LIMIT 0,250") as $entry) {
|
||||
if ($bg == $list_colour_a) {
|
||||
$bg = $list_colour_b;
|
||||
}
|
||||
else {
|
||||
$bg = $list_colour_a;
|
||||
}
|
||||
|
||||
echo("<tr style=\"background-color: $bg\">
|
||||
<td class=syslog width=160>
|
||||
" . $entry['datetime'] . "
|
||||
</td>
|
||||
<td class=list-bold width=125>
|
||||
".$entry['user']."
|
||||
</td>
|
||||
<td class=syslog width=250>
|
||||
".$entry['address']."
|
||||
</td>
|
||||
<td class=syslog width=150>
|
||||
".$entry['result']."
|
||||
</td>
|
||||
<td></td>
|
||||
");
|
||||
}
|
||||
echo "<tr style=\"background-color: $bg\">
|
||||
<td class=syslog width=160>
|
||||
".$entry['datetime'].'
|
||||
</td>
|
||||
<td class=list-bold width=125>
|
||||
'.$entry['user'].'
|
||||
</td>
|
||||
<td class=syslog width=250>
|
||||
'.$entry['address'].'
|
||||
</td>
|
||||
<td class=syslog width=150>
|
||||
'.$entry['result'].'
|
||||
</td>
|
||||
<td></td>
|
||||
';
|
||||
}//end foreach
|
||||
|
||||
$pagetitle[] = "Authlog";
|
||||
$pagetitle[] = 'Authlog';
|
||||
|
||||
echo("</table>");
|
||||
echo '</table>';
|
||||
}
|
||||
else
|
||||
{
|
||||
include("includes/error-no-perm.inc.php");
|
||||
}
|
||||
|
||||
?>
|
||||
else {
|
||||
include 'includes/error-no-perm.inc.php';
|
||||
}//end if
|
||||
|
Reference in New Issue
Block a user