CMS教程

去除织梦dedecms的验证码背景
  • 作者: 九三网络
  • 发表时间:2023-05-23 16:20:46
  • 来源: 九三网络

打开根目录下的include/vdimgck.php文件将以下代码删除即可去除背景

//背景横线
$lineColor1 = imagecolorallocate($im, 0xda, 0xd9, 0xd1);
for($j=3; $j<=$img_height-3; $j=$j+3)
{
imageline($im, 2, $j, $img_width - 2, $j, $lineColor1);
}

//背景竖线
$lineColor2 = imagecolorallocate($im, 0xda,0xd9,0xd1);
for($j=2;$j<100;$j=$j+6)
{
imageline($im, $j, 0, $j+8, $img_height, $lineColor2);
}

//画边框
if( $use_boder && $filter_type == 0 )
{
$bordercolor = imagecolorallocate($im, 0x9d, 0x9e, 0x96);
imagerectangle($im, 0, 0, $img_width-1, $img_height-1, $bordercolor);
}


RELATEED CONSULTING
相关咨询
选择下列产品马上在线沟通
服务时间:9:30-24:00
你可能有以下需求
关闭右侧工具栏