$postdata = new replyPostData($pwpost); $postdata->initData($postmodify); } $postdata->setTitle($atc_title); $postdata->setContent($atc_content); $postdata->setConvert($atc_convert, $atc_autourl); $postdata->setAnonymous($atc_anonymous); $postdata->setHideatt($atc_hideatt); $postdata->setIconid($atc_iconid); $postdata->setIfsign($atc_usesign, $atc_html); $postdata->setHide($atc_hide); $postdata->setEnhide($atc_requireenhide, $atc_rvrc, $atc_enhidetype); $postdata->setSell($atc_requiresell, $atc_money, $atc_credittype); if ($special && file_exists(R_P . "lib/special/post_{$special}.class.php")) { require_once R_P . "lib/special/post_{$special}.class.php"; $postSpecial = new postSpecial($pwpost); $postSpecial->modifyData($tid); } if ($postmodify->hasAtt()) { InitGP(array('keep', 'oldatt_special', 'oldatt_needrvrc'), 'P', 2); InitGP(array('oldatt_ctype', 'oldatt_desc'), 'P'); $postmodify->initAttachs($keep, $oldatt_special, $oldatt_needrvrc, $oldatt_ctype, $oldatt_desc); } require_once R_P . 'lib/upload/attupload.class.php'; if (PwUpload::getUploadNum() || $flashatt) { $postdata->att = new AttUpload($winduid, $flashatt); $postdata->att->check(); $postdata->att->transfer(); $postdata->att->setReplaceAtt($postmodify->replacedb); PwUpload::upload($postdata->att); }
$db_forcetype = 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();
if (PwUpload::getUploadNum() || $flashatt) { S::gp(array('savetoalbum', 'albumid'), 'P', 2); $postdata->att = new AttUpload($winduid, $flashatt, $savetoalbum, $albumid); $postdata->att->check(); } $replypost->setToUser($replytouser); $postdata->iscontinue = (int) $iscontinue; $postdata->setIfGoLastPage($go_lastpage); $replypost->execute($postdata); $pid = $replypost->getNewId(); // defend start CloudWind::yunUserDefend('postreply', $winduid, $windid, $timestamp, $cloud_information[1] ? $timestamp - $cloud_information[1] : 0, $pid ? 101 : 102, '', $postdata->data['content'], '', ''); // defend end if ($winduid && $tpcarray['special'] == 5) { L::loadClass("post_5", 'forum/special', false); $postdebate = new postSpecial($pwpost); $postdebate->reply($tid, $pid); } pwHook::runHook('after_reply'); //defend start CloudWind::YunPostDefend($winduid, $windid, $groupid, $pid, $atc_title, $atc_content, 'reply', array('tid' => $tid, 'fid' => $fid, 'forumname' => $pwforum->foruminfo['name'])); //defend end //job sign /* require_once(R_P.'require/functions.php'); $_cacheService = Perf::gatherCache('pw_threads'); $thread = ($page>1) ? $_cacheService->getThreadByThreadId($tid) : $_cacheService->getThreadAndTmsgByThreadId($tid); initJob($winduid,"doReply",array('tid'=>$tid,'user'=>$thread['author'])); */ $j_p = "read.php?tid={$tid}&ds=1&page=e#a"; if ($db_htmifopen) {