} } return true; } /** $checker = init_checker(); if (!$checker) die("domain not authorized"); **/ $sys_config = (require APP_ROOT_PATH . 'system/config.php'); function app_conf($name) { return stripslashes($GLOBALS['sys_config'][$name]); } require APP_ROOT_PATH . 'system/cache/Cache.php'; $cache = CacheService::getInstance(); require_once APP_ROOT_PATH . "system/cache/CacheFileService.php"; $fcache = new CacheFileService(); $fcache->set_dir(APP_ROOT_PATH . "public/runtime/data/"); require APP_ROOT_PATH . 'system/db/db.php'; define('DB_PREFIX', app_conf('DB_PREFIX')); if (!file_exists(APP_ROOT_PATH . 'public/runtime/app/db_caches/')) { mkdir(APP_ROOT_PATH . 'public/runtime/app/db_caches/', 0777); } $pconnect = false; $db = new mysql_db(app_conf('DB_HOST') . ":" . app_conf('DB_PORT'), app_conf('DB_USER'), app_conf('DB_PWD'), app_conf('DB_NAME'), 'utf8', $pconnect); require APP_ROOT_PATH . 'system/template/template.php'; if (!file_exists(APP_ROOT_PATH . 'public/runtime/app/tpl_caches/')) { mkdir(APP_ROOT_PATH . 'public/runtime/app/tpl_caches/', 0777); } if (!file_exists(APP_ROOT_PATH . 'public/runtime/app/tpl_compiled/')) {