/**
  * Here we do the work
  *
  * @param  string $comment
  * @return int
  */
 public function execute($comment)
 {
     $this->result = PLG_SPAM_ACTION_DELETE;
     if (isset($GLOBALS['slv_triggered']) && $GLOBALS['slv_triggered']) {
         // the Examine class already reported these to SLV
         return PLG_SPAM_FOUND;
     }
     $slv = new SLVbase();
     $slv->CheckForSpam($comment);
     return PLG_SPAM_FOUND;
 }
 /**
  * Here we do the work
  */
 function execute($comment)
 {
     global $result;
     $result = 128;
     if (isset($GLOBALS['slv_triggered']) && $GLOBALS['slv_triggered']) {
         // the Examine class already reported these to SLV
         return 1;
     }
     $slv = new SLVbase();
     $slv->CheckForSpam($comment);
     return 1;
 }
Esempio n. 3
0
 /**
  * Here we do the work
  *
  * @param  string
  * @return int
  */
 public function execute($comment)
 {
     global $LANG_SX00;
     $ans = PLG_SPAM_NOT_FOUND;
     $uid = $this->getUid();
     $slv = new SLVbase();
     if ($slv->CheckForSpam($comment)) {
         $ans = PLG_SPAM_FOUND;
         SPAMX_log($LANG_SX00['foundspam'] . 'Spam Link Verification (SLV)' . $LANG_SX00['foundspam2'] . $uid . $LANG_SX00['foundspam3'] . $_SERVER['REMOTE_ADDR']);
     }
     // tell the Action module that we've already been triggered
     $GLOBALS['slv_triggered'] = true;
     return $ans;
 }
Esempio n. 4
0
 /**
  * Here we do the work
  */
 function execute($comment)
 {
     global $_USER, $LANG_SX00;
     $ans = 0;
     if (isset($_USER['uid']) && $_USER['uid'] > 1) {
         $uid = $_USER['uid'];
     } else {
         $uid = 1;
     }
     $slv = new SLVbase();
     if ($slv->CheckForSpam($comment)) {
         $ans = 1;
         SPAMX_log($LANG_SX00['foundspam'] . 'Spam Link Verification (SLV)' . $LANG_SX00['foundspam2'] . $uid . $LANG_SX00['foundspam3'] . $_SERVER['REMOTE_ADDR']);
     }
     // tell the Action module that we've already been triggered
     $GLOBALS['slv_triggered'] = true;
     return $ans;
 }