本文整理汇总了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();
}