Example #1
0
    $postCate = new postCate($pwpost);
    if ($postCate) {
        $postCate->postCheck();
    }
    $topichtml = $postCate->getCateHtml($pcid);
}
if ($actmid > 0) {
    //活动
    if ($postActForBbs) {
        $postActForBbs->postCheck();
    }
    $authorid = $atcdb['authorid'];
    $postActForBbs->setPeopleAlreadyPaid($postActForBbs->peopleAlreadyPaid($tid));
    $postActForBbs->setPeopleAlreadySignup($postActForBbs->peopleAlreadySignup($tid));
    $topichtml = $postActForBbs->getActHtml($actmid, $tid);
    $previewForm = $postActForBbs->getPreviewForm($actmid, $tid);
}
$page = floor($article / $db_readperpage) + 1;
$hideemail = 'disabled';
$icon = (int) $icon;
if (empty($_POST['step'])) {
    $attach = '';
    if ($atcdb['attachs']) {
        ksort($atcdb['attachs']);
        reset($atcdb['attachs']);
        foreach ($atcdb['attachs'] as $key => $value) {
            list($value['attachurl'], ) = geturl($value['attachurl'], 'lf');
            $attach .= "'{$key}' : ['{$value['name']}', '{$value['size']}', '{$value['attachurl']}', '{$value['type']}', '{$value['special']}', '{$value['needrvrc']}', '{$value['ctype']}', '{$value['descrip']}'],";
        }
        $attach = rtrim($attach, ',');
    }