<p>it appears this is a new installation of Wicked Words</p>
		<h4>Well done you!</h4>
		<p>now go to the <a href="create.php">create page</a> to create your database tables...</p>
		</div>';
    exit;
}
if (!empty($config['admin']['shutdown'])) {
    header('HTTP/1.1 503 Service Temporarily Unavailable', true, 503);
    header('Status: 503 Service Temporarily Unavailable');
    header('Retry-After: 172800');
    echo "\n\t\t" . $config['site']['title'] . " is temporarily closed for maintenance...";
    exit;
}
// start caching
if (!empty($config['cache']['caching_on'])) {
    $cache_fp = !isset($_POST['submit_comment']) ? start_caching($config['cache'], $start) : 0;
}
// process url
$request = process_request();
$config['site']['theme'] = isset($_SESSION['theme']) ? $_SESSION['theme'] : $config['site']['theme'];
// check for includes
$includes = get_includes($config['site']['theme']);
if (!empty($includes)) {
    foreach ($includes as $inc) {
        include_once $inc;
    }
}
// create a 'meta title' from the main site title (used for browser titlebar and <title> tag
// redirect as needed
if (isset($_GET['page_name'])) {
    // rss feed - redirect to xml page
Example #2
0
// add compression since mod_deflate doesn't appear to like this file
ob_start("ob_gzhandler");
header("content-type: text/css; charset: UTF-8");
$offset = 60 * 60 * 1;
// one hour
$offset = 0;
// one hour
header("Cache-Control: max-age=" . $offset . ", must-revalidate");
header("Expires: " . gmdate("D, d M Y H:i:s", time() + $offset) . " GMT");
// required files
require_once '../ww_config/model_functions.php';
require_once '../ww_config/controller_functions.php';
// start caching
if (!empty($config['cache']['caching_on'])) {
    $cache_css = start_caching();
}
// get theme via GET parameter
$theme = isset($_GET['theme']) ? '/' . $_GET['theme'] : '/default';
$theme_folder = "/ww_view/themes" . $theme;
// revert to default theme if selected theme is not found
if (!is_dir(WW_ROOT . $theme_folder)) {
    $theme_folder = '/ww_view/themes/default';
}
// include styles
$css = '';
// structure
if (file_exists(WW_ROOT . $theme_folder . '/structure.css')) {
    $css .= '/***************************' . "\n";
    $css .= "\t" . 'structure' . "\n";
    $css .= '****************************/' . "\n\n";