移动安装目录,支持根目录index.php访问,也可以像tp5一样只对外开放crmeb一个目录

This commit is contained in:
xurongyao 2018-09-15 10:52:22 +08:00
parent 2e01dda31c
commit 19d9b5c102

View File

@ -27,7 +27,7 @@ define("CRMEB_VERSION", '20180601');
date_default_timezone_set('PRC');
error_reporting(E_ALL & ~E_NOTICE);
header('Content-Type: text/html; charset=UTF-8');
define('SITEDIR', _dir_path(substr(dirname(__FILE__), 0, -8)));
define('SITEDIR', _dir_path(substr(dirname(__FILE__), 0, -14)));
//define('SITEDIR2', substr(SITEDIR,0,-7));
//echo SITEDIR2;
//exit;