$managecheck = 1; } $pwPostHide = $pwSystem['posthide']; $pwSellHide = $pwSystem['sellhide']; $pwEncodeHide = $pwSystem['encodehide']; } else { $managecheck = $pwPostHide = $pwSellHide = $pwEncodeHide = 1; } } //版块查看权限 if ($foruminfo['allowread'] && !$admincheck && !allowcheck($foruminfo['allowread'], $groupid, $winddb['groups'])) { Showmsg('forum_read_right'); } if (!$admincheck) { !$foruminfo['allowvisit'] && forum_creditcheck(); $foruminfo['forumsell'] && forum_sell($fid); } if ($read['ifcheck'] == 0 && !$isGM && $windid != $read['author'] && !$pwSystem['viewcheck']) { Showmsg('read_check'); } if ($read['locked'] % 3 == 2 && !$isGM && !$pwSystem['viewclose']) { Showmsg('read_locked'); } unset($S_sql, $J_sql, $foruminfo['forumset']); if (getstatus($read['tpcstatus'], 1)) { #帖子是否来自群组 $_sql_sel = $_sql_tab = ''; if ($winduid) { $_sql_sel = ',cm.id AS ifcyer,cm.ifadmin'; $_sql_tab = ' LEFT JOIN pw_cmembers cm ON c.id=cm.colonyid AND cm.uid=' . S::sqlEscape($winduid); }
//SEO setting $isGM = S::inArray($windid, $manager); $isBM = admincheck($foruminfo['forumadmin'], $foruminfo['fupadmin'], $windid); if ($windid && ($isGM || $isBM)) { $admincheck = 1; } else { $admincheck = 0; } if ($foruminfo['allowread'] && !$admincheck && !allowcheck($foruminfo['allowread'], $groupid, $winddb['groups'])) { Showmsg('forum_read_right'); } if (!$admincheck && !$foruminfo['allowvisit']) { forum_creditcheck(); } if (!$admincheck && $foruminfo['forumsell']) { forum_sell($fid); } if ($read['ifcheck'] == 0 && !$isGM && $windid != $read['author'] && !pwRights($isBM, 'viewcheck')) { Showmsg('read_check'); } if ($read['locked'] % 3 == 2 && !$isGM && !pwRights($isBM, 'viewclose')) { Showmsg('read_locked'); } $db_metakeyword = substr($read['tags'], 0, strpos($read['tags'], "\t")); $db_metakeyword = (empty($db_metakeyword) ? $subject : $db_metakeyword) . ',' . $forumtitle; $db_metakeyword = trim(str_replace(array('|', ' - ', "\t", ' ', ',,,', ',,'), ',', $db_metakeyword), ','); if ($groupid == 'guest' && !$read['ifshield'] && !isban($read, $fid)) { if ($read['ifconvert'] == 2) { $metadescrip = stripWindCode($read['content']); $metadescrip = strip_tags($metadescrip); } else {