The code I'm talking about is :
function cbRegAntiSpamCheck( $mode = 1 ) {
global $_POST;
$validateValuePost = cbGetParam( $_POST, cbGetRegAntiSpamFieldName() );
$validateCookieName = cbGetRegAntiSpamCookieName();
if ( $validateCookieName === false ) {
$i = 2;
} else {
cbimport( 'cb.session' );
$validateValueCookie = CBCookie::getcookie( $validateCookieName );
$parts0 = explode( '_', $validateValuePost );
$parts1 = explode( '_', $validateValueCookie );
if ( ( count( $parts0 ) == 3 ) && ( count( $parts1 ) == 3 ) ) {
for($i = 0; $i < 2; $i++) {
$validate = cbGetRegAntiSpams( $i, $parts0[2], $parts1[2] );
if ( ( $validateValuePost == $validate[0] ) && ( $validateValueCookie == $validate[1] ) ) {
break;
}
}
} else {
$i = 2;
}
}
if ( $i == 2 ) {
if ( $mode == 2 ) {
return false;
}
_cbExpiredSessionJSterminate( 200 );
exit;
}
return true;
}