Protect your site from spam and abuse with a reCAPTCHA.
This is reCAPTCHA integration plugin for Cotonti -- another member of the happy family of CAPTCHA plugins serving security of your websites.
reCAPTCHA v2 is currently supported.
Authors: esclkm, Andrey Matsovkin, Kalnov Alexey
Github: https://github.com/Cotonti-Extensions/recaptcha
Version for Cotonti Siena:
Just download it here and install the plugin.
Version for Cotonti Genoa:
This plugin is recommended for use with CAPTCHA Manager. However, it can be used as a single CAPTCHA solution for the website.
{USERS_REGISTER_VERIFYIMG}
, to comments.tpl: {COMMENTS_FORM_VERIFY_IMG}
, to contact.tpl: {CONTACT_FORM_VERIFY_IMG}
Use this function to generate CAPTCHA in your extensions:
$t->assign([
'SOMETHING_CAPTCHA' => cot_captcha_generate(),
]);
Then check CAPTCHA on form processing:
$response = cot_import('g-recaptcha-response', 'P', 'TXT');
if (!cot_captcha_validate($response)) {
cot_error('recaptcha_verification_failed', 'response');
}
Example:
Thanked: 181 mal
File "recaptcha.validate.php":
Line 24:
Code: require_once(sed_langfile('captcha'));
I think it must be like this: require_once(sed_langfile('recaptcha'));
PS: Thank you for a plugin.
Thanked: 181 mal
Version fixed for Siena with Captcha Manager here: http://www.cotonti.com/datas/users/recaptcha_siena_461.zip