I make an extension for the assira ’ CAPTCHA’.
I post the demo app.I use the contact form as a demo.
The class is the extensions/assira/assira.php- I put it at config/main.php
'assira'=>array('class'=>'application.extensions.assira.Assira'),
I use also 2 js files js/assira.js,asssiraphotos.js as you can see at contact view.
Also ant contactform.php there is the validation rule
public function rules()
{
return array(...
// verifyCode needs to be entered correctly
array('verifyCode','assira'),....
function assira() {
if (Yii::app()->assira->ValidateAsirraChallenge()==false)
$this->addError( 'verifyCode','Please select the right photos');
else
return true();
}
I am waiting for suggestions or improvements
[Edit] I had to fix something,so I re-upload the file