summaryrefslogtreecommitdiff
path: root/forum/utils/log.php
diff options
context:
space:
mode:
Diffstat (limited to 'forum/utils/log.php')
-rw-r--r--forum/utils/log.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/forum/utils/log.php b/forum/utils/log.php
new file mode 100644
index 0000000..e04c3bf
--- /dev/null
+++ b/forum/utils/log.php
@@ -0,0 +1,10 @@
+<?php
+
+function _log($user, $action) {
+ global $LOG_FILE;
+ $fp = fopen($LOG_FILE, "a");
+ fprintf($fp, "%s - %s - %s\n", date("r"), $user, $action);
+ fclose($fp);
+}
+
+?> \ No newline at end of file