Function inject_check($
sql_str) {
return eregi('select|insert|and|or|update|delete|\'|\/\*|\*|\.\.\/|\.\/|union|into|load_file|outfile',$
sql_str);
}
if (inject_check($_SERVER['QUERY_STRING'])==1 or inject_check(file_get_contents("
PHP://input"))==1){
//echo "警告 非法访问!";
header("Location: Error.
PHP");
}