diff options
author | Philip Häusler <msquare@notrademark.de> | 2013-10-13 00:52:44 +0200 |
---|---|---|
committer | Philip Häusler <msquare@notrademark.de> | 2013-10-13 00:52:44 +0200 |
commit | 3c4321ff76accb98ec3c99316766234ebcafae90 (patch) | |
tree | 7461bf942302ec3344a5006f3d40c49963ac28dc /includes/model/LogEntries_model.php | |
parent | bfb0cacd541cc20129a3c0ac77130370741dca18 (diff) |
30c3 theme
Diffstat (limited to 'includes/model/LogEntries_model.php')
-rw-r--r-- | includes/model/LogEntries_model.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/includes/model/LogEntries_model.php b/includes/model/LogEntries_model.php index 1fa97356..30e2b58c 100644 --- a/includes/model/LogEntries_model.php +++ b/includes/model/LogEntries_model.php @@ -2,8 +2,10 @@ /** * Creates a log entry. + * * @param $nick Username - * @param $message Log Message + * @param $message Log + * Message */ function LogEntry_create($nick, $message) { return sql_query("INSERT INTO `LogEntries` SET `timestamp`=" . sql_escape(time()) . ", `nick`='" . sql_escape($nick) . "', `message`='" . sql_escape($message) . "'"); @@ -13,8 +15,7 @@ function LogEntry_create($nick, $message) { * Returns log entries of the last 24 hours with maximum count of 1000. */ function LogEntries() { - return sql_select("SELECT * FROM `LogEntries` WHERE `timestamp` > " . (time() - 24*60*60) . " ORDER BY `timestamp` DESC LIMIT 1000"); + return sql_select("SELECT * FROM `LogEntries` WHERE `timestamp` > " . (time() - 24 * 60 * 60) . " ORDER BY `timestamp` DESC LIMIT 1000"); } - ?>
\ No newline at end of file |