Example #1
0
    list($fieldone, $topicvalue) = $postCate->getCatevalue($pcid);
    $initSearchHtml = $postCate->initSearchHtml($pcid);
    is_array($fieldone) && ($read = array_merge($read, $fieldone));
    $isadminright = $postCate->getAdminright($pcid, $read['authorid']);
    list($pcuid) = $postCate->getViewright($pcid, $tid);
    $payway = $fieldone['payway'];
    $ifend = $read['endtime'] < $timestamp ? 1 : 0;
}
//活动主题帖
if ($read['special'] == 8) {
    $actmid = $postActForBbs->getActmid($tid);
    //获取子分类id
    list($topicvalue, $activityValue) = $postActForBbs->getActValue($actmid);
    $orderMemberList = $postActForBbs->getOrderMemberList($actmid, $tid, $fid, $activityValue['paymethod'], $read['authorid']);
    //报名列表
    $actRecommendHtml = $postActForBbs->getActRecommendHtml($actmid, $tid, $activityValue['recommend']);
    //推荐
}
//特殊主题帖
if ($read['special'] == 1 && $foruminfo['allowtype'] & 2 && ($page == 1 || $numofpage == 1)) {
    #投票帖
    require_once R_P . 'require/readvote.php';
    //} elseif ($read['special'] == 2 && ($foruminfo['allowtype'] & 4) && ($page == 1 || $numofpage == 1)) {#活动帖
} elseif ($read['special'] == 2 && ($page == 1 || $numofpage == 1)) {
    #活动帖
    require_once R_P . 'require/readact.php';
} elseif ($read['special'] == 3 && $foruminfo['allowtype'] & 8) {
    #悬赏帖
    require_once R_P . 'require/readrew.php';
} elseif ($read['special'] == 4 && $foruminfo['allowtype'] & 16) {
    #交易帖