13a14 > define ( 'BOTBOUNCER_API_KEY','AFAFAFAFAFAFAFAFAFAFAFAFAFAFAFAF'); 257c258,283 < $this->start_login( $_POST['openid_url'], $redirect_to ); --- > if(function_exists('_fetch_remote_file') === false) > { > require_once( ABSPATH . 'wp-includes/class-snoopy.php'); > function _fetch_remote_file ($url, $headers = "" ) { > // Snoopy is an HTTP client in PHP > $client = new Snoopy(); > $client->use_gzip = true; > if (is_array($headers) ) { > $client->rawheaders = $headers; > } > @$client->fetch($url); > return $client; > } > } > $verified = _fetch_remote_file(sprintf('http://botbouncer.com/api/info?api_key=%s&openid=%s', > BOTBOUNCER_API_KEY, > urlencode($_POST['openid_url']) > )); > if(isset($verified->results) === true && $verified->results === ('verified:true' . "\n")) > { > $this->start_login( $_POST['openid_url'], $redirect_to ); > } > else > { > $this->start_login( $_POST['openid_url'], 'http://botbouncer.com/captcha/queryuser?return_to=' . urlencode(get_settings('home') . '/' . $redirect_to) . '&openid=' . $_POST['openid_url'] ); > }