示例#1
0
        foreach (C::t('portal_article_content')->fetch_all($aid) as $value) {
            $pushedids[] = intval($value['id']);
            $pushedcount++;
        }
        $pids = array_diff($pids, $pushedids);
    }
    $pushcount = count($pids);
    if (empty($pids)) {
        showmessage($pushedids ? 'all_posts_pushed_already' : 'no_posts_for_pushplus');
    }
} else {
    if ($op == 'checkhtmlname') {
        $htmlname = basename(trim($_GET['htmlname']));
        if ($htmlstatus) {
            $_time = !empty($article) ? $article['dateline'] : TIMESTAMP;
            if (file_exists(helper_makehtml::fetch_dir($portalcategory[$catid]['fullfoldername'], $_time) . $htmlname . '.' . $_G['setting']['makehtml']['extendname'])) {
                showmessage('html_existed');
            } else {
                showmessage('html_have_no_exists');
            }
        } else {
            showmessage('make_html_closed');
        }
    } else {
        if (empty($_G['cache']['portalcategory'])) {
            showmessage('portal_has_not_category');
        }
        if (!checkperm('allowmanagearticle') && !checkperm('allowpostarticle')) {
            $allowcategorycache = array();
            if ($allowcategory = getallowcategory($_G['uid'])) {
                foreach ($allowcategory as $catid => $category) {