better logon process

git-svn-id: http://www.observium.org/svn/observer/trunk@318 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2008-11-26 14:01:09 +00:00
parent e97df43c41
commit f33bca5e3e
8 changed files with 84 additions and 13 deletions

43
html/pages/authlog.php Normal file
View File

@@ -0,0 +1,43 @@
<?
if($_SESSION['userlevel'] == '10') {
$query = "SELECT *,DATE_FORMAT(datetime, '%D %b %Y %T') as humandate FROM `authlog` ORDER BY `datetime` DESC LIMIT 0,250";
$data = mysql_query($query);
echo("<table cellspacing=0 cellpadding=1 width=100%>");
while($entry = mysql_fetch_array($data)) {
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=150>
".$entry['address']."
</td>
<td class=syslog width=150>
".$entry['result']."
</td>
<td></td>
");
}
echo("</table>");
} else {
}
?>