2011-06-03 14:44:01 +02:00
|
|
|
<?php
|
|
|
|
function admin_log() {
|
2012-12-26 20:36:31 +01:00
|
|
|
$log_entries_source = LogEntries();
|
|
|
|
$log_entries = array();
|
|
|
|
foreach($log_entries_source as $log_entry) {
|
|
|
|
$log_entry['date'] = date("H:i", $log_entry['timestamp']);
|
|
|
|
$log_entries[] = $log_entry;
|
|
|
|
}
|
|
|
|
|
|
|
|
return page(array(
|
|
|
|
msg(),
|
|
|
|
table(array(
|
|
|
|
'date' => "Time",
|
|
|
|
'nick' => "Angel",
|
|
|
|
'message' => "Log Entry"
|
|
|
|
), $log_entries)
|
|
|
|
));
|
2011-06-03 14:44:01 +02:00
|
|
|
}
|
|
|
|
?>
|
|
|
|
|