Note: this plugin is deprecated since Cotonti Siena 0.9.8 because its functionality and API was acquired by the core. Do not install it if you use Cotonti 0.9.8 or later.
Visit Cotonti CAPTCHA Demopage to see CAPTCHA Manager in action ("Random CAPTCHA" mode).
Use this function to generate CAPTCHA:
$t->assign(array(
'SOMETHING_CAPTCHA' => cot_captcha_generate(),
'SOMETHING_VERIFY' => '<input type="text" name="rverify" />',
));
Then check CAPTCHA on form processing:
$rverify = cot_import('rverify', 'P', 'INT');
if (!cot_captcha_validate($rverify))
{
cot_error('captcha_wrong', $rverify);
}
Bedankt: 6 tijden
Bedankt: 265 tijden
Bedankt: 52 tijden
Bedankt: 217 tijden
RTFM
Bedankt: 1 tijd
Bedankt: 181 tijden
Version converted for Siena is here: http://www.cotonti.com/datas/users/captchamanager_siena_461.zip