4
The alternative which I think should be used is a method where the
http://www.recaptcha.net/ is used and allowed to have a config in XOOPS to set your public and private key.
As this also has audio prompt for disabled people that do not used a telephany keyboard.
Here is how it is done in the interum:
All paths based on
XOOPS_ROOT_PATHCopy
recaptchalib.php to /class
Now edit your register.php file as per the following instructions:
le="color: #000000"><?php echo "<form action='register.php' method='post'>"; /* xoops_load("XoopsFormCaptcha"); $cpatcha = new XoopsFormCaptcha(); echo "<br />".$cpatcha->getCaption().": ".$cpatcha->render(); */ require_once(XOOPS_ROOT_PATH.'/class/recaptchalib.php'); $publickey = "..."; // you got this from the signup page echo "<br />".recaptcha_get_html($publickey);
Then change the final signup stage (finish) to:
le="color: #000000"><?php /* Rem this part of the code from runtime xoops_load("captcha"); $xoopsCaptcha = XoopsCaptcha::getInstance(); if( !$xoopsCaptcha->verify() ) { $stop .= $xoopsCaptcha->getMessage()."<br />"; } */ require_once(XOOPS_ROOT_PATH.'/class/recaptchalib.php'); $privatekey = "..." // Get from signup page; $resp = recaptcha_check_answer ($privatekey, $_SERVER["REMOTE_ADDR"], $_POST["recaptcha_challenge_field"], $_POST["recaptcha_response_field"]); if( !$resp->is_valid ) { $stop .= "The reCAPTCHA wasn't entered correctly. Go back and try it again." . "(reCAPTCHA said: " . $resp->error . ")"."<br />"; }