--- fenglin/www/log.inc.php 2005/09/09 13:35:20 1.1 +++ fenglin/www/log.inc.php 2023/07/29 03:20:51 1.3 @@ -6,10 +6,15 @@ require_once "../lib/client_addr.inc.php mysql_query("insert delayed into page_log (dt,ip,UID,tm,script,query) ". "values(now(),'".Client_Address()."',0,0,"."'". $_SERVER["SCRIPT_NAME"]."','". - (isset($_SERVER["QUERY_STRING"])?$_SERVER["QUERY_STRING"]:""). + (isset($_SERVER["QUERY_STRING"])?mysql_escape_string($_SERVER["QUERY_STRING"]):""). "')",$db_conn_log) or die("Add log error!"); mysql_close($db_conn_log); session_cache_limiter("public"); + +/** + * Sends http headers + */ + header('Content-Type: text/html; charset=gb2312'); ?>