an enhanced captcha as helper |
[eluser]Christian Rößler[/eluser]
Hy folks, having played around with CI (for the first time) in a new project i found out that the shipped captcha-plugin did not fit my needs. so i wrote a new captcha (after i wasn't able to find one on this site) - as helper - with support for: - random background-colors - random char-colors - multiple font-files (ttf as before) - set the font-size via config The return-value is exactly the same as CI's captcha-plugin's. create_captcha($config) returns an array with the html-img-tag, a timestamp and the word itself. put the captcha_helper.php into Code: /system/application/helpers/ Code: $this->load->helper('captcha'); you will find the helper here: captcha_helper.php.tar.gz feel free to make changes / enhancements and share your work! bye, chris PS: CI rocks! |
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
|