Skip to content
This repository was archived by the owner on Mar 14, 2024. It is now read-only.

Latest commit

 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

###Info

This is a simple CAPTCHA Class, written in PHP4.

###Parameters

s: user defined captcha text

c: captcha type

More settings can be changed in the class ...

###How to use it

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

###Example

The image: <img name="user_captcha" src="proxy.php?url=https%3A%2F%2Fgithub.com%2Fgesf%2Fcaptcha.php%3Fc%3D5" alt="" />

Verification code (sample): See captcha.php file ...

###Requirements

This is a PHP4-like class, however it should work unchanged under PHP5. You can find more details in the code...

###License

See gpl.txt and lgpl.txt for licensing terms.

About

A simple PHP CAPTCHA Class

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages