您没有访问所请求资源的权限是什么原因

您没有访问所请求资源的权限是什么原因,第1张

phpwind的wap中帖子访问权限问题

关键词:访问后调频和fid&Quotgroupidallowvisit1。打开:wap/global.php搜索功能:复制代码功能论坛检查($FID,$type){global$db,$groupid,$gp_allowRP$FM=$dB->;get_ss="superseo">ss="superseo">one("选择密码,允许访问,允许

关键字描述:权限难题访问帖子fm&ampfid&quotgroupidallowvisit

1.开启: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');

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zz/772189.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-03
下一篇 2022-05-03

发表评论

登录后才能评论

评论列表(0条)

保存