14 throw new LogicException( __CLASS__ .
' cannot be used to filter links.' );
37 $email = $user->getEmail();
39 if ( !count( $blacklists ) ) {
46 wfDebugLog(
'SpamBlacklist',
"Excluding whitelisted email addresses from " .
47 count( $whitelists ) .
" regexes: " . implode(
', ', $whitelists ) .
"\n" );
48 foreach ( $whitelists as $regex ) {
57 wfDebugLog(
'SpamBlacklist',
"Checking e-mail address against " . count( $blacklists ) .
58 " regexes: " . implode(
', ', $blacklists ) .
"\n" );
59 foreach ( $blacklists as $regex ) {
and that you know you can do these things To protect your we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights These restrictions translate to certain responsibilities for you if you distribute copies of the or if you modify it For if you distribute copies of such a whether gratis or for a you must give the recipients all the rights that you have You must make sure that receive or can get the source code And you must show them these terms so they know their rights We protect your rights with two and(2) offer you this license which gives you legal permission to copy
wfDebugLog( $logGroup, $text, $dest='all', array $context=[])
Send a line to a supplementary debug log file, if configured, or main debug log if not.
Base class for different kinds of blacklists.
getBlacklists()
Fetch local and (possibly cached) remote blacklists.
getWhitelists()
Returns the (local) whitelist.
getBlacklistType()
Returns the code for the blacklist implementation.
checkUser(User $user)
Checks a User object for a blacklisted email address.
filter(array $links, Title $title, $preventLog=false)
Represents a title within MediaWiki.
The User object encapsulates all of the user-specific settings (user_id, name, rights,...
The wiki should then use memcached to cache various data To use multiple just add more items to the array To increase the weight of a make its entry a array("192.168.0.1:11211", 2))