- 工信部備案號 滇ICP備05000110號-1
- 滇公安備案 滇53010302000111
- 增值電信業(yè)務經(jīng)營許可證 B1.B2-20181647、滇B1.B2-20190004
- 云南互聯(lián)網(wǎng)協(xié)會理事單位
- 安全聯(lián)盟認證網(wǎng)站身份V標記
- 域名注冊服務機構許可:滇D3-20230001
- 代理域名注冊服務機構:新網(wǎng)數(shù)碼
phpwind的wap中帖子訪問權限問題
1.打開:wap/global.php
查找函數(shù):
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