|
OXID eShop CE
4.9.10
|
Inheritance diagram for oxCaptcha:
Collaboration diagram for oxCaptcha:Public Member Functions | |
| getText () | |
| getHash ($sText=null) | |
| getTextHash ($sText) | |
| getImageUrl () | |
| isImageVisible () | |
| pass ($sMac, $sMacHash) | |
Public Member Functions inherited from oxSuperCfg | |
| __call ($sMethod, $aArgs) | |
| __construct () | |
| getConfig () | |
| setConfig ($oConfig) | |
| getSession () | |
| setSession ($oSession) | |
| getUser () | |
| setUser ($oUser) | |
| isAdmin () | |
| setAdminMode ($blAdmin) | |
Protected Member Functions | |
| _passFromSession ($sMacHash, $sHash, $iTime) | |
| _passFromDb ($iMacHash, $sHash, $iTime) | |
Protected Attributes | |
| $_iMacLength = 5 | |
| $_sText = null | |
| $_iTimeout = 300 | |
Private Attributes | |
| $_sMacChars = 'abcdefghijkmnpqrstuvwxyz23456789' | |
Additional Inherited Members | |
Static Protected Attributes inherited from oxSuperCfg | |
| static | $_oConfig = null |
| static | $_oSession = null |
| static | $_oRights = null |
| static | $_oActUser = null |
| static | $_blIsAdmin = null |
Class handling CAPTCHA image This class requires utility file utils/verificationimg.php as image generator
Definition at line 8 of file oxcaptcha.php.
|
protected |
Checks for DB captcha hash validity
| int | $iMacHash | hash key |
| string | $sHash | captcha hash |
| int | $iTime | check time |
Definition at line 164 of file oxcaptcha.php.
|
protected |
Checks for session captcha hash validity
| string | $sMacHash | hash key |
| string | $sHash | captcha hash |
| int | $iTime | check time |
Definition at line 138 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 | ( | ) |
| 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 191 of file oxcaptcha.php.
|
protected |
Definition at line 16 of file oxcaptcha.php.
|
protected |
Definition at line 37 of file oxcaptcha.php.
|
private |
Definition at line 30 of file oxcaptcha.php.
|
protected |
Definition at line 23 of file oxcaptcha.php.