!empty($pwpost->errMsg) && wap_msg($pwpost->errMsg, $basename); list($uploadcredit, $uploadmoney, , ) = explode("\t", $pwforum->forumset['uploadset']); if (!$pwpost->admincheck && !$pwforum->allowpost($pwpost->user, $pwpost->groupid)) { wap_msg('postnew_forum_right', 'index.php?a=post&fid=0'); } if (!$pwforum->foruminfo['allowpost'] && !$pwpost->admincheck && $_G['allowpost'] == 0) { wap_msg('postnew_group_right', 'index.php?a=post&fid=0'); } InitGP(array('subject', 'content'), 'P', 0); $refer = "index.php?a=post&action=new&fid={$fid}&tmp={$timestamp}"; checkWapPost(); require_once R_P . 'require/bbscode.php'; $postdata = new topicPostData($pwpost); $postdata->setTitle(wap_cv($subject, false)); $postdata->setContent(wap_cv($content, false)); $postdata->setData('lastpost', $timestamp); $postdata->setStatus(6); $postdata->conentCheck(); $postdata->checkdata(); !empty($pwpost->errMsg) && wap_msg($pwpost->errMsg, $basename); $topicpost->execute($postdata); $tid = $topicpost->getNewId(); if (!$tid) { wap_msg("发帖失败,您没有在此版块发帖的权限", $basename); } if ($postdata->getIfcheck() == '0') { wap_msg("发帖成功,请等待管理员审核", $basename); } $rurl = "index.php?a=read&tid={$tid}&fid={$fid}&page=e"; if ($_POST['upload']) { $rurl = "index.php?a=upload&tid={$tid}&fid={$fid}&page=e";
$postdata->setDigest($digest); $postdata->setTopped($topped); $postdata->setIconid($atc_iconid); $postdata->setIfsign($atc_usesign, $atc_html); $postdata->setMagic($magicid, $magicname); $postdata->setHide($atc_hide); $postdata->setEnhide($atc_requireenhide, $atc_rvrc, $atc_enhidetype); $postdata->setSell($atc_requiresell, $atc_money, $atc_credittype); //$newpost->checkdata(); //@ $postdata->setAtUsers($_usernames); $postdata->setReplyReward($replyrewardcredit, $replyreward); $postdata->conentCheck(); if ($postSpecial) { $postSpecial->initData(); $postdata->setData('special', $postSpecial->special); } if ($postTopic) { //分类主题初始化 $postTopic->initData(); $postdata->setData('modelid', $postTopic->modelid); } if ($postCate) { //团购初始化 $postCate->initData(); $postdata->setData('special', 20 + $postCate->pcid); } if ($postActForBbs) { //活动初始化 $postActForBbs->initData(); $postdata->setData('special', 8);
$atcdb['anonymous'] && ($atcdb['author'] = $db_anonymousname); $atc_content = str_replace(array('<', '>', ' '), array('<', '>', ' '), $atcdb['content']); if (strpos($atc_content, $db_bbsurl) !== false) { $atc_content = str_replace('p_w_picpath', $db_picpath, $atc_content); $atc_content = str_replace('p_w_upload', $db_attachname, $atc_content); } $atc_title = $atcdb['subject']; require_once PrintEot('ajax'); 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) {