* Use session language. * @ignore */ define('K_USER_LANG', $_COOKIE['SessionUserLang']); } else { /** * Use default language. * @ignore */ define('K_USER_LANG', K_LANGUAGE); } // TMX class require_once '../../shared/code/tce_tmx.php'; // istantiate new TMXResourceBundle object $lang_resources = new TMXResourceBundle(K_PATH_TMX_FILE, K_USER_LANG, K_PATH_LANG_CACHE . basename(K_PATH_TMX_FILE, '.xml') . '_' . K_USER_LANG . '.php'); $l = $lang_resources->getResource(); // language array ini_set('arg_separator.output', '&'); //date_default_timezone_set(K_TIMEZONE); if (!defined('PHP_VERSION_ID')) { $version = PHP_VERSION; define('PHP_VERSION_ID', $version[0] * 10000 + $version[2] * 100 + $version[4]); } if (PHP_VERSION_ID < 50300) { @set_magic_quotes_runtime(false); //disable magic quotes ini_set('magic_quotes_gpc', 'On'); ini_set('magic_quotes_runtime', 'Off'); ini_set('register_long_arrays', 'On'); //ini_set('register_globals', 'On'); }
* @ignore */ define ('K_USER_LANG', $_COOKIE['SessionUserLang']); } else { /** * Use default language. * @ignore */ define ('K_USER_LANG', K_LANGUAGE); } // TMX class require_once('../../shared/code/tce_tmx.php'); // istantiate new TMXResourceBundle object $lang_resources = new TMXResourceBundle(K_PATH_TMX_FILE, K_USER_LANG, K_PATH_LANG_CACHE.basename(K_PATH_TMX_FILE, '.xml').'_'.K_USER_LANG.'.php'); $l = $lang_resources->getResource(); // language array ini_set('arg_separator.output', '&'); //date_default_timezone_set(K_TIMEZONE); if(!defined('PHP_VERSION_ID')) { $version = PHP_VERSION; define('PHP_VERSION_ID', (($version[0] * 10000) + ($version[2] * 100) + $version[4])); } if (PHP_VERSION_ID < 50300) { @set_magic_quotes_runtime(false); //disable magic quotes ini_set('magic_quotes_gpc', 'On'); ini_set('magic_quotes_runtime', 'Off'); ini_set('register_long_arrays', 'On'); //ini_set('register_globals', 'On'); }