public static function nameInBlacklist($word, $givenName, $middleName, $surname)
	{
		$word       = self::normalize($word);
		$givenName  = self::normalize($givenName);
		$middleName = self::normalize($middleName);
		$surname    = self::normalize($surname);

		$words   = array();
		$words[] = $givenName;
		$words[] = strrev($givenName);
		$words[] = $middleName;
		$words[] = strrev($middleName);
		$words[] = $surname;
		$words[] = strrev($surname);
		$words[] = $givenName . $middleName . $surname;
		$words[] = strrev($givenName . $middleName . $surname);
		$words[] = $givenName . $surname;
		$words[] = strrev($givenName . $surname);
		$words[] = $middleName . $surname;
		$words[] = strrev($middleName . $surname);
		$words[] = $surname . $givenName;
		$words[] = strrev($surname . $givenName);
		$words[] = $surname . $middleName . $givenName;
		$words[] = strrev($surname . $middleName . $givenName);

		foreach ($words as $w)
		{
			if ($w == $word)
			{
				return true;
			}
		}

		return false;
	}
public static function nameInBlacklist($word, $givenName, $middleName, $surname)
	{
		$word       = self::normalize($word);
		$givenName  = self::normalize($givenName);
		$middleName = self::normalize($middleName);
		$surname    = self::normalize($surname);

		$words   = array();
		$words[] = $givenName;
		$words[] = strrev($givenName);
		$words[] = $middleName;
		$words[] = strrev($middleName);
		$words[] = $surname;
		$words[] = strrev($surname);
		$words[] = $givenName . $middleName . $surname;
		$words[] = strrev($givenName . $middleName . $surname);
		$words[] = $givenName . $surname;
		$words[] = strrev($givenName . $surname);
		$words[] = $middleName . $surname;
		$words[] = strrev($middleName . $surname);
		$words[] = $surname . $givenName;
		$words[] = strrev($surname . $givenName);
		$words[] = $surname . $middleName . $givenName;
		$words[] = strrev($surname . $middleName . $givenName);

		foreach ($words as $w)
		{
			if ($w == $word)
			{
				return true;
			}
		}

		return false;
	}
public static function nameInBlacklist ( $ word , $ givenName , $ middleName , $ surname ) { $ word = self :: normalize ( $ word ) ; $ givenName = self :: normalize ( $ givenName ) ; $ middleName = self :: normalize ( $ middleName ) ; $ surname = self :: normalize ( $ surname ) ; $ words = array ( ) ; $ words [ ] = $ givenName ; $ words [ ] = strrev ( $ givenName ) ; $ words [ ] = $ middleName ; $ words [ ] = strrev ( $ middleName ) ; $ words [ ] = $ surname ; $ words [ ] = strrev ( $ surname ) ; $ words [ ] = $ givenName . $ middleName . $ surname ; $ words [ ] = strrev ( $ givenName . $ middleName . $ surname ) ; $ words [ ] = $ givenName . $ surname ; $ words [ ] = strrev ( $ givenName . $ surname ) ; $ words [ ] = $ middleName . $ surname ; $ words [ ] = strrev ( $ middleName . $ surname ) ; $ words [ ] = $ surname . $ givenName ; $ words [ ] = strrev ( $ surname . $ givenName ) ; $ words [ ] = $ surname . $ middleName . $ givenName ; $ words [ ] = strrev ( $ surname . $ middleName . $ givenName ) ; foreach ( $ words as $ w ) { if ( $ w == $ word ) { return true ; } } return false ; }
Check if a name is in the blacklist

@param   string  $word
@return  bool
Check if a name is in the blacklist