diff options
Diffstat (limited to 'includes/sys_log.php')
-rw-r--r-- | includes/sys_log.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/includes/sys_log.php b/includes/sys_log.php new file mode 100644 index 00000000..65c0aa41 --- /dev/null +++ b/includes/sys_log.php @@ -0,0 +1,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); +} + +?>
\ No newline at end of file |