summaryrefslogtreecommitdiff
path: root/includes/sys_log.php
blob: 65c0aa415a42c777fe80b538e229252590d58a3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php

/**
 * Write a log entry. This should be used to log user's activity.
 * @param $message
 */
function engelsystem_log($message) {
  global $user;

  if(isset($user)) {
    $nick = $user['Nick'];
  } else {
    $nick = "Guest";
  }

  LogEntry_create($nick, $message);
}

?>