You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
335 B
PHTML
15 lines
335 B
PHTML
12 years ago
|
<?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) . "'");
|
||
|
}
|
||
|
|
||
|
|
||
|
?>
|