欢迎来到入门教程网!

phpwind

当前位置:主页 > CMS教程 > phpwind >

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

来源:本站原创|时间:2020-01-11|栏目:phpwind|点击:

关键字描述:权限 问题 访问 帖子 fm & fid " groupid allowvisit

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');

上一篇:phpwind前台银行操作日志链接问题

栏    目:phpwind

下一篇:phpwind解决搜索到回收站中内容的问题

本文标题:phpwind的wap中帖子访问权限问题

本文地址:https://www.xiuzhanwang.com/a1/phpwind/13065.html

网页制作CMS教程网络编程软件编程脚本语言数据库服务器

如果侵犯了您的权利,请与我们联系,我们将在24小时内进行处理、任何非本站因素导致的法律后果,本站均不负任何责任。

联系QQ:835971066 | 邮箱:835971066#qq.com(#换成@)

Copyright © 2002-2020 脚本教程网 版权所有