mirror of
https://gh.wpcy.net/https://github.com/webguyio/dam-spam.git
synced 2026-05-27 03:23:56 +08:00
20 lines
No EOL
444 B
PHP
20 lines
No EOL
444 B
PHP
<?php
|
|
|
|
if ( !defined( 'ABSPATH' ) ) {
|
|
status_header( 404 );
|
|
exit;
|
|
}
|
|
|
|
class dam_spam_check_allowed_user_id extends dam_spam_module {
|
|
public function process( $ip, &$stats = array(), &$options = array(), &$post = array() ) {
|
|
$this->searchname = 'Allow List Email';
|
|
$user = $post['author'];
|
|
if ( empty( $user ) ) {
|
|
return false;
|
|
}
|
|
$allow_list = $options['allow_list'];
|
|
return $this->searchList( $user, $allow_list );
|
|
}
|
|
}
|
|
|
|
?>
|