- 工信部备案号 滇ICP备05000110号-1
- 滇公安备案 滇53010302000111
- 增值电信业务经营许可证 B1.B2-20181647、滇B1.B2-20190004
- 云南互联网协会理事单位
- 安全联盟认证网站身份V标记
- 域名注册服务机构许可:滇D3-20230001
- 代理域名注册服务机构:新网数码
phpwind的wap中帖子访问权限问题
1.打开:wap/global.php
查找函数:
Copy code
function forumcheck($fid,$type) {
global $db,$groupid,$gp_allowrp;
$fm = $db->get_one("select password,allowvisit,allowread,f_type,f_check,allowpost,allowrp from pw_forums where fid='$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');
}
}
替换为:
Copy code
function forumcheck($fid,$type) {
global $db,$groupid,$gp_allowrp;
$fm = $db->get_one("select password,allowvisit,allowread,f_type,f_check,allowpost,allowrp from pw_forums where fid='$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
查找:
Copy code
forumcheck($fid);
修改为:
Copy code
forumcheck($fid,'read');
3.打开:wap/list.php
查找:
Copy code
forumcheck($fid);
修改为:
Copy code
forumcheck($fid,'list');
售前咨询
售后咨询
备案咨询
二维码
TOP