2009-09-07 11:07:59 +00:00
< ? php
2015-08-29 22:35:13 +05:30
echo " <h3>Authlog</h3> " ;
if ( $_SESSION [ 'userlevel' ] >= '10' ) {
2015-09-23 15:48:53 +05:30
echo '<table class="table table-hover table-condensed">' ;
echo " <th>Timestamp</th><th>User</th><th>IP Address</th><th>Result</th> " ;
2015-08-29 22:35:13 +05:30
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 ;
2015-07-13 20:10:26 +02:00
}
else {
2015-08-29 22:35:13 +05:30
$bg = $list_colour_a ;
2015-08-29 22:10:19 +05:30
}
2015-09-23 15:48:53 +05:30
echo " <tr>
< td >
2015-08-29 22:35:13 +05:30
" . $entry['datetime'] .'
</ td >
2015-09-23 15:48:53 +05:30
< td >
2015-08-29 22:35:13 +05:30
'.$entry[' user '].'
</ td >
2015-09-23 15:48:53 +05:30
< td >
2015-08-29 22:35:13 +05:30
'.$entry[' address '].'
</ td >
2015-09-23 15:48:53 +05:30
< td >
2015-08-29 22:35:13 +05:30
'.$entry[' result '].'
</ td >
' ;
} //end foreach
$pagetitle [] = 'Authlog' ;
echo '</table>' ;
2015-08-29 22:10:19 +05:30
}
2015-08-29 22:35:13 +05:30
else {
include 'includes/error-no-perm.inc.php' ;
} //end if