Show Your Support
// ###################### Start modlog ####################### function modlog ($extrainfo="",$userid=-1,$script="",$scriptaction="") { global $DB_site,$bbuserinfo,$PHP_SELF,$action,$REMOTE_ADDR; if ($userid==-1) { $userid=$bbuserinfo[userid]; } if ($script=="") { $script=basename($PHP_SELF); } if ($scriptaction=="") { $scriptaction=$action; } $DB_site->query("INSERT INTO moderatorlog (modlogid,userid,dateline,script,action,extrainfo,ipaddress) VALUES (NULL,'$userid',".time().",'".addslashes($script)."','".addslashes($scriptaction)."','".addslashes($extrainfo)."','$REMOTE_ADDR')"); }