Metrics
0
Watch 525 Star 2.7K Fork 848

GVP众邦科技 / CRMEB打通版PHPGPL-3.0

Sign up for free
Explore and code with more than 2 million developers,Free private repositories !:)
Sign up
微信公众号和小程序商城数据同步,带积分、优惠券、秒杀、会员等级、分销等功能,前后端全部开源,更是一套方便二次开发的框架。官网地址:http://www.crmeb.com spread retract

  • JavaScript 49.6%
  • PHP 25.5%
  • Limbo 7.8%
  • CSS 7.0%
  • HTML 5.2%
  • Other 4.9%
Clone or download
index.php 1.51 KB
Copy Edit Web IDE Raw Blame History
聆听 authored 2018-11-02 21:28 . 更新 index.php
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Author: honor <rongyao_xu@163.com>
// +----------------------------------------------------------------------
// 检测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("./public/install/") && !file_exists("./public/install/install.lock")){
if($_SERVER['PHP_SELF'] != '/index.php'){
header("Content-type: text/html; charset=utf-8");
exit("请在域名根目录下安装,如:<br/> www.xxx.com/index.php 正确 <br/> 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';

Comment ( 0 )

You need to Sign in for post a comment

Help Search