Class zpSimpleSpam
This implements the standard SpamFilter class for the Simple spam filter.
public
SpamFilter
|
|
public
|
|
public
array
|
|
public
|
#
handleOption( string $option, mixed $currentValue )
Handles custom formatting of options for Admin |
public
integer
|
#
filterMessage( string $author, string $email, string $website, string $body, object $receiver, string $ip )
The function for processing a message to see if it might be SPAM returns: 0 if the message is SPAM 1 if the message might be SPAM (it will be marked for moderation) 2 if the message is not SPAM |
public
boolean
|
|
public
boolean
|
#
hasSpamWords( string $text )
Tests to see if the text contains any of the list of SPAM trigger words |
public
|
public
string
|
$name
|
#
'simpleSpam'
|
public
array
|
$wordsToDieOn
|
#
array('cialis', 'ebony', 'nude', 'porn', 'porno', 'pussy', 'upskirt', 'ringtones', 'phentermine', 'viagra', 'levitra')
|
public
array
|
$patternsToDieOn
|
#
array('\[url=.*\]')
|
public
integer
|
$excessiveURLCount
|
#
5
|