OXID eShop CE
4.10.3
|
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 9 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 165 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 139 of file oxcaptcha.php.
oxCaptcha::getHash | ( | $sText = null | ) |
Returns text hash
string | $sText | User supplie text |
Definition at line 64 of file oxcaptcha.php.
oxCaptcha::getImageUrl | ( | ) |
oxCaptcha::getText | ( | ) |
oxCaptcha::getTextHash | ( | $sText | ) |
Returns given string captcha hash
string | $sText | string to hash |
Definition at line 94 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 192 of file oxcaptcha.php.
|
protected |
Definition at line 17 of file oxcaptcha.php.
|
protected |
Definition at line 38 of file oxcaptcha.php.
|
private |
Definition at line 31 of file oxcaptcha.php.
|
protected |
Definition at line 24 of file oxcaptcha.php.