summaryrefslogtreecommitdiff
path: root/includes/pages/admin_log.php
blob: 6a687e17839b723ca0d6505faca82b57e8eb2192 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
function admin_log_title() {
  return _("Log");
}

function admin_log() {
  $log_entries_source = LogEntries();
  $log_entries = array();
  foreach ($log_entries_source as $log_entry) {
    $log_entry['date'] = date("d.m.Y H:i", $log_entry['timestamp']);
    $log_entries[] = $log_entry;
  }
  
  return page_with_title(admin_log_title(), array(
      msg(),
      table(array(
          'date' => "Time",
          'nick' => "Angel",
          'message' => "Log Entry" 
      ), $log_entries) 
  ));
}
?>