diff options
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 |