From 47a2c37b37e5e7038f6f68fac383c00f9d5a985e Mon Sep 17 00:00:00 2001 From: xurongyao Date: Sat, 15 Sep 2018 10:17:32 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E5=8A=A8=E5=AE=89=E8=A3=85=E7=9B=AE?= =?UTF-8?q?=E5=BD=95=EF=BC=8C=E6=94=AF=E6=8C=81=E6=A0=B9=E7=9B=AE=E5=BD=95?= =?UTF-8?q?index.php=E8=AE=BF=E9=97=AE=EF=BC=8C=E4=B9=9F=E5=8F=AF=E4=BB=A5?= =?UTF-8?q?=E5=83=8Ftp5=E4=B8=80=E6=A0=B7=E5=8F=AA=E5=AF=B9=E5=A4=96?= =?UTF-8?q?=E5=BC=80=E6=94=BEcrmeb=E4=B8=80=E4=B8=AA=E7=9B=AE=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crmeb/index.php | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 crmeb/index.php diff --git a/crmeb/index.php b/crmeb/index.php new file mode 100644 index 00000000..9593d59d --- /dev/null +++ b/crmeb/index.php @@ -0,0 +1,27 @@ + +// +---------------------------------------------------------------------- + +// 检测PHP环境 +if(version_compare(PHP_VERSION,'5.5.9','<')) die('require PHP > 5.5.9 !'); +//error_reporting(E_ALL ^ E_NOTICE);//显示除去 E_NOTICE 之外的所有错误信息 +error_reporting(E_ERROR | E_WARNING | E_PARSE);//报告运行时错误 +//检测是否已安装CrmEb系统 +if(file_exists("./install/") && !file_exists("./install/install.lock")){ + if($_SERVER['PHP_SELF'] != '/index.php'){ + header("Content-type: text/html; charset=utf-8"); + exit("请在域名根目录下安装,如:
www.xxx.com/index.php 正确
www.xxx.com/www/index.php 错误,域名后面不能圈套目录, 但项目没有根目录存放限制,可以放在任意目录,apache虚拟主机配置一下即可"); + } + header('Location:/install/index.php'); + exit(); +} +// [ 应用入口文件 ] +// 定义应用目录 +define('APP_PATH', __DIR__ . '/../application/'); +// 加载框架引导文件 +require __DIR__ . '/thinkphp/start.php';