maybe alfred should rename the module... so i can have two different profile module
return $config = array(
'disabled' => false, // Disable CAPTCHA
'mode' => 'recaptcha', // default mode
'publickey' => "",
'privatekey' => "",
'theme' => 'white', // 'red' | 'white' | 'blackglass' | 'clean' | 'custom'
'lang' => 'de' );
defined('XOOPS_ROOT_PATH') or die('Restricted access'); require_once(XOOPS_ROOT_PATH.'/class/captcha/recaptcha/recaptchalib.php');
class XoopsCaptchaRecaptcha extends XoopsCaptchaMethod {
function render() {
parent::render();
parent::loadConfig('recaptcha');
$form = "<script type=\"text/javascript\">
var RecaptchaOptions = {
theme : '" . $this->config['theme']."',
lang : '" . $this->config['lang']."'
};
</script>";
$form .= recaptcha_get_html($this->config['publickey']);
return $form;
}
}
} else if (!empty($_POST["recaptcha_response_field"])) {
require_once(XOOPS_ROOT_PATH.'/class/captcha/recaptcha/recaptchalib.php');
require_once(XOOPS_ROOT_PATH.'/class/captcha/config.recaptcha.php');
$resp = recaptcha_check_answer ($config['privatekey'],
$_SERVER["REMOTE_ADDR"],
$_POST["recaptcha_challenge_field"],
$_POST["recaptcha_response_field"]);
$is_valid = $resp->is_valid;
emjoven wrote:
I deleted the template_c folder,
I registered on myxoops some week ago and I wrote to the webmaster but got no answer. I hope that the profile module is released soon.