예제 #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();
 }