phpcmsv9程序中的验证码文字比较复杂且难以辨认,可以修改以下位置的checkcode文件:
phpcms\libs\classes\checkcode.class.php

1.设置只显示数字

//设置随机生成因子
//public $charset ='abcdefghkmnprstuvwyzABCDEFGHKLMNPRSTUVWYZ23456789':public $charset ='0123456789';

 2.取消或减少文字倾斜和抖动

//imagettftext($this-> img,$this->font_size,rand(-30,30),$x*$i+rand(0,5), $this-> height/1.4, $this->fon_tcolor,$this-> font,$this->code[$i]);imagettftext($this-> img, $this->font_size, rand(-0,0,) $x*$i+rand(0,0,), $this->heiqht/1.4,$this-> font_color, $this->font,$this->code[$i]);

3.取消图片画线

$this-> creat_font(); 

//$this-> creat_line();$this-> output();


点赞(0) 打赏

Comment list 共有 0 条评论

暂无评论
立即
投稿
发表
评论
返回
顶部