Example #1
0
    $msg_guide = $pwforum->headguide($guidename);
    $postMinLength = empty($pwpost->forum->foruminfo['forumset']['contentminlen']) ? $db_postmin : $pwpost->forum->foruminfo['forumset']['contentminlen'];
    require_once PrintEot('post');
    CloudWind::yunSetCookie(SCR);
    footer();
} elseif ($_POST['step'] == 2) {
    S::gp(array('atc_title', 'atc_content'), 'P', 0);
    S::gp(array('replayorder', 'atc_anonymous', 'atc_newrp', 'atc_tags', 'atc_hideatt', 'magicid', 'magicname', 'atc_enhidetype', 'atc_credittype', 'flashatt', 'buildIfcheck', 'robstarttime', 'robendtime', 'robendbuild', 'robawardbuilds', '_usernames', 'replyrewardcredit'), 'P');
    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);
Example #2
0
        require_once R_P . 'lib/forum.class.php';
        require_once R_P . 'require/bbscode.php';
        $pwforum = new PwForum($colony['classid']);
        $pwpost = new PwPost($pwforum);
        require_once R_P . 'lib/topicpost.class.php';
        //require_once(R_P . 'apps/groups/lib/group.class.php');
        $topicpost = new topicPost($pwpost);
        //$topicpost->group = new PwGroup($colony['id']);
        $topicpost->check();
        InitGP(array('atc_title', 'atc_content', 'atc_convert', 'flashatt'), 'P');
        $postdata = new topicPostData($pwpost);
        $postdata->setTitle($atc_title);
        $postdata->setContent($atc_content);
        $postdata->setConvert($atc_convert);
        $postdata->setIfsign(1, 0);
        $postdata->setStatus(1);
        $postdata->conentCheck();
        require_once R_P . 'lib/upload/attupload.class.php';
        if (PwUpload::getUploadNum() || $flashatt) {
            $postdata->att = new AttUpload($winduid, $flashatt);
            $postdata->att->check();
            $postdata->att->transfer();
            PwUpload::upload($postdata->att);
        }
        $topicpost->execute($postdata);
        $tid = $topicpost->getNewId();
        $db->update("INSERT INTO pw_argument SET " . pwSqlSingle(array('tid' => $tid, 'cyid' => $colony['id'], 'postdate' => $timestamp, 'lastpost' => $timestamp)));
        pwAddFeed($winduid, 'colony_post', $cyid, array('lang' => 'colony_post', 'cyid' => $cyid, 'colony_name' => $colony_name, 'username' => $windid, 'uid' => $winduid, 'tid' => $tid, 'title' => $atc_title));
        refreshto("{$basename}a=read&cyid={$cyid}&tid={$tid}", 'colony_postsuccess');
    }
} elseif ($a == 'reply') {
Example #3
0
 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";
     header("Location:{$rurl}");
Example #4
0
 S::gp(array('atc_title', 'atc_content'), 'P', 0);
 S::gp(array('atc_email', 'replayorder', 'atc_anonymous', 'atc_newrp', 'atc_tags', 'atc_hideatt', 'magicid', 'magicname', 'atc_enhidetype', 'atc_credittype', 'flashatt', 'buildIfcheck', 'robstarttime', 'robendtime', 'robendbuild', 'robawardbuilds', 'replyrewardcredit', '_usernames'), 'P');
 S::gp(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', 'isAttachOpen', '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';
 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($atc_email, $atc_newrp);
     if ($replayorder == 1) {
         $postdata->setStatus('3', '01');
     } elseif ($replayorder == 2) {
         $postdata->setStatus('3', '10');
     } else {
         $postdata->setStatus('3', '00');
     }
 } else {
     $postdata = new replyPostData($pwpost);
     $postdata->initData($postmodify);
 }
 $postdata->setTitle($atc_title);
 !$postdata->setContent($atc_content) && Showmsg('post_price_limit');
 $postdata->setConvert($atc_convert, $atc_autourl);
 $postdata->setAnonymous($atc_anonymous);
 $isAttachOpen && $postdata->setHideatt($atc_hideatt);
 $postdata->setIconid($atc_iconid);