Exemplo n.º 1
0
        if (!empty($redirect['to_arr'][$key])) {
            header('HTTP/1.1 301 Moved Permanently');
            header('Location: ' . $redirect['to_arr'][$key]);
            exit(0);
        }
    }
}
if (isset($_GET['module'])) {
    $mod = $_GET['module'];
} else {
    $mod = '';
}
if (empty($system->config['disable_cache'])) {
    $system->config['disable_cache'] = '';
}
if ($system->user['username'] == 'guest' && !empty($system->config['cache']) && !in_array($mod, explode("\n", str_replace("\r", '', $system->config['disable_cache'])))) {
    $cache = new CACHE();
    $cache->start_cache();
    $cache->time_file_cache = $system->config['cache'];
    //
    if (!$cache->is_fresh()) {
        rcms_start();
        $cache->save_cache();
    }
    $cache->clear_cache();
    if ($cache->show_cache()) {
        echo $cache->CONTENT;
    }
} else {
    rcms_start();
}