function init($type) { global $user, $request; $user->add_lang('captcha_recaptcha'); parent::init($type); $this->response = $request->variable('g-recaptcha-response', ''); }
function init($type) { global $config, $db, $user; $user->add_lang('captcha_recaptcha'); parent::init($type); $this->challenge = request_var('recaptcha_challenge_field', ''); $this->response = request_var('recaptcha_response_field', ''); }