关键词:访问后调频和fid&Quotgroupidallowvisit1。打开:wap/global.php搜索功能:复制代码功能论坛检查($FID,$type){global$db,$groupid,$gp_allowRP$FM=$dB->;get_ss="superseo">ss="superseo">one("选择密码,允许访问,允许
关键字描述:权限难题访问帖子fm&fid"groupidallowvisit1.开启:wap/global.php
查找函数:
Copycode functionforumcheck($fid,$type){
global$db,$groupid,$gp_allowrp;
$fm=$db->get_one("SELECTpassword,allowvisit,allowread,f_type,f_check,allowpost,allowrpFROMpw_forumsWHEREfid='$fid'");
if(!$fm||$fm['f_type']=='former'&&$groupid=='guest'||$fm['password']!=''||$fm['f_type']=='hidden'||$fm['allowvisit']&&@strpos($fm['allowvisit'],",$groupid,")===false||$fm['f_check']>'0'){
wap_msg('forum_right');
}
}
更换为:
Copycode functionforumcheck($fid,$type){
global$db,$groupid,$gp_allowrp;
$fm=$db->get_one("SELECTpassword,allowvisit,allowread,f_type,f_check,allowpost,allowrpFROMpw_forumsWHEREfid='$fid'");
if(!$fm||$fm['f_type']=='former'&&$groupid=='guest'||$fm['password']!=''||$fm['f_type']=='hidden'||$type=='list'&&$fm['allowvisit']&&@strpos($fm['allowvisit'],",$groupid,")===false||$type=='read'&&$fm['allowread']&&@strpos($fm['allowread'],",$groupid,")===false||$fm['f_check']>'0'){
wap_msg('forum_right');
}
}
2.开启:wap/read.php
搜索: Copycode forumcheck($fid);
改动为: Copycode forumcheck($fid,'read');
3.开启:wap/list.php
搜索: Copycode forumcheck($fid);
改动为: Copycode forumcheck($fid,'list');
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)