public function verify()
 {
     $config = array('length' => 4, 'imageW' => 238);
     ob_end_clean();
     $verify = new \Think\Verify($config);
     $verify->entry(1);
 }
 public function index()
 {
     $Verify_config = array('fontSize' => 16, 'length' => 4, 'useNoise' => false, 'imageW' => 120, 'imageH' => 36, 'useCurve' => false);
     ob_clean();
     $Verify = new \Think\Verify($Verify_config);
     $Verify->entry();
 }
 public function verify()
 {
     ob_end_clean();
     $config = array('fontSize' => 30, 'length' => 4, 'useCurve' => false, 'useNoise' => false, 'codeSet' => '0123456789');
     $verify = new \Think\Verify($config);
     $verify->entry();
 }
Exemple #4
0
 /**
  * 验证码
  */
 public function verify()
 {
     ob_end_clean();
     $config = array('length' => 4, 'useImgBg' => false, 'imageW' => 120, 'imageH' => 32, 'fontSize' => 18, 'expire' => 180);
     $verify = new \Think\Verify($config);
     $verify->entry(1);
 }
 public function verify_c()
 {
     ob_clean();
     $Verify = new \Think\Verify();
     $Verify->length = 4;
     $Verify->entry();
 }
 public function Verify()
 {
     ob_clean();
     $config = array('imageW' => I('width'), 'imageH' => I('height'), 'expire' => 180, 'fontSize' => I('font_size'), 'length' => I('code_len'));
     $Verify = new \Think\Verify($config);
     $Verify->entry($id);
 }
 public function captcha()
 {
     $Verify = new \Think\Verify();
     $Verify->length = 4;
     $Verify->useNoise = false;
     $Verify->entry();
 }
 /**
  *功能:生成验证码
  *作者:陈荣荣
  *时间:7.15
  **/
 public function verifyImg()
 {
     $config = array('imageH' => 38, 'imageW' => 150, 'fontSize' => 18, 'length' => 4);
     ob_clean();
     $verify = new \Think\Verify($config);
     $verify->entry();
 }
 /**
  *生成验证码
  */
 public function simpleCaptcha()
 {
     $temp = array('seKey' => C('VERIFY_CODE'), 'length' => 4);
     $verify = new \Think\Verify($temp);
     $verify->entry(C('VERIFY_ID'));
     die;
 }
 public function verify_c()
 {
     $config = array('fontSize' => 15, 'length' => 4, 'useNoise' => false, 'fontttf' => '5.ttf', 'useImgBg' => true);
     ob_clean();
     $verify = new \Think\Verify($config);
     $verify->entry();
 }
 public function imgCode()
 {
     $Verify = new \Think\Verify();
     $config = array('fontSize' => 35, 'length' => 4, 'useCurve' => false, 'fontttf' => '1.ttf', 'bg' => array(243, 251, 254));
     $Verify = new \Think\Verify($config);
     $Verify->entry();
 }
 public function code()
 {
     $Verify = new \Think\Verify();
     // 验证码字体使用 ThinkPHP/Library/Think/Verify/ttfs/5.ttf
     $Verify->useZh = false;
     $Verify->entry();
 }
 public function index()
 {
     $Verify = new \Think\Verify();
     // 验证码字体使用 ThinkPHP/Library/Think/Verify/ttfs/5.ttf
     $Verify->useZh = true;
     $Verify->entry();
 }
 public function verify()
 {
     $Verify = new \Think\Verify();
     $Verify->bg = array(255, 255, 255);
     $Verify->useNoise = false;
     $Verify->entry();
 }
 /**
  * 图片验证码生成
  */
 public function verify($vid = 1)
 {
     $verify = new \Think\Verify();
     $verify->fontSize = 18;
     $verify->length = 4;
     $verify->entry($vid);
 }
 public function Verify()
 {
     $Verify = new \Think\Verify();
     $Verify->codeSet = '0123456789';
     $Verify->length = 4;
     $Verify->entry();
 }
 public function verify_c()
 {
     ob_clean();
     $Verify = new \Think\Verify();
     $Verify->codeSet = '123456789netsrvic';
     $Verify->entry();
 }
 public function verify()
 {
     $verify = new \Think\Verify();
     $verify->fontSize = 50;
     $verify->length = 4;
     $verify->entry();
 }
 public function verify()
 {
     //ob_start();
     ob_end_clean();
     $Verify = new \Think\Verify();
     $Verify->entry();
 }
 /**
  * 生成验证码
  */
 public function checkcode()
 {
     //创建验证码类
     $Verify = new \Think\Verify(array('length' => 4, 'useNoise' => FALSE, 'imageH' => 36, 'imageW' => 150, 'fontSize' => 20, 'fontttf' => '1.ttf', 'useCurve' => FALSE));
     //验证码的生成
     $Verify->entry();
 }
 public function verify()
 {
     ob_clean();
     //清除缓存
     $Verify = new \Think\Verify(C('VERIFY'));
     $Verify->entry();
 }
 public function verify()
 {
     ob_clean();
     $config = array('fontSize' => 160, 'length' => 4, 'useNoise' => false, 'reset' => false);
     $Verify = new \Think\Verify($config);
     $Verify->entry();
 }
 /**
  * 验证码
  */
 public function captcha()
 {
     session_start();
     $config = array('fontSize' => 20, 'length' => 4, 'useNoise' => false, 'fontttf' => '4.ttf');
     $Verify = new \Think\Verify($config);
     $Verify->entry(2);
 }
 /**
  * 生成验证码
  */
 public function verify()
 {
     $config = array('fontSize' => '16', 'imageW' => '160', 'imageH' => '40', 'length' => '4', 'useCurve' => true, 'useNoise' => false, 'fontttf' => '5.ttf', 'bg' => array(243, 243, 243));
     ob_clean();
     $Verify = new \Think\Verify($config);
     $Verify->entry();
 }
 public function Verify()
 {
     $Verify = new \Think\Verify();
     $Verify->fontSize = 30;
     $Verify->length = 4;
     $Verify->entry();
 }
 public function verify()
 {
     ob_clean();
     $config = array('fontSize' => 20, 'length' => 4, 'imageH' => 35, 'useNoise' => false);
     $verify = new \Think\Verify($config);
     $verify->codeSet = '0123456789';
     $verify->entry();
 }
 public function getVery()
 {
     $Verify = new \Think\Verify();
     $Verify->fontSize = 18;
     $Verify->length = 4;
     $Verify->useNoise = false;
     $Verify->entry();
 }
 public function checkCode()
 {
     $type = I('get.type');
     //验证码类型,1注册页,2登录页
     $config = array("fontSize" => 20, "expire" => 3600, "length" => 4, "useCurve" => false);
     $Verify = new \Think\Verify($config);
     $Verify->entry($type);
 }
 public function getCode()
 {
     $fontttf = rand(1, 7) . ".TTF";
     $config = array('expire' => 30, 'fontSize' => 30, 'length' => 4, 'useNoise' => false, 'useZh' => true, 'fontttf' => $fontttf, 'fontttf' => "6.ttf");
     // 关闭验证码杂点
     $Verify = new \Think\Verify($config);
     $Verify->entry();
 }
 public function index()
 {
     $verify = new \Think\Verify();
     $verify->fontSize = 30;
     $verify->length = 3;
     $verify->useNoise = false;
     $verify->entry();
 }