상속: extends SlightPHP\SimpleCaptcha
예제 #1
0
 function pageEntry($inPath)
 {
     /**
      * 初始化类
      */
     $cap = new SCaptcha();
     /**
      * 生成图片,返回验证码
      */
     $code = $cap->CreateImage();
     /**
      * 检验验证码
      */
     if (SCaptcha::check($code)) {
         error_log(true);
     } else {
         error_log(false);
     }
 }
예제 #2
0
 function pagecaptcha()
 {
     session_start();
     $cap = new SCaptcha();
     $code = $cap->CreateImage();
 }
예제 #3
0
 /**
  * 验证验证码
  */
 public function checkCatcha($s)
 {
     session_start();
     $oSC = new SCaptcha();
     return $oSC->check($s);
 }