This is a simple CAPTCHA Class, written in PHP4.
s: user defined captcha text
c: captcha type
More settings can be changed in the class ...
Just call the captcha.php file and pass the desired type and/or a predefined captcha text.
captcha.php?s=123456
Output: 123456
captcha.php?c=1&s=foobar
Output: FOOBAR
captcha.php?c=2&s=foobar
Output: A 6 digits random number (letters are discarded)
captcha.php?c=6
Output: A 6 digits random string (Lower/upper letters + numbers)
CAPTCHA Types:
0 : Lowercase Letters (a-z)
1 : Uppercase Letters (A-Z)
2 : Numbers Only (0-9)
3 : Letters Only (upper and lower case)
4 : Lowercase Letters and Numbers
5 : Uppercase Letters and Numbers
6 : All together
The image:
<img name="user_captcha" src="proxy.php?url=https%3A%2F%2Fgithub.com%2Fbwonur%2Fcaptcha.php%3Fc%3D5" alt="" />
Verification code (sample): See captcha.php file ...
This is a PHP4-like class, however it should work unchanged under PHP5. You can find more details in the code...
See gpl.txt and lgpl.txt for licensing terms.