示例#1
0
 !$postdata->setContent($atc_content) && Showmsg('post_price_limit');
 $postdata->setConvert($atc_convert, $atc_autourl);
 $postdata->setAnonymous($atc_anonymous);
 $isAttachOpen && $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);
 $postdata->setAtUsers($_usernames);
 if ($atcdb['specialsort'] == PW_THREADSPECIALSORT_KMD && $postmodify->type == 'topic' && $winduid == $atcdb['authorid']) {
     $kmdService = L::loadClass('KmdService', 'forum');
     $kmdInfo = $kmdService->getKmdInfoByTid($tid);
     $postdata->setKmdInfo($kmdInfo);
 }
 $special && $postdata->setData('special', $special);
 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->modifyData($tid);
 }
 if ($postmodify->hasAtt()) {
     S::gp(array('keep', 'oldatt_special', 'oldatt_needrvrc'), 'P', 2);
     S::gp(array('oldatt_ctype', 'oldatt_desc'), 'P');
     $postmodify->initAttachs($oldatt_special, $oldatt_needrvrc, $oldatt_ctype, $oldatt_desc);
 }
 if (getstatus($atcdb['tpcstatus'], 7) && $pid == 'tpc') {
     //抢楼
     $robbuildService = L::loadClass("robbuild", 'forum');
     $fieldsdata = array('authorid' => $winduid, 'starttime' => $robstarttime, 'endtime' => $robendtime, 'endbuild' => $robendbuild, 'awardbuilds' => $robawardbuilds, 'postdate' => $timestamp);
     if ($message = $robbuildService->checkAddData($foruminfo['allowtype'], $fieldsdata)) {