Documentation

ContrexxCaptcha implements CaptchaInterface

ContrexxCaptcha

Tags
copyright

CLOUDREXX CMS - CLOUDREXX AG

author

Thomas Kaelin thomas.kaelin@astalvista.ch

access

public

version
1.2.0
subpackage

coremodule_captcha

Table of Contents

Interfaces

CaptchaInterface
Cloudrexx captcha interface

Properties

$boolFreetypeInstalled  : mixed
$image  : mixed
$intImageWidth  : mixed
$intMaximumCharacters  : mixed
$intNumberOfBackgrounds  : mixed
$intRandomLength  : mixed
$securityCheck  : mixed
$strBackgroundDir  : mixed
$strFontDir  : mixed
$strRandomString  : mixed

Methods

__construct()  : mixed
check()  : bool
checks whether the entered string matches the captcha.
disable()  : void
Disable the captcha check
getCode()  : mixed
getJSValidationFn()  : string
Get captcha validation code
getPage()  : mixed
Creates a new image and sends it to the Browser
createImage()  : mixed
Creates a captcha image.
createRandomString()  : string
Creates an random string with $intDigits digits.
getUrl()  : string
gets the url for a new captcha
isFreetypeInstalled()  : mixed
Figures out if the Freetype-Extension (part of GD) is installed.
isValidCode()  : mixed
updateSession()  : mixed
writes the secret to the session

Properties

Methods

check()

checks whether the entered string matches the captcha.

public check() : bool

if the check is already done the result will be returned.

Return values
bool

getCode()

public getCode([mixed $tabIndex = null ]) : mixed
Parameters
$tabIndex : mixed = null

getJSValidationFn()

Get captcha validation code

public getJSValidationFn() : string
Return values
string

Returns JS code

createRandomString()

Creates an random string with $intDigits digits.

private createRandomString([mixed $intDigits = 0 ]) : string
Parameters
$intDigits : mixed = 0
Return values
string

A new random string

isFreetypeInstalled()

Figures out if the Freetype-Extension (part of GD) is installed.

private isFreetypeInstalled() : mixed

        
On this page

Search results