ContrexxCaptcha
in package
implements
CaptchaInterface
ContrexxCaptcha
Tags
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
$boolFreetypeInstalled
private
mixed
$boolFreetypeInstalled
= false
$image
private
mixed
$image
= null
$intImageWidth
private
mixed
$intImageWidth
= 120
$intMaximumCharacters
private
mixed
$intMaximumCharacters
= 20
$intNumberOfBackgrounds
private
mixed
$intNumberOfBackgrounds
= 7
$intRandomLength
private
mixed
$intRandomLength
= 5
$securityCheck
private
mixed
$securityCheck
= null
$strBackgroundDir
private
mixed
$strBackgroundDir
$strFontDir
private
mixed
$strFontDir
$strRandomString
private
mixed
$strRandomString
Methods
__construct()
public
__construct(mixed $config) : mixed
Parameters
- $config : mixed
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
booldisable()
Disable the captcha check
public
disable() : void
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
getPage()
Creates a new image and sends it to the Browser
public
getPage() : mixed
createImage()
Creates a captcha image.
private
createImage() : mixed
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
getUrl()
gets the url for a new captcha
private
getUrl() : string
Return values
stringisFreetypeInstalled()
Figures out if the Freetype-Extension (part of GD) is installed.
private
isFreetypeInstalled() : mixed
isValidCode()
private
isValidCode() : mixed
updateSession()
writes the secret to the session
private
updateSession() : mixed