首页 > CMS > Discuz > 正文

discuz 个人资料页广播添加验证码

2024-09-11 09:05:34
字体:
来源:转载
供稿:网友

目录 在文件根目录下找到相关文件,路径如下:

source/module/home/home_follow.php

打开home_follow.php?大概在?170行

找到以下代码,注释以下的两行代码
//$seccodecheck?=?($_G['setting']['seccodestatus']?&?4)?&&
(!$_G['setting']['seccodedata']['minposts']?
||
getuserprofile('posts')?<?$_G['setting']['seccodedata']?

['minposts']); 
//$secqaacheck = $_G['setting']['secqaa']['status'] & 2 && 
(!$_G['setting']['secqaa']['minposts'] || getuserprofile('posts') <
$_G['setting']['secqaa']['minposts']); 

然后在注释掉的代码后面添加以下代码:(加在上面代码的下边)
list($seccodecheck, $secqaacheck) = seccheck('publish');
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表