if (DEBUG_MODE) { define('STARTTIME', microtime()); define('MEMORY_INIT', memory_get_usage()); include ROOT_PATH . 'lib/func/debug.php'; } require ROOT_PATH . 'lib/func/functions.php'; require ROOT_PATH . 'lib/func/functions_ui.php'; require ROOT_PATH . 'lib/class/functions.class.php'; require ROOT_PATH . 'lib/ui.base.php'; require ROOT_PATH . 'lib/templates/template.php'; @(include ROOT_PATH . 'conf/proxy.conf.php'); $_SERVER['HTTP_REFERER'] = hg_clean_value($_SERVER['HTTP_REFERER']); define('REFERRER', $_SERVER['HTTP_REFERER']); $gTpl = new Templates($gProxyConf); if (DEVELOP_MODE) { $gTpl->setTemplateVersion(''); } else { $gTpl->setTemplateVersion(SOFTVAR . '/' . $gGlobalConfig['version']); } $gTpl->addVar('gProxyConf', $gProxyConf); $gCache = new class_functions(); if (DEVELOP_MODE) { } if (defined('WITH_DB') && WITH_DB) { $gDB = hg_checkDB(); } $_INPUT = hg_init_input(); if (!defined('WITHOUT_LOGIN') || !WITHOUT_LOGIN) { include ROOT_PATH . 'lib/session.php'; //用户登录session信息 $session = new Session();