dam-spam/modules/check-allowed-email.php
2025-11-23 20:28:22 -07:00

20 lines
No EOL
444 B
PHP

<?php
if ( !defined( 'ABSPATH' ) ) {
status_header( 404 );
exit;
}
class dam_spam_check_allowed_email extends dam_spam_module {
public function process( $ip, &$stats = array(), &$options = array(), &$post = array() ) {
$this->searchname = 'Allow List Email';
$email = $post['email'];
if ( empty( $email ) ) {
return false;
}
$allow_list = $options['allow_list'];
return $this->searchList( $email, $allow_list );
}
}
?>