stop-spammers-classic/modules/chkwlem.php
2025-09-13 16:55:35 -06:00

21 lines
No EOL
511 B
PHP

<?php
if ( !defined( 'ABSPATH' ) ) {
status_header( 404 );
exit;
}
class chkwlem extends be_module { // change name
public $searchname = 'Allow List Email';
public function process( $ip, &$stats = array(), &$options = array(), &$post = array() ) {
// checks the email - not sure I want to allow an Allow List on email - maybe won't include
$email = $post['email'];
if ( empty( $email ) ) {
return false;
}
$wlist = $options['wlist'];
return $this->searchList( $email, $wlist );
}
}
?>