\Captcha

Summary

Methods
Properties
Constants
showImage()
getCaptchaHTML()
checkImageData()
getError()
No public properties found
USE_POST
FONT
SESSION_POST_NAME
SESSION_OK_NAME
LAST_SOLVED_TIMEOUT
LAST_SOLVED_NEW
No protected methods found
No protected properties found
N/A
No private methods found
$string
$error
N/A

Constants

USE_POST

USE_POST

Use Post param in checkImageData

FONT

FONT

The TTF font file for the image chars

SESSION_POST_NAME

SESSION_POST_NAME

The name of the session and post param

SESSION_OK_NAME

SESSION_OK_NAME

The name of the session for already checked users

LAST_SOLVED_TIMEOUT

LAST_SOLVED_TIMEOUT

How long does a solved captcha live? (seconds)

LAST_SOLVED_NEW

LAST_SOLVED_NEW

When show a new one? (should be smaller than LAST_SOLVED_TIMEOUT, seconds)

Properties

$string

$string : 

The string, displayed in the captcha

Type

$error

$error : 

The error message

Type

Methods

showImage()

showImage() 

Creating a Captcha Image (direct PNG output)

getCaptchaHTML()

getCaptchaHTML() 

Getting the HTML for the captcha

checkImageData()

checkImageData(  $string = self::USE_POST) 

Checking the captcha and post data

Parameters

$string

the string typed by the user default self::USE_POST, the post param by getCaptchaHTML()

getError()

getError() 

Getting the error Message