Esempio n. 1
0
 /**
  * Check Duplicate Contents.
  *
  * @param integer $iSenderId Sender's ID.
  * @param string $sMsg Message content.
  * @return boolean Returns TRUE if similar content was found in the table, FALSE otherwise.
  */
 public function isDuplicateContent($iSenderId, $sMsg)
 {
     return Framework\Mvc\Model\Spam::detectDuplicate($sMsg, 'message', 'sender', $iSenderId, 'Messages', 'AND NOT FIND_IN_SET(\'recipient\', toDelete)');
 }
Esempio n. 2
0
 /**
  * Check Duplicate Contents.
  *
  * @param integer $iSenderId
  * @param string $sCheckMsg
  * @param string $sTable
  * @return boolean Returns TRUE if similar content was found in the table, FALSE otherwise.
  */
 public function isDuplicateContent($iSenderId, $sCheckMsg, $sTable)
 {
     $sTable = CommentCore::checkTable($sTable);
     return Framework\Mvc\Model\Spam::detectDuplicate($sCheckMsg, 'comment', 'sender', $iSenderId, 'Comments' . $sTable);
 }
 /**
  * Check Duplicate Messages.
  *
  * @param string $sCheckMsg
  * @param integer $iProfileId
  * @return boolean Returns TRUE if similar content was found in the table, FALSE otherwise.
  */
 public function isDuplicateMessage($iProfileId, $sCheckMsg)
 {
     return Framework\Mvc\Model\Spam::detectDuplicate($sCheckMsg, 'message', 'messageId', $iProfileId, 'ForumsMessages');
 }