本文整理匯總了PHP中captcha::solved方法的典型用法代碼示例。如果您正苦於以下問題:PHP captcha::solved方法的具體用法?PHP captcha::solved怎麽用?PHP captcha::solved使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類captcha
的用法示例。
在下文中一共展示了captcha::solved方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: scrub_in
* we need to check the database for possible existing username first
* if username exists, error and say "Please choose a different name."
* if username does not exist, insert user information into database
* then allow the user to 'click here to login'
* possibly by logging them in right then and there with their current info
* and 'click here to login' would just be a link back to index.php
*/
$fullname = scrub_in($_POST['fullname']);
$username = scrub_in($_POST['username']);
$email = scrub_in($_POST['email']);
$website = scrub_in($_POST['website']);
$pass1 = scrub_in($_POST['password_1']);
$pass2 = scrub_in($_POST['password_2']);
/* If we're using the captcha stuff */
if (AmpConfig::get('captcha_public_reg')) {
$captcha = captcha::solved();
if (!isset($captcha)) {
Error::add('captcha', T_('Error Captcha Required'));
}
if (isset($captcha)) {
if ($captcha) {
$msg = "SUCCESS";
} else {
Error::add('captcha', T_('Error Captcha Failed'));
}
}
// end if we've got captcha
}
// end if it's enabled
if (AmpConfig::get('user_agreement')) {
if (!$_POST['accept_agreement']) {
示例2: check
public static function check()
{
return captcha::solved();
}
示例3: check
function check()
{
return captcha::solved();
}