|
|
@@ -109,10 +109,14 @@ if (!isset($needFilter)) { |
|
|
|
$registerGlobals = @ini_get("register_globals"); |
|
|
|
$isUrlOpen = @ini_get("allow_url_fopen"); |
|
|
|
//系统配置参数 |
|
|
|
if (!file_exists(DEDEDATA."/config.cache.inc.php")) { |
|
|
|
if (!file_exists(DEDEDATA."/config.cache.inc.php") && !defined('DEDE_CLITOOLS')) { |
|
|
|
die('DedeBIZ初始化失败,确保系统正确被安装'); |
|
|
|
} |
|
|
|
require_once(DEDEDATA."/config.cache.inc.php"); |
|
|
|
|
|
|
|
if (file_exists(DEDEDATA."/config.cache.inc.php")) { |
|
|
|
require_once(DEDEDATA."/config.cache.inc.php"); |
|
|
|
} |
|
|
|
|
|
|
|
//Session保存路径 |
|
|
|
$sessSaveHandler = @ini_get("session.save_handler"); |
|
|
|
if ($sessSaveHandler !== "files") { |
|
|
@@ -154,6 +158,7 @@ if (PHP_SAPI === 'cli') { |
|
|
|
} else { |
|
|
|
$cfg_clihost = 'http://'.$_SERVER['HTTP_HOST']; |
|
|
|
} |
|
|
|
|
|
|
|
if (!isset($cfg_cmspath)) { |
|
|
|
$cfg_cmspath = ""; |
|
|
|
} |
|
|
|