Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function is_black($string)
- {
- $black_list = "טמבל|אידיוט|מפגר";
- $string = urldecode($string);
- if(preg_match("/^($black_list)$/i", $string))
- {
- return 1;
- }
- else
- {
- if(preg_match("/^.&($black_list)&.$/i", $string))
- {
- return 1;
- }
- else
- {
- if(preg_match("/^($black_list)./i", $string))
- {
- return 1;
- }
- else
- {
- return 0;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement