' ) === false ) return null; if ( strpos( $response, 'no' ) !== false ) return false; return (int)substr( $response, strpos( $response, '' ) + 11 ); } function nospamuser_check_email( $r, $email ) { if ( $r ) { $response = nospamuser_check( 'email', $email ); if ( $response >= NOSPAMUSER_MAX ) bb_die( 'Your email address has been marked as spam by StopForumSpam.com. Contact the forum administrator if you are not a spambot.' ); return $r; } else return $r; } function nospamuser_check_username( $username ) { if ( $username ) { $response = nospamuser_check( 'username', $username ); if ( $response >= NOSPAMUSER_MAX ) bb_die( 'Your username has been marked as spam by StopForumSpam.com. Contact the forum administrator if you are not a spambot.' ); return $username; } else return $username; } function nospamuser_check_ip() { $response = nospamuser_check( 'ip', $_SERVER['REMOTE_ADDR'] ); if ( $response >= NOSPAMUSER_MAX ) bb_die( 'Your IP address has been marked as spam by StopForumSpam.com. Contact the forum administrator if you are not a spambot.' ); } add_filter( 'bb_verify_email', 'nospamuser_check_email', 10, 2 ); add_filter( 'sanitize_user', 'nospamuser_check_username' ); if ( bb_get_location() == 'register-page' ) nospamuser_check_ip(); ?>