Exemplo n.º 1
0
// 是否需要强制主题分类
if ($t_db && $t_per == '2') {
    $db_forcetype = 1;
}
//实名认证权限
if ($db_authstate && !$pwpost->admincheck && $pwforum->forumset['auth_allowpost'] && true !== ($authMessage = $pwforum->authStatus($winddb['userstatus'], $pwforum->forumset['auth_logicalmethod']))) {
    Showmsg($authMessage . '_post');
}
if (!$pwforum->foruminfo['allowpost'] && !$pwpost->admincheck && $_G['allowpost'] == 0) {
    Showmsg('postnew_group_right');
}
$postSpecial = null;
if ($special && file_exists(R_P . "lib/forum/special/post_{$special}.class.php")) {
    L::loadClass("post_{$special}", 'forum/special', false);
    $postSpecial = new postSpecial($pwpost);
    $postSpecial->postCheck();
} elseif ($modelid > 0) {
    /*主题分类*/
    if ($postTopic) {
        $postTopic->postCheck();
    }
    $selectmodelhtml = $postTopic->getModelHtml();
    $topichtml = $postTopic->getTopicHtml($modelid);
    $special = 0;
} elseif ($pcid > 0) {
    /*团购*/
    if ($postCate) {
        $postCate->postCheck();
    }
    $selectmodelhtml = $postCate->getPcHtml();
    $topichtml = $postCate->getCateHtml($pcid);