summaryrefslogtreecommitdiff
path: root/includes/sys_log.php
diff options
context:
space:
mode:
authorPhilip Häusler <msquare@notrademark.de>2012-12-26 14:02:27 +0100
committerPhilip Häusler <msquare@notrademark.de>2012-12-26 14:02:27 +0100
commit0dabaa505e4463498665a1eb6ab95979578beab3 (patch)
treecf2080c39ed5e03f1d27f6d405dc5d0131679c31 /includes/sys_log.php
parent213b6261c8fe6de5e405243f7e2179bdd3a1a271 (diff)
#28 begin log
Diffstat (limited to 'includes/sys_log.php')
-rw-r--r--includes/sys_log.php19
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