Example #1
0
 S::gp(array('atc_iconid', 'atc_email', 'digest', 'topped', 'atc_hide', 'atc_requireenhide', 'atc_rvrc', 'atc_requiresell', 'atc_money', 'atc_usesign', 'atc_html', 'p_type', 'p_sub_type', 'atc_convert', 'atc_autourl', 'replyreward'), 'P', 2);
 S::gp(array('iscontinue'), 'P');
 //ajax提交时有敏感词时显示是否继续
 $db_sellset['price'] && (int) $atc_money > $db_sellset['price'] && Showmsg('post_price_limit');
 require_once R_P . 'require/bbscode.php';
 $postdata = new topicPostData($pwpost);
 $replayorder = $replayorder == 1 || $replayorder == 2 ? $replayorder : 0;
 $postdata->setStatus('3', decbin($replayorder));
 $postdata->setWtype($p_type, $p_sub_type, $t_per, $t_db, $db_forcetype);
 $postdata->setTitle($atc_title);
 !$postdata->setContent($atc_content) && Showmsg('post_price_limit');
 $postdata->setConvert($atc_convert, $atc_autourl);
 $postdata->setTags($atc_tags);
 $postdata->setAnonymous($atc_anonymous);
 $postdata->setHideatt($atc_hideatt);
 $postdata->setIfmail($atc_email, $atc_newrp);
 $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();
Example #2
0
        refreshto("read.php?tid={$tid}", 'enter_thread');
    } else {
        refreshto("thread.php?fid={$fid}", 'enter_thread');
    }
} elseif ($_POST['step'] == 2) {
    InitGP(array('atc_title', 'atc_content'), 'P', 0);
    InitGP(array('replayorder', 'atc_anonymous', 'atc_newrp', 'atc_tags', 'atc_hideatt', 'magicid', 'magicname', 'atc_enhidetype', 'atc_credittype', 'flashatt'), 'P');
    InitGP(array('atc_iconid', 'atc_hide', 'atc_requireenhide', 'atc_rvrc', 'atc_requiresell', 'atc_money', 'atc_usesign', 'atc_html', 'p_type', 'p_sub_type', 'atc_convert', 'atc_autourl'), 'P', 2);
    require_once R_P . 'require/bbscode.php';
    if ($postmodify->type == 'topic') {
        $postdata = new topicPostData($pwpost);
        $postdata->initData($postmodify);
        $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);