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

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

    $nick = "Guest";
    if (isset($user)) {
        $nick = User_Nick_render($user);
    }
    LogEntry_create($nick, $message);
}