當前位置: 首頁>>代碼示例>>PHP>>正文


PHP captcha::solved方法代碼示例

本文整理匯總了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']) {
開發者ID:axelsimon,項目名稱:ampache,代碼行數:31,代碼來源:register.php

示例2: check

 public static function check()
 {
     return captcha::solved();
 }
開發者ID:cheese1,項目名稱:ampache,代碼行數:4,代碼來源:captcha.php

示例3: check

 function check()
 {
     return captcha::solved();
 }
開發者ID:janukasama,項目名稱:ADCAU_SPORTE,代碼行數:4,代碼來源:captcha.php


注:本文中的captcha::solved方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。