diff options
author | Philip Häusler <msquare@notrademark.de> | 2012-12-26 14:02:27 +0100 |
---|---|---|
committer | Philip Häusler <msquare@notrademark.de> | 2012-12-26 14:02:27 +0100 |
commit | 0dabaa505e4463498665a1eb6ab95979578beab3 (patch) | |
tree | cf2080c39ed5e03f1d27f6d405dc5d0131679c31 /includes/model/LogEntries_model.php | |
parent | 213b6261c8fe6de5e405243f7e2179bdd3a1a271 (diff) |
#28 begin log
Diffstat (limited to 'includes/model/LogEntries_model.php')
-rw-r--r-- | includes/model/LogEntries_model.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/includes/model/LogEntries_model.php b/includes/model/LogEntries_model.php new file mode 100644 index 00000000..d8615f0e --- /dev/null +++ b/includes/model/LogEntries_model.php @@ -0,0 +1,15 @@ +<?php + +/** + * Creates a log entry. + * @param $nick Username + * @param $message Log Message + */ +function LogEntry_create($nick, $message) { + $timestamp = date(); + + sql_query("INSERT INTO `LogEntries` SET `timestamp`=" . sql_escape($timestamp) . ", `nick`='" . sql_escape($nick) . "', `message`='" . sql_escape($message) . "'"); +} + + +?>
\ No newline at end of file |