本文整理匯總了PHP中CCaptcha::CheckAnswer方法的典型用法代碼示例。如果您正苦於以下問題:PHP CCaptcha::CheckAnswer方法的具體用法?PHP CCaptcha::CheckAnswer怎麽用?PHP CCaptcha::CheckAnswer使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類CCaptcha
的用法示例。
在下文中一共展示了CCaptcha::CheckAnswer方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: CCaptcha
$pc->CheckPassword($password, $passwordConfirm, $failureRedirect);
$_SESSION['errorMessage'] = "";
//---------------------------------------------------------------------------------------------
//
// preparing and performing query
//
//
// Check the CAPTCHA
//
if(USE_RECAPTCHA == true) {
$captcha = new CCaptcha();
if(!$captcha->CheckAnswer()) {
$_SESSION['errorMessage'] = "Captcha: ej korrekta angivna ord!";
unset($_SESSION['redirect']);
header('Location: ' . WS_SITELINK . "?p=createa");
exit;
}
}
$result = ARRAY();
$PCreateAccount = DBSP_PCreateAccount;
$pwdHash = DB_PASSWORDHASHING;
$query = <<< EOD
CALL {$PCreateAccount}(@pUserId, '{$username}', '{$group}', '{$password}', '{$pwdHash}', @pStatus);