an enhanced captcha as helper |
[eluser]Christian Rößler[/eluser]
Hy 'JP X3M', First create a folder called Code: helpers Code: /system/application/ Then copy the helper-file into this directory. After that create a writeable folder where the generated captcha-images will reside in: Code: /captcha/ Your example folder structure: Code: /system/ If you use apache's mod rewrite to hide index.php from your url, edit .htaccess to allow clients access to the captcha directory! Finally write your controller (an example): Code: function index(){ Code: /system/fonts/ Here is an example-view (really simple). You'll have to improve this by using a form and validate the input (the captcha-word typed in by the user) and compare it with the generated captcha-secret. Code: <html> There are 3 keys in the generated Captcha-array: Code: $aCaptcha['image'] Code: $aCaptcha['word'] Code: $aCaptcha['time'] Get more fonts here: http://www.fontasy.de/ (for example) or here: google -> 'free fonts' |
Messages In This Thread |
an enhanced captcha as helper - by El Forum - 09-27-2007, 07:39 AM
an enhanced captcha as helper - by El Forum - 09-27-2007, 01:01 PM
an enhanced captcha as helper - by El Forum - 09-30-2007, 03:13 PM
an enhanced captcha as helper - by El Forum - 10-27-2007, 10:06 AM
an enhanced captcha as helper - by El Forum - 10-27-2007, 10:29 AM
an enhanced captcha as helper - by El Forum - 10-27-2007, 08:26 PM
an enhanced captcha as helper - by El Forum - 10-29-2007, 04:27 AM
an enhanced captcha as helper - by El Forum - 10-29-2007, 04:40 AM
an enhanced captcha as helper - by El Forum - 05-08-2008, 02:21 AM
an enhanced captcha as helper - by El Forum - 05-20-2008, 02:21 AM
an enhanced captcha as helper - by El Forum - 05-20-2008, 02:54 AM
an enhanced captcha as helper - by El Forum - 05-20-2008, 05:36 AM
an enhanced captcha as helper - by El Forum - 06-04-2008, 09:52 AM
an enhanced captcha as helper - by El Forum - 09-25-2008, 10:01 PM
an enhanced captcha as helper - by El Forum - 01-11-2009, 08:35 PM
|