示例#1
0
 require_once R_P . 'require/bbscode.php';
 if ($action == 'quote' && $quote_content) {
     $atc_content = $quote_content . $atc_content;
 }
 $postdata = new replyPostData($pwpost);
 $postdata->setTitle($atc_title);
 !$postdata->setContent($atc_content) && Showmsg('post_price_limit');
 $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);
 $postdata->setAtUsers($_usernames);
 //$replypost->checkdata();
 $postdata->conentCheck();
 L::loadClass('attupload', 'upload', false);
 /*上传错误检查
 	$return = PwUpload::checkUpload();
 	$return !== true && Showmsg($return);
 	end*/
 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);