Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
Clone or download
index.php 1.22 KB
Copy Edit Web IDE Raw Blame History
水平凡 authored 2015-03-20 11:57 . demo
<?php
// +----------------------------------------------------------------------
// | ShuipFCMS
// +----------------------------------------------------------------------
// | Copyright (c) 2012-2015 http://www.shuipfcms.com, All rights reserved.
// +----------------------------------------------------------------------
// | Author: 水平凡 <admin@abc3210.com>
// +----------------------------------------------------------------------
// 检测PHP环境
if (version_compare(PHP_VERSION, '5.3.0', '<')) {
header("Content-type: text/html; charset=utf-8");
die('PHP环境不支持,使用本系统需要 PHP > 5.3.0 版本才可以~ !');
}
//当前目录路径
define('SITE_PATH', getcwd() . '/');
//项目路径
define('PROJECT_PATH', SITE_PATH . 'shuipf/');
// 开启调试模式 建议开发阶段开启 部署阶段注释或者设为false
define('APP_DEBUG', false);
// 应用公共目录
define('COMMON_PATH', PROJECT_PATH . 'Common/');
// 定义应用目录
define('APP_PATH', PROJECT_PATH . 'Application/');
//应用运行缓存目录
define("RUNTIME_PATH", SITE_PATH . "#runtime/");
//模板存放路径
define('TEMPLATE_PATH', PROJECT_PATH . 'Template/');
// 引入ThinkPHP入口文件
require PROJECT_PATH . 'Core/ThinkPHP.php';

Comment ( 0 )

Sign in for post a comment