Initial commit
This commit is contained in:
13
lotgd-web/lotgd/lib/gamelog.php
Executable file
13
lotgd-web/lotgd/lib/gamelog.php
Executable file
@ -0,0 +1,13 @@
|
||||
<?php
|
||||
function gamelog($message,$category="general",$filed=false){
|
||||
global $session;
|
||||
$sql = "INSERT INTO ".db_prefix("gamelog")." (message,category,filed,date,who) VALUES (
|
||||
'".addslashes($message)."',
|
||||
'".addslashes($category)."',
|
||||
'".($filed?"1":"0")."',
|
||||
'".date("Y-m-d H:i:s")."',
|
||||
'".(int)$session['user']['acctid']."'
|
||||
)";
|
||||
db_query($sql);
|
||||
}
|
||||
?>
|
Reference in New Issue
Block a user