21 defined(
'XOOPS_ROOT_PATH') or die('Restricted access');
42 require_once dirname(__FILE__) .
'/recaptcha/recaptchalib.php';
43 $form =
"<script type=\"text/javascript\">
44 var RecaptchaOptions = {
45 theme : '" . $this->config[
'theme'].
"',
46 lang : '" . $this->config[
'lang'].
"'
58 function verify($sessionName)
61 require_once dirname(__FILE__) .
'/recaptcha/recaptchalib.php';
62 if (!empty(
$_POST[
'recaptcha_response_field'])) {
64 $this->config[
'private_key'],
66 $_POST[
'recaptcha_challenge_field'],
67 $_POST[
'recaptcha_response_field']
69 if (!$resp->is_valid) {
70 $this->message[] = $resp->error;