From e4958fa2520cac6a38f59e4df8838aaac07aabfb Mon Sep 17 00:00:00 2001
From: liaofei <136327134@qq.com>
Date: Wed, 28 Aug 2019 14:40:46 +0800
Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A42.6=E7=89=88=E6=9C=AC?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
index.php | 31 -------------------------------
1 file changed, 31 deletions(-)
delete mode 100644 index.php
diff --git a/index.php b/index.php
deleted file mode 100644
index 0ef2eeef..00000000
--- a/index.php
+++ /dev/null
@@ -1,31 +0,0 @@
-
-// +----------------------------------------------------------------------
-
-// 检测PHP环境
-if(version_compare(PHP_VERSION,'7.0.0','<')) die('require PHP > 7.0.0 !');
-//error_reporting(E_ALL ^ E_NOTICE);//显示除去 E_NOTICE 之外的所有错误信息
-error_reporting(E_ERROR | E_WARNING | E_PARSE);//报告运行时错误
-//检测是否已安装CrmEb系统
-if(file_exists("./public/install/") && !file_exists("./public/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:/public/install/index.php');
- exit();
-}
-// [ 应用入口文件 ]
-// 定义应用目录
-define('APP_PATH', __DIR__ . '/application/');
-//静态文件目录
-define('PUBILC_PATH', '/public/');
-//上传文件目录
-define('UPLOAD_PATH', 'public/uploads');
-// 加载框架引导文件
-require __DIR__ . '/thinkphp/start.php';