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);
}
Thanked: 6 mal
Thanked: 265 mal
Thanked: 52 mal
Thanked: 217 mal
RTFM
Thanked: 1 mal
Thanked: 181 mal
Version converted for Siena is here: http://www.cotonti.com/datas/users/captchamanager_siena_461.zip