$postdata->setWtype($p_type, $p_sub_type, $t_per, $t_db, $db_forcetype); $postdata->setTags($atc_tags); $postdata->setMagic($magicid, $magicname); $postdata->setIfmail(0, $atc_newrp); $postdata->setStatus('3', decbin($replayorder)); } else { $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) {
S::gp(array('atc_title', 'atc_content'), 'P', 0); S::gp(array('atc_tags', 'atc_hideatt', 'flashatt', 'atc_convert', 'isAttachOpen'), 'P'); require_once R_P . 'require/bbscode.php'; if ($postmodify->type == 'topic') { $postdata = new topicPostData($pwpost); $postdata->initData($postmodify); $postdata->setTags($atc_tags); } else { $postdata = new replyPostData($pwpost); $postdata->initData($postmodify); } $postdata->setTitle($atc_title); $postdata->setContent($atc_content); $postdata->setConvert($atc_convert); $isAttachOpen && $postdata->setHideatt($atc_hideatt); $postdata->setIfsign(1, 0); $postdata->conentCheck(); $postdata->iscontinue = $iscontinue; if ($postmodify->hasAtt()) { S::gp(array('oldatt_special', 'oldatt_needrvrc'), 'P', 2); S::gp(array('oldatt_ctype', 'oldatt_desc'), 'P'); $postmodify->initAttachs($oldatt_special, $oldatt_needrvrc, $oldatt_ctype, $oldatt_desc); } L::loadClass('attupload', 'upload', false); if (PwUpload::getUploadNum() || $flashatt) { $postdata->att = new AttUpload($winduid, $flashatt); $postdata->att->check(); $postdata->att->setReplaceAtt($postmodify->replacedb); } $postmodify->execute($postdata); if ($postdata->getIfcheck()) {