Exemplo n.º 1
0
 function isBannedWord(&$word)
 {
     $case = ValidationBannedWordsHelper::wordCase($word);
     $nword = strtolower($word);
     $this->loadBannedWords();
     if (in_array($nword, $this->bannedWords)) {
         return TRUE;
     }
     return FALSE;
 }
Exemplo n.º 2
0
    function isBannedWord(&$word){
		$case = ValidationBannedWordsHelper::wordCase($word);
		$nword = strtolower($word);
		if ($msg = $this->loadBannedWords()) {
			//print "<span class=\"error\">$msg</span>";
			return FALSE;
		}
		if (isset($this->bannedWords[$nword])) {
			$word = $this->bannedWords[$nword];
			ValidationBannedWordsHelper::forceCase($case, $word);
			return TRUE;
		}
		return FALSE;
    }