$kio->censure = (include ROOT . 'system/parser/censure/' . (Kio::getConfig('censure_parser') ? Kio::getConfig('censure_parser') . '.php' : 'index.php')); session_start(); //setlocale(LC_ALL, LC); //// mb_internal_encoding('UTF-8'); set_magic_quotes_runtime(false); //// ini_set('magic_quotes_gpc', 'Off'); //// define('IP', User::getIP()); // Get user IP define('TRANSLATE_DATE', Kio::getConfig('translate_date')); // Breadcrumb/Path define('ONLY_IN_TITLE', false); define('NO_URL', null); ////////////////// User::detectLang(Kio::getConfig('detect_lang')); ///////////////// // Check if some functions exists if (in_array(false, $kio->functions)) { require_once ROOT . 'system/functions2.php'; } switch (Kio::getConfig('url_type')) { // www.site.com/?example case 1: Kio::$url = array_map('clean_url', explode('/', $_SERVER['QUERY_STRING'])); Kio::$urlPrefix = '?'; break; // www.site.com/example // www.site.com/example case 2: Kio::$url = array_map('clean_url', explode('/', substr($_SERVER['REQUEST_URI'], strlen(LOCAL))));