Author: Tianfeng.Han
示例#1
0
 function vcode()
 {
     $this->session->start();
     $this->http->header('Content-Type', 'image/jpeg');
     $verifyCode = Swoole\Image::verifycode_chinese('/usr/share/fonts/truetype/wqy/wqy-microhei.ttc');
     //        debug($verifyCode);
     //        $verifyCode = Swoole\Image::verifycode_gd();
     //        $verifyCode = Swoole\Image::verifycode_imagick();
     $_SESSION['vcode'] = $verifyCode['code'];
     return $verifyCode['image'];
 }
示例#2
0
 function vcode()
 {
     $this->session->start();
     $this->http->header('Content-Type', 'image/jpeg');
     Swoole\Image::verifycode_gd();
 }
示例#3
0
 function verify()
 {
     session();
     $this->swoole->http->header('Content-Type', 'image/png');
     Swoole\Image::verifycode_gd();
 }