1 Star 0 Fork 0

PeterChen / SchoolWeb

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
addon.php 1.38 KB
一键复制 编辑 原始数据 按行查看 历史
PeterChen 提交于 2017-02-13 00:06 . 学校网站测试版本
<?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>
// +----------------------------------------------------------------------
// 应用入口文件
// WEB_ROOT和URL_ROOT 常量
define("WEB_ROOT",substr($_SERVER['SCRIPT_FILENAME'],0,strrpos($_SERVER['SCRIPT_FILENAME'],'/')));
define("URL_ROOT",substr($_SERVER['SCRIPT_NAME'],0,strrpos($_SERVER['SCRIPT_NAME'],'/')));
define("HTTP_HOST",$_SERVER['HTTP_HOST']);
define('IS_ADDON',true);
define("PUBLIC_ADDONS",URL_ROOT . '/Public/Addons');
// 检测PHP环境
if(version_compare(PHP_VERSION,'5.3.0','<')) die('require PHP > 5.3.0 !');
// 开启调试模式 建议开发阶段开启 部署阶段注释或者设为false
define('APP_DEBUG',True);
// 定义应用目录
define('APP_PATH','./Addons/'); // 不要修改
require './Application/Common/Common/function.php';
// 引入ThinkPHP入口文件
require './ThinkPHP/ThinkPHP.php';
// 亲^_^ 后面不需要任何代码了 就是如此简单
PHP
1
https://gitee.com/peterccc/SchoolWeb.git
git@gitee.com:peterccc/SchoolWeb.git
peterccc
SchoolWeb
SchoolWeb
master

搜索帮助