$robFloors = $db->get_value("SELECT floor FROM pw_robbuildfloor WHERE tid = " . S::sqlEscape($tid) . " AND pid = " . S::sqlEscape($pid)); } if ($isReplyReward) { $replyRewardRecordService = L::loadClass('ReplyRewardRecord', 'forum'); $replyRewarRecord = $replyRewardRecordService->getRewardRecordByTidAndPid($tid, $pid); $readdb[0]['replyreward'] = $replyRewarRecord; unset($replyRewardRecordService, $replyRewarRecord); } } array_push($_pids, $pid); $pwMembers = $colonydb = $customdb = array(); /**End Add by liaohu for addfloor**/ //读取帖子及回复的附件信息 if ($_pids) { $attachShow = new attachShow($isGM || $pwSystem['delattach'], $forumset['uploadset'], $forumset['viewpic']); $attachShow->init($tid, $_pids); } $showCustom = 0; if ($db_showcustom && is_array($db_showcustom)) { foreach ($db_showcustom as $key => $value) { is_numeric($value) && ($showCustom = 1); } } //读取用户信息 /** if ($_uids) { $skey = array(); foreach ($_uids as $key=>$value) { $skey[$value] = $key; $db_showcolony && $skey['UID_GROUP_'.$key] = $key; $showCustom && $skey['UID_CREDIT_'.$key] = $key;
if ($db_htmifopen) { $link = "{$db_bbsurl}/read{$db_dir}tid-{$rt['tid']}{$db_ext}"; } else { $link = "{$db_bbsurl}/read.php?tid={$rt['tid']}"; } $postTitle = decodeRssHtml($rt['subject']); $postTitle = xmlEscape($postTitle); $allow = is_array($db_windpost) ? $db_windpost : array(); $allow['flash'] = 0; $allow['mpeg'] = 0; $allow['checkurl'] = 0; $description = $rt['content']; $pid = 0; //对附件做处理 $attachShow = new attachShow(false, isset($forumset['uploadset']) ? $forumset['uploadset'] : '', isset($forumset['viewpic']) ? $forumset['viewpic'] : 0); $attachShow->init($rt['tid'], array($pid)); if ($rt['aid']) { //存在附件 $pid = 'tpc'; $hasUnsetAttach = false; if (!$rt['ifhide'] && !$attachShow->isConfineView) { //不隐藏附件 foreach ($attachShow->getAttachs($pid, false) as $type => $attachs) { if ($type == 'pic') { } else { //对除图片外的其他附件做特殊处理 $hasUnsetAttach = true; foreach ($attachs as $attachmentId => $attachRow) { unset($attachShow->attachs[$pid][$attachmentId]); $description = formatNotImageAttachs($description, $attachRow); }