/** * Here we do the work * * @param string $comment * @return int */ public function execute($comment) { $this->result = PLG_SPAM_ACTION_DELETE; if (isset($GLOBALS['SNL_triggered']) && $GLOBALS['SNL_triggered']) { // the Examine class already reported these to SNL return PLG_SPAM_FOUND; } $SNL = new SNLbase(); $SNL->CheckForSpam($comment); return PLG_SPAM_FOUND; }
/** * Here we do the work * * @param string $comment * @return int */ public function execute($comment) { global $LANG_SX00; $ans = PLG_SPAM_NOT_FOUND; $uid = $this->getUid(); $SNL = new SNLbase(); if ($SNL->CheckForSpam($comment)) { $ans = PLG_SPAM_FOUND; SPAMX_log($LANG_SX00['foundspam'] . 'Spam Number of Links (SNL)' . $LANG_SX00['foundspam2'] . $uid . $LANG_SX00['foundspam3'] . $_SERVER['REMOTE_ADDR']); } // tell the Action module that we've already been triggered $GLOBALS['SNL_triggered'] = true; return $ans; }