/**
  * config
  */
 function isIgnored($name, $key)
 {
     if (!@$key) {
         return FALSE;
     }
     $name = strtoupper($name);
     $rowValue = $this->getConfigValue($this->database->getEscaped("EXTRAWATCH_IGNORE_" . $name));
     //$query = sprintf("select value from #__extrawatch_config where name='%s' limit 1", $this->database->getEscaped("EXTRAWATCH_IGNORE_" . $name));
     //$rowValue = $this->database->resultQuery($query);
     $exploded = explode("\n", $rowValue);
     foreach ($exploded as $value) {
         if (ExtraWatchHelper::wildcardSearch(trim($value), $key)) {
             return TRUE;
         }
     }
     return FALSE;
 }
 function blockSpamWord($value, $spamWord, $ip, $today)
 {
     $value = trim($value);
     if (@$spamWord && @$value && ExtraWatchHelper::wildcardSearch("*" . $spamWord . "*", $value)) {
         $this->blockIp($ip, ExtraWatchHelper::htmlspecialchars($value), $today, $spamWord);
         try {
             $this->dieWithBlockingMessage($ip);
         } catch (ExtraWatchIPBlockedException $exception) {
             die($exception->getBlockingMessage());
         }
     }
 }