2009-09-07 11:07:59 +00:00
< ? php
2008-11-26 14:01:09 +00:00
2015-02-16 23:45:28 +00:00
if ( $_SESSION [ 'userlevel' ] >= '10' )
2011-03-17 00:09:20 +00:00
{
echo ( " <table cellspacing=0 cellpadding=1 width=100%> " );
2008-11-26 14:01:09 +00:00
2015-05-22 13:38:52 +01:00
foreach ( dbFetchRows ( " SELECT *,DATE_FORMAT(datetime, ' " . $config [ 'dateformat' ][ 'mysql' ][ 'compact' ] . " ') as humandate FROM `authlog` ORDER BY `datetime` DESC LIMIT 0,250 " ) as $entry )
2011-03-17 00:09:20 +00:00
{
if ( $bg == $list_colour_a ) { $bg = $list_colour_b ; } else { $bg = $list_colour_a ; }
2008-11-26 14:01:09 +00:00
2011-03-17 00:09:20 +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 >
" );
2011-03-17 00:09:20 +00:00
}
2008-11-26 14:01:09 +00:00
2011-10-18 14:41:19 +00:00
$pagetitle [] = " Authlog " ;
2011-03-17 00:09:20 +00:00
echo ( " </table> " );
2008-11-26 14:01:09 +00:00
}
2011-10-18 14:41:19 +00:00
else
{
include ( " includes/error-no-perm.inc.php " );
}
2008-11-26 14:01:09 +00:00
2011-05-13 13:52:01 +00:00
?>