LotGDocker/lotgd-web/lotgd/lib/gamelog.php
2020-08-17 19:16:42 -04:00

14 lines
357 B
PHP
Executable File

<?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);
}
?>