织梦搜索添加验证码功能
更多精彩就在: 51免费论文网|www.jxszl.com
this.src={dede:global.cfg_cmspath/}/include/vdimgck.php?tag=+Math.random();"style="cursor:pointer;">
II./plus/search.php里面添加验证码代码,找到
$mid=(isset($mid)&&is_numeric($mid))?$mid:0;
在它下面加入
$validate=empty($validate)?:strtolower(trim($validate));
$svali=strtolower(GetCkVdValue());
if($validate==||$validate!=$svali)
{
ResetVdValue();
ShowMsg(验证码不正确!,$_SERVER["HTTP_REFERER"],0,I.000);
exit();
}
原文链接:http://www.jxszl.com/biancheng/dedecms/76196.html