if ($t_subtypedb) { $t_subtypedb = pwJsonEncode($t_subtypedb); $t_sub_exits = 1; } $db_forcetype = $t_exits && $t_per == '2' ? 1 : 0; // 是否需要强制主题分类 $db_maxtypenum == 0 && ($db_maxtypenum = 5); if ($winddb['shortcut']) { $myshortcut = 'true'; } else { $myshortcut = 'false'; } if (defined('M_P') && file_exists(M_P . 'thread.php')) { require_once M_P . 'thread.php'; } CloudWind::yunSetCookie(SCR, '', $fid); require_once PrintEot($threadBehavior->template); $noticecache = 900; $foruminfo['enddate'] && $foruminfo['enddate'] <= $timestamp && ($foruminfo['aidcache'] = $timestamp - $noticecache); if ($foruminfo['aidcache'] && $timestamp - $foruminfo['aidcache'] > $noticecache - 1 && ($foruminfo['startdate'] > $timestamp || $foruminfo['enddate'] && ($foruminfo['enddate'] <= $timestamp || $foruminfo['aids']))) { $foruminfo['aid'] && ($foruminfo['aids'] .= ",{$foruminfo['aid']}"); require_once R_P . 'require/updatenotice.php'; updatecache_i_i($fid, $foruminfo['aids']); } footer(); function getstart($start, $asc, $count) { global $db_perpage, $page, $numofpage; $limit = $db_perpage; if ($page > 20 && $page > ceil($numofpage / 2)) { $asc = $asc == 'DESC' ? 'ASC' : 'DESC';
$set = $postSpecial->setInfo(); } list($guidename, $forumtitle) = $pwforum->getTitle(); if ($cyid) { require_once R_P . 'apps/groups/lib/colony.class.php'; $newColony = new PwColony($cyid); $guidename .= "<em>></em><a href=\"thread.php?cyid={$cyid}\">" . $newColony->info['cname'] . "</a>"; } $db_metakeyword = str_replace(array('|', ' - '), ',', $forumtitle) . 'phpwind'; list($sellMoney, $hideMoney) = array(0, 0); $checkedAutourl = $winddb['postnum'] < $_G['posturlnum'] && !$pwpost->isGM ? 'disabled' : 'checked'; require_once R_P . 'require/header.php'; $msg_guide = $pwforum->headguide($guidename); $postMinLength = empty($pwpost->forum->foruminfo['forumset']['contentminlen']) ? $db_postmin : $pwpost->forum->foruminfo['forumset']['contentminlen']; require_once PrintEot('post'); CloudWind::yunSetCookie(SCR); footer(); } elseif ($_POST['step'] == 2) { S::gp(array('atc_title', 'atc_content'), 'P', 0); S::gp(array('replayorder', 'atc_anonymous', 'atc_newrp', 'atc_tags', 'atc_hideatt', 'magicid', 'magicname', 'atc_enhidetype', 'atc_credittype', 'flashatt', 'buildIfcheck', 'robstarttime', 'robendtime', 'robendbuild', 'robawardbuilds', '_usernames', 'replyrewardcredit'), 'P'); S::gp(array('atc_iconid', 'atc_email', 'digest', 'topped', 'atc_hide', 'atc_requireenhide', 'atc_rvrc', 'atc_requiresell', 'atc_money', 'atc_usesign', 'atc_html', 'p_type', 'p_sub_type', 'atc_convert', 'atc_autourl', 'replyreward'), 'P', 2); S::gp(array('iscontinue'), 'P'); //ajax提交时有敏感词时显示是否继续 $db_sellset['price'] && (int) $atc_money > $db_sellset['price'] && Showmsg('post_price_limit'); require_once R_P . 'require/bbscode.php'; $postdata = new topicPostData($pwpost); $replayorder = $replayorder == 1 || $replayorder == 2 ? $replayorder : 0; $postdata->setStatus('3', decbin($replayorder)); $postdata->setWtype($p_type, $p_sub_type, $t_per, $t_db, $db_forcetype); $postdata->setTitle($atc_title); !$postdata->setContent($atc_content) && Showmsg('post_price_limit');
$db_forcetype = 0; if (!$admincheck && !$foruminfo['allowrp'] && !$_G['allowrp']) { $groupid == 'guest' ? $anonymity = true : ($fastpost = ''); } } //referer if ($db_htmifopen) { $requestURI = substr($pwServer['HTTP_REFERER'], strlen($db_bbsurl) + 1); $refererParams = parseRewriteQueryString($requestURI); } else { $refererPU = parse_url($pwServer['HTTP_REFERER']); parse_str($refererPU['query'], $refererParams); } require_once PrintEot('read'); //if (strrpos($pwServer['HTTP_REFERER'],'post.php') === false) { CloudWind::yunSetCookie(SCR, $tid, $fid); //} footer(); function viewread($read, $start_limit) { global $db, $_G, $isGM, $pwSystem, $groupid, $attach_url, $winduid, $tablecolor, $tpc_author, $tpc_buy, $tpc_pid, $tpc_tag, $count, $orderby, $pageinverse, $timestamp, $db_onlinetime, $attachdir, $attachpath, $readcolorone, $readcolortwo, $lpic, $ltitle, $imgpath, $db_ipfrom, $db_showonline, $stylepath, $db_windpost, $db_windpic, $db_signwindcode, $fid, $tid, $pid, $_MEDALDB, $rewardtype, $db_shield, $db_iftag, $db_md_ifopen; global $ping_logs, $buyAids, $creditdb, $admincheck; if ($read['istop'] == 'topped') { $read['lou'] = $read['floor']; } elseif ($read['robfloor']) { $read['lou'] = $read['robfloor']; } else { $read['lou'] = $orderby != 'desc' || $start_limit == 0 ? $start_limit : $count - $start_limit; } $read['jupend'] = $start_limit == $count - 1 ? "<a name=a></a><a name={$read['pid']}></a>" : "<a name={$read['pid']}></a>"; $orderby == 'desc' && ($read['jupend'] = $start_limit == 1 ? "<a name=a></a><a name={$read['pid']}></a>" : "<a name={$read['pid']}></a>");