コード例 #1
0
ファイル: index.php プロジェクト: kapai69/fl-ru-damp
        $order = intval($_COOKIE['bmOrderType']);
        switch ($order) {
            case 0:
                $order = 'time';
                break;
            case 1:
                $order = 'priority';
                break;
            case 2:
                $order = 'title';
                break;
            default:
                $order = 'time';
                break;
        }
        $bookmarks = articles::getBookmarks($uid, $order);
        $authors = articles::getTopAuthors();
        $pages = ceil($articles_count / $msgs_on_page);
        if (($articles_count == 0 || $articles_count - 1 < ($page - 1) * $msgs_on_page) && !$bPageDefault || $pages == 1 && !$bPageDefault && $page != 1) {
            include ABS_PATH . '/404.php';
            exit;
        }
}
if (hasPermissions('articles')) {
    $js_file[] = 'uploader.js';
}
$js_file[] = 'mootools-forms.js';
$js_file[] = 'articles.js';
$js_file[] = 'kwords.js';
$js_file[] = '/kword_js.php';
include $rpath . '/template2.php';