mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-01-18 13:28:15 +00:00
移动安装目录,支持根目录index.php访问,也可以像tp5一样只对外开放crmeb一个目录
This commit is contained in:
parent
92c3a73c6d
commit
983eb32239
@ -27,9 +27,10 @@ define("CRMEB_VERSION", '20180601');
|
|||||||
date_default_timezone_set('PRC');
|
date_default_timezone_set('PRC');
|
||||||
error_reporting(E_ALL & ~E_NOTICE);
|
error_reporting(E_ALL & ~E_NOTICE);
|
||||||
header('Content-Type: text/html; charset=UTF-8');
|
header('Content-Type: text/html; charset=UTF-8');
|
||||||
define('SITEDIR', _dir_path(substr(dirname(__FILE__), 0, -14)));
|
define('SITEDIR', _dir_path(substr(dirname(__FILE__), 0, -14)));//入口文件目录
|
||||||
|
define('CRMEBDIR', _dir_path(substr(dirname(__FILE__), 0, -8)));//项目目录
|
||||||
//define('SITEDIR2', substr(SITEDIR,0,-7));
|
//define('SITEDIR2', substr(SITEDIR,0,-7));
|
||||||
echo SITEDIR;
|
//echo SITEDIR;
|
||||||
//exit;SITEDIR
|
//exit;SITEDIR
|
||||||
//数据库
|
//数据库
|
||||||
$sqlFile = 'crmeb.sql';
|
$sqlFile = 'crmeb.sql';
|
||||||
|
|||||||
@ -82,7 +82,7 @@
|
|||||||
</tr>
|
</tr>
|
||||||
<?php
|
<?php
|
||||||
foreach($folder as $dir){
|
foreach($folder as $dir){
|
||||||
$Testdir = SITEDIR.$dir;
|
$Testdir = CRMEBDIR.$dir;
|
||||||
echo $Testdir."<br/>";
|
echo $Testdir."<br/>";
|
||||||
//dir_create($Testdir);
|
//dir_create($Testdir);
|
||||||
if(TestWrite($Testdir)){
|
if(TestWrite($Testdir)){
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user