Public Member Functions | |
getText () | |
getHash ($sText=null) | |
getTextHash ($sText) | |
getImageUrl () | |
isImageVisible () | |
pass ($sMac, $sMacHash) | |
Protected Member Functions | |
_passFromSession ($sMacHash, $sHash, $iTime) | |
_passFromDb ($iMacHash, $sHash, $iTime) | |
Protected Attributes | |
$_iMacLength = 5 | |
$_sText = null | |
$_iTimeout = 300 | |
Private Attributes | |
$_sMacChars = 'abcdefghijkmnpqrstuvwxyz23456789' |
Class handling CAPTCHA image This class requires utility file utils/verificationimg.php as image generator
Definition at line 8 of file oxcaptcha.php.
oxCaptcha._passFromDb | ( | $ | iMacHash, | |
$ | sHash, | |||
$ | iTime | |||
) | [protected] |
Checks for DB captcha hash validity
int | $iMacHash hash key | |
string | $sHash captcha hash | |
int | $iTime check time |
Definition at line 162 of file oxcaptcha.php.
oxCaptcha._passFromSession | ( | $ | sMacHash, | |
$ | sHash, | |||
$ | iTime | |||
) | [protected] |
Checks for session captcha hash validity
string | $sMacHash hash key | |
string | $sHash captcha hash | |
int | $iTime check time |
Definition at line 136 of file oxcaptcha.php.
oxCaptcha.getHash | ( | $ | sText = null |
) |
Returns text hash
string | $sText User supplie text |
Definition at line 63 of file oxcaptcha.php.
oxCaptcha.getImageUrl | ( | ) |
Returns url to CAPTCHA image generator.
Definition at line 109 of file oxcaptcha.php.
oxCaptcha.getText | ( | ) |
oxCaptcha.getTextHash | ( | $ | sText | ) |
Returns given string captcha hash
string | $sText string to hash |
Definition at line 93 of file oxcaptcha.php.
oxCaptcha.isImageVisible | ( | ) |
oxCaptcha.pass | ( | $ | sMac, | |
$ | sMacHash | |||
) |
Verifies captcha input vs supplied hash. Returns true on success.
string | $sMac User supplied text | |
string | $sMacHash Generated hash |
Definition at line 189 of file oxcaptcha.php.
oxCaptcha.$_iMacLength = 5 [protected] |
Definition at line 16 of file oxcaptcha.php.
oxCaptcha.$_iTimeout = 300 [protected] |
Definition at line 37 of file oxcaptcha.php.
oxCaptcha.$_sMacChars = 'abcdefghijkmnpqrstuvwxyz23456789' [private] |
Definition at line 30 of file oxcaptcha.php.
oxCaptcha.$_sText = null [protected] |
Definition at line 23 of file oxcaptcha.php.