45 include_once __DIR__ .
'/recaptcha/recaptchalib.php';
46 $form =
"<script type=\"text/javascript\">
47 var RecaptchaOptions = {
48 theme : '" . (empty($this->
config[
'theme']) ?
'' : $this->
config[
'theme']) .
"',
49 lang : '" . (empty($this->
config[
'lang']) ?
'' : $this->
config[
'lang']) .
"'
52 $public_key = empty($this->
config[
'public_key']) ?
'' : $this->
config[
'public_key'];
63 public function verify($sessionName = null)
66 include_once __DIR__ .
'/recaptcha/recaptchalib.php';
67 if (!empty($_POST[
'recaptcha_response_field'])) {
69 $_POST[
'recaptcha_challenge_field'], $_POST[
'recaptcha_response_field']);
70 if (!$resp->is_valid) {
71 $this->handler->message[] = $resp->error;
verify($sessionName=null)
recaptcha_get_html($pubkey, $error=null, $use_ssl=false)
recaptcha_check_answer($privkey, $remoteip, $challenge, $response, $extra_params=array())