|

|
#response.write Request.ServerVariables("http_url")
#--安全防護
$secu=1;
while (list($key, $value) = each ($HTTP_GET_VARS)) {
if (stristr($value,"cmd") or stristr($value,"truncate") or stristr($value,"dll") or stristr($value,"create") or stristr($value,"empty") or stristr($value,"iframe") or stristr($value,"drop") or stristr($value,"exec") or stristr($value,"delete") or stristr($value,"update") or stristr($value,"%20;%20") or stristr($value," ; ")) {
print "你用了怪指令!";
exit;
}
}
while (list($key, $value) = each ($HTTP_POST_VARS)) {
if stristr($value,"cmd") or stristr($value,"truncate") or stristr($value,"dll") or stristr($value,"create") or stristr($value,"empty") or stristr($value,"iframe") or stristr($value,"drop") or stristr($value,"exec") or stristr($value,"delete") or stristr($value,"update") or stristr($value,"%20;%20") or stristr($value," ; ")) {
print "你用了怪指令!";
exit;
}
}
#----------
?>

|