コード例 #1
0
ファイル: postreply.php プロジェクト: jechiy/PHPWind
 $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);
 $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