//团购主题帖 if ($read['special'] > 20) { $pcid = $read['special'] - 20; 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) { #悬赏帖
<?php !defined('P_W') && exit('Forbidden'); S::gp(array('job'), 'GP'); if ($job == 'preview') { //帖子预览 require_once R_P . 'require/bbscode.php'; require_once R_P . 'require/header.php'; S::gp(array('atc_title', 'atc_content', 'pcinfo', 'atc_title'), 'P'); S::gp(array('actmid', 'tid', 'authorid'), 'P', 2); $data = array(); L::loadClass('ActivityForBbs', 'activity', false); $postActForBbs = new PW_ActivityForBbs($data); $actdb = $postActForBbs->getPreviewdata($pcinfo); list($topicvalue) = $postActForBbs->getActValue($actmid, $actdb); $atc_content = str_replace("\n", "<br>", $atc_content); $atc_content = wordsConvert($atc_content); $preatc = convert($atc_content, $db_windpost); require_once PrintEot('preview'); footer(); } elseif ($job == 'export') { //导出报名列表 S::gp(array('tid', 'actmid'), G, 2); if (!$windid && ($userdb = getCurrentOnlineUser()) && $userdb['ip'] == $onlineip) { $userService = L::loadClass('UserService', 'user'); /* @var $userService PW_UserService */ $winddb = $userService->get($userdb['uid']); $winduid = $winddb['uid']; $groupid = $winddb['groupid']; $groupid == '-1' && ($groupid = $winddb['memberid']); $userrvrc = round($winddb['rvrc'] / 10, 1);