Files
librenms-librenms/html/pages/authlog.inc.php
T

32 lines
740 B
PHP
Raw Normal View History

2009-09-07 11:07:59 +00:00
<?php
2008-11-26 14:01:09 +00:00
if ($_SESSION['userlevel'] == '10')
{
echo("<table cellspacing=0 cellpadding=1 width=100%>");
2008-11-26 14:01:09 +00:00
2011-05-13 13:52:01 +00:00
foreach (dbFetchRows("SELECT *,DATE_FORMAT(datetime, '%D %b %Y %T') 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; }
2008-11-26 14:01:09 +00:00
echo("<tr style=\"background-color: $bg\">
2008-11-26 14:01:09 +00:00
<td class=syslog width=160>
" . $entry['datetime'] . "
</td>
<td class=list-bold width=125>
".$entry['user']."
</td>
2011-04-28 09:09:37 +00:00
<td class=syslog width=250>
2008-11-26 14:01:09 +00:00
".$entry['address']."
</td>
<td class=syslog width=150>
".$entry['result']."
</td>
<td></td>
");
}
2008-11-26 14:01:09 +00:00
echo("</table>");
2008-11-26 14:01:09 +00:00
}
2011-05-13 13:52:01 +00:00
?>