summaryrefslogtreecommitdiffstats
path: root/inc/eventlog.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/eventlog.inc.php')
-rw-r--r--inc/eventlog.inc.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/inc/eventlog.inc.php b/inc/eventlog.inc.php
new file mode 100644
index 00000000..0d7f6d4a
--- /dev/null
+++ b/inc/eventlog.inc.php
@@ -0,0 +1,15 @@
+<?php
+
+class EventLog
+{
+
+ public static function log($eventId, $message)
+ {
+ Database::exec("INSERT INTO eventlog (dateline, logtypeid, description)"
+ . " VALUES (UNIX_TIMESTAMP(), :eventid, :message)", array(
+ 'eventid' => $eventId,
+ 'message' => $message
+ ));
+ }
+
+}