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');
}
}
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');
}
}
forumcheck($fid);
forumcheck($fid,'read');
forumcheck($fid);
forumcheck($fid,'list');
新闻热点
疑难解答
图片精选