/* Decoded by unphp.net */ global $ROOT_PATH; $ROOT_PATH=getenv("DOCUMENT_ROOT"); if($ROOT_PATH=="") $ROOT_PATH=$_SERVER['DOCUMENT_ROOT']; @ini_set('display_errors','off'); define('_IM_DEBUG_SQL_',true); @ini_set('upload_max_filesize','100M'); @ini_set('default_charset','utf-8'); function __Autoload($className) { global $ROOT_PATH; if (!class_exists($className,false)) require_once($ROOT_PATH.'/classes/'.$className.'.php'); } if (!file_exists($ROOT_PATH.'/config/settings.inc.php')) { echo "the setting file can not be found."; exit; } include($ROOT_PATH.'/config/settings.inc.php'); if (!isset($_SERVER['REQUEST_URI']) OR empty($_SERVER['REQUEST_URI'])) { $_SERVER['REQUEST_URI'] = $_SERVER['SCRIPT_NAME']; if (isset($_SERVER['QUERY_STRING']) AND !empty($_SERVER['QUERY_STRING'])) $_SERVER['REQUEST_URI'] .= '?'.$_SERVER['QUERY_STRING']; } include($ROOT_PATH.'/config/defines.inc.php'); if (defined('_SESSION_DB_')) include_once($ROOT_PATH.'/classes/TSession.php'); global $defaultCountry; global $clientIP; $clientIP = Tools::getClientIP(); TLanguage::loadLanguages(); $timezone = ""; if (function_exists('date_default_timezone_set')) { $timezone = TDictionary::getInstance()->getValue("SYS_PARAM","","TIME_ZONE","V2"); if ($timezone=="") { $timezone = date_default_timezone_get(); TDictionary::getInstance()->setValue("SYS_PARAM","","TIME_ZONE","V2",$timezone); } date_default_timezone_set($timezone); }