1 Star 0 Fork 1

罐头里的咸鱼/tpt-blog

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
index.php 1.17 KB
一键复制 编辑 原始数据 按行查看 历史
罐头里的咸鱼 提交于 2018-03-03 14:25 . first comit
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2014 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
// 应用入口文件
// 安装完成后请删除此代码
if(!is_file('./Application/Install/Data/install.lock')){
header('Location: ./install.php');
exit;
}
// 检测PHP环境
if(version_compare(PHP_VERSION,'5.3.0','<')) die('require PHP > 5.3.0 !');
// 开启调试模式 建议开发阶段开启 部署阶段注释或者设为false
define('APP_DEBUG',True);
// 定义应用目录
define('APP_PATH','./Application/');
define('BIND_MODULE', 'Home');
// 定义缓存目录
define('RUNTIME_PATH','./Runtime/');
// 引入ThinkPHP入口文件
require './ThinkPHP/ThinkPHP.php';
// 亲^_^ 后面不需要任何代码了 就是如此简单
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xker/tpt-blog.git
git@gitee.com:xker/tpt-blog.git
xker
tpt-blog
tpt-blog
master

搜索帮助