Beispiel #1
0
     ajax_footer();
 } else {
     PostCheck(1, $db_gdcheck & 4 && (!$db_postgd || $winddb['postnum'] < $db_postgd), $db_ckquestion & 4 && (!$postq || $winddb['postnum'] < $postq));
     S::gp(array('atc_title', 'atc_content'), 'P', 0);
     require_once R_P . 'require/bbscode.php';
     if ($postmodify->type == 'topic') {
         $postdata = new topicPostData($pwpost);
         $atcdb['special'] && $postdata->setData('special', $atcdb['special']);
     } else {
         $pid = 'tpc';
         $postdata = new replyPostData($pwpost);
     }
     $postdata->initData($postmodify);
     $postdata->setTitle($atc_title);
     $postdata->setContent($atc_content);
     $isKmd && $postdata->setKmdInfo($kmdInfo);
     $postdata->setConvert(1);
     $postdata->setIfcheck();
     $postmodify->execute($postdata);
     extract(L::style());
     $leaveword = $atcdb['leaveword'] ? leaveword($atcdb['leaveword']) : '';
     $content = convert($postdata->data['content'] . $leaveword, $db_windpost);
     if (strpos($content, '[p:') !== false || strpos($content, '[s:') !== false) {
         $content = showface($content);
     }
     if ($atcdb['ifsign'] < 2) {
         $content = str_replace("\n", '<br />', $content);
     }
     if ($postdata->data['ifwordsfb'] == 0) {
         $content = addslashes(wordsConvert(stripslashes($content)));
     }
Beispiel #2
0
 }
 $postdata->setTitle($atc_title);
 !$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');