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 158 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 133 of file oxcaptcha.php.
oxCaptcha.getHash | ( | $ | sText = null |
) |
Returns text hash
string | $sText User supplie text |
Definition at line 62 of file oxcaptcha.php.
oxCaptcha.getImageUrl | ( | ) |
Returns url to CAPTCHA image generator.
Definition at line 106 of file oxcaptcha.php.
oxCaptcha.getText | ( | ) |
oxCaptcha.getTextHash | ( | $ | sText | ) |
Returns given string captcha hash
string | $sText string to hash |
Definition at line 91 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 185 of file oxcaptcha.php.
oxCaptcha.$_iMacLength = 5 [protected] |
Definition at line 15 of file oxcaptcha.php.
oxCaptcha.$_iTimeout = 300 [protected] |
Definition at line 36 of file oxcaptcha.php.
oxCaptcha.$_sMacChars = 'abcdefghijkmnpqrstuvwxyz23456789' [private] |
Definition at line 29 of file oxcaptcha.php.
oxCaptcha.$_sText = null [protected] |
Definition at line 22 of file oxcaptcha.php.