mirror of
https://gh.wpcy.net/https://github.com/webguyio/stop-spammers-classic.git
synced 2026-05-28 02:13:58 +08:00
21 lines
No EOL
504 B
PHP
21 lines
No EOL
504 B
PHP
<?php
|
|
|
|
if ( !defined( 'ABSPATH' ) ) {
|
|
status_header( 404 );
|
|
exit;
|
|
}
|
|
|
|
class chkwluserid extends be_module { // change name
|
|
public $searchname = 'Allow List Email';
|
|
public function process( $ip, &$stats = array(), &$options = array(), &$post = array() ) {
|
|
// checks the user - dangerous to allow a whitelisted user - spammers could use it
|
|
$user = $post['author'];
|
|
if ( empty( $user ) ) {
|
|
return false;
|
|
}
|
|
$wlist = $options['wlist'];
|
|
return $this->searchList( $user, $wlist );
|
|
}
|
|
}
|
|
|
|
?>
|