xxs_check



function xxs_check($post) {

   $hack=array("script", "style", "src",  "http", "js", "css", "img", "eval", "frame", "=", "." ,  "/", "#","<", ">", "*", "&", "?","%","|","@",":","(",")" ,"\"" ,"'" ,"+" ,"-" ,"`" ,"\\" ,"!" ," " );

   if (!get_magic_quotes_gpc())  
   { 
      $post = addslashes($post);   
   } 
   $post= strtolower($post); 
   
   $post=trim($post);
   
   $post = str_replace($hack, "", $post);

   return $post;

}


你可能感兴趣的:(xxs_check)