summaryrefslogtreecommitdiff
path: root/includes/model/LogEntries_model.php
blob: d8615f0e4cc4778e873a5481d9de419b47db8102 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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) . "'");
}


?>