Advertisement
hadar

Untitled

Apr 20th, 2012
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.67 KB | None | 0 0
  1.  
  2. Warning: implode() [function.implode]: Invalid arguments passed in /home/kgaffuri/gameologyshop.com/forum/signup.php on line 49
  3.  
  4. Warning: implode() [function.implode]: Invalid arguments passed in /home/kgaffuri/gameologyshop.com/forum/signup.php on line 50
  5.  
  6.  
  7. $bad_name = array($stringofbadwords);
  8. $forbidden_name = array ('nigger','ngr','niiger');
  9.  
  10. function userNameValid($name_in) {
  11.   $badFound = preg_match("/\b(" . implode("|",$bad_name) . ")\b/i", $name_in); // checks array for exact match
  12.   $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