Ejemplo n.º 1
0
<?php

error_reporting(0);
define('KOKEN_VERSION', '0.21.6');
define('BASEPATH', true);
ini_set('default_charset', 'UTF-8');
if (function_exists('mb_internal_encoding')) {
    mb_internal_encoding('UTF-8');
}
$root_path = dirname(dirname(dirname(__FILE__)));
@(include $root_path . '/storage/configuration/user_setup.php');
require $root_path . '/app/koken/Shutter/Shutter.php';
if (!defined('LOOPBACK_HOST_HEADER')) {
    define('LOOPBACK_HOST_HEADER', false);
}
Shutter::enable();
Shutter::hook('site.boot');
// If this isn't set, they have enabled URL rewriting for purty links and arrived here directly
// (not through /index.php/this/that)
if (!isset($rewrite)) {
    $rewrite = true;
    $raw_url = $_GET['url'];
} else {
    if (isset($_SERVER['QUERY_STRING']) && (strpos($_SERVER['QUERY_STRING'], '/') === 0 || strpos($_SERVER['QUERY_STRING'], '%2F') === 0)) {
        $raw_url = $_SERVER['QUERY_STRING'];
    } else {
        $raw_url = '/';
    }
}
$url_vars = array('__overrides' => array(), '__overrides_display' => array(), 'page' => 1);
$to_replace = array();