12 if( ! function_exists(
'mb_strlen' ) )
return true ;
15 if( is_object( $xoopsUser ) )
return true ;
24 foreach(
$_POST as $key => $data ) {
26 if( ! is_string( $data ) ) continue ;
28 $check_length = isset( $lengths[ $key ] ) ? $lengths[ $key ] : $lengths[ 0 ] ;
29 if( strlen( $data ) > $check_length ) {
30 if( strlen( $data ) == mb_strlen( $data ) ) {
31 $this->protector->message .=
"No multibyte character was found ($data)\n" ;
32 $this->protector->output_log(
'Singlebyte SPAM' , 0 ,
false , 128 ) ;
33 die(
'Protector rejects your post, because your post looks like SPAM' ) ;