phpBB

Code Changes

File: includes/captcha/plugins/phpbb_recaptcha_plugin.php

  Unmodified   Added   Modified   Removed
Line 27Line 27
*/
class phpbb_recaptcha extends phpbb_default_captcha
{

*/
class phpbb_recaptcha extends phpbb_default_captcha
{

	var $recaptcha_server = 'http://api.recaptcha.net';
var $recaptcha_server_secure = 'https://api-secure.recaptcha.net'; // class constants :(
var $recaptcha_verify_server = 'api-verify.recaptcha.net';






	var $recaptcha_server = 'http://www.google.com/recaptcha/api';
var $recaptcha_server_secure = 'https://www.google.com/recaptcha/api'; // class constants :(

// We are opening a socket to port 80 of this host and send
// the POST request asking for verification to the path specified here.
var $recaptcha_verify_server = 'www.google.com';
var $recaptcha_verify_path = '/recaptcha/api/verify';


	var $challenge;
var $response;


	var $challenge;
var $response;


Line 296Line 301
			return $user->lang['RECAPTCHA_INCORRECT'];
}


			return $user->lang['RECAPTCHA_INCORRECT'];
}


		$response = $this->_recaptcha_http_post($this->recaptcha_verify_server, '/verify',

		$response = $this->_recaptcha_http_post($this->recaptcha_verify_server, $this->recaptcha_verify_path,

			array(
'privatekey' => $config['recaptcha_privkey'],
'remoteip' => $user->ip,

			array(
'privatekey' => $config['recaptcha_privkey'],
'remoteip' => $user->ip,