-
- //特殊字符过滤
- function htmldecode($str)
- {
- if(empty($str)) return;
- if($str=="") return $str;
- $str=str_replace("&",chr(34),$str);
- $str=str_replace(">",">",$str);
- $str=str_replace("<","<",$str);
- $str=str_replace("&","&",$str);
- $str=str_replace(" ",chr(32),$str);
- $str=str_replace(" ",chr(9),$str);
- $str=str_replace("'",chr(39),$str);
- $str=str_replace("
",chr(13),$str);
- $str=str_replace("''","'",$str);
- $str=str_replace("select","select",$str);
- $str=str_replace("join","join",$str);
- $str=str_replace("union","union",$str);
- $str=str_replace("where","where",$str);
- $str=str_replace("insert","insert",$str);
- $str=str_replace("delete","delete",$str);
- $str=str_replace("update","update",$str);
- $str=str_replace("like","like",$str);
- $str=str_replace("drop","drop",$str);
- $str=str_replace("create","create",$str);
- $str=str_replace("modify","modify",$str);
- $str=str_replace("rename","rename",$str);
- $str=str_replace("alter","alter",$str);
- $str=str_replace("cas","cast",$str);
- //脚本学堂 http://bbs.it-home.org
- $farr = array(
- "//s /" , //过滤多余的空白
- "/<(//?)(img|script|i?frame|style|html|body|title|link|meta|/?|/%)([^>]*?)>/isu" , //过滤
作者最新文章
-
2024-10-22 09:46:29
-
2024-10-13 13:53:41
-
2024-10-12 12:15:51
-
2024-10-11 22:47:31
-
2024-10-11 19:36:51
-
2024-10-11 15:50:41
-
2024-10-11 15:07:41
-
2024-10-11 14:21:21
-
2024-10-11 12:59:11
-
2024-10-11 12:17:31
|