Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Warning: implode() [function.implode]: Invalid arguments passed in /home/kgaffuri/gameologyshop.com/forum/signup.php on line 49
- Warning: implode() [function.implode]: Invalid arguments passed in /home/kgaffuri/gameologyshop.com/forum/signup.php on line 50
- $bad_name = array($stringofbadwords);
- $forbidden_name = array ('nigger','ngr','niiger');
- function userNameValid($name_in) {
- $badFound = preg_match("/\b(" . implode("|",$bad_name) . ")\b/i", $name_in); // checks array for exact match
- $forbiddenFound = preg_match("/(" . implode("|",$forbidden_name) . ")/i", $name_in); // checks array for any character match with a given name (i.e. "ass" would be found in assassin)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement