Exemplo n.º 1
0
function cache_column()
{
    global $db, $met_column, $lang;
    //mobile
    $query = "select * from {$met_column} where lang='{$lang}' order by classtype desc,no_order";
    $result = $db->query($query);
    while ($list = $db->fetch_array($result)) {
        $cache_column[$list['id']] = $list;
    }
    return cache_page("column_" . $lang . ".inc.php", $cache_column);
}
Exemplo n.º 2
0
    } elseif ('archive' == $_ACT) {
        require theme() . '/archive.php';
    } elseif ('news' == $_ACT) {
        require theme() . '/news.php';
    } elseif ('feed' == $_ACT) {
        require 'feed.php';
    } elseif ('comments' == $_ACT) {
        require 'feed-comments.php';
    } elseif ($cat = is_category($_ACT)) {
        $comic->cat = $cat->ID;
        $ID = is_nat($_VAR);
        $comic->get_comic($ID);
        require theme() . '/single.php';
    } elseif ($cat = is_category($_ACT) && 'random' == $_VAR) {
        $comic->cat = $cat->ID;
        $comic->random();
    } elseif ('random' == $_ACT) {
        $comic->random();
    } elseif (preg_match('@^/(\\w+\\.php)$@', $_ACT, $file)) {
        $allowed = array('faq.php', 'contact.php', 'hosting.php');
        if (in_array($file[1], $allowed) && file_exists(theme() . '/pages/' . $file[1])) {
            require theme() . '/pages/' . $file[1];
        } else {
            not_found();
        }
    } else {
        not_found();
    }
}
cache_page();
db_stats();
Exemplo n.º 3
0
function cache_column()
{
    global $_M;
    //mobile
    $query = "SELECT * FROM {$_M['table']['column']} WHERE lang='{$_M['lang']}' ORDER BY classtype desc,no_order";
    $result = DB::query($query);
    while ($list = DB::fetch_array($result)) {
        $cache_column[$list['id']] = $list;
    }
    return cache_page("column_" . $lang . ".inc.php", $cache_column);
}