1 Star 0 Fork 88

swqqcs / PESCMS Team

forked from PESCMS / PESCMS Team 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
index.php 821 Bytes
一键复制 编辑 原始数据 按行查看 历史
PESCMS 提交于 2015-07-14 10:29 . 修复无法进入安装页面的问题
<?php
/**
* 项目入口
* @author LuoBoss
* @copyright ©2013-2014 PESCMS
* @license http://www.pescms.com/license
* @version 1.0
*/
define('IS_CGI', (0 === strpos(PHP_SAPI, 'cgi') || false !== strpos(PHP_SAPI, 'fcgi')) ? 1 : 0 );
if (!defined('_PHP_FILE_')) {
if (IS_CGI) {
//CGI/FASTCGI模式下
$_temp = explode('.php', $_SERVER['PHP_SELF']);
define('PHP_FILE', rtrim(str_replace($_SERVER['HTTP_HOST'], '', $_temp[0] . '.php'), '/'));
} else {
define('PHP_FILE', rtrim($_SERVER['SCRIPT_NAME'], '/'));
}
}
if (!defined('DOCUMENT_ROOT')) {
$_root = rtrim(dirname(PHP_FILE), '/');
define('DOCUMENT_ROOT', (($_root == '/' || $_root == '\\') ? '' : $_root));
}
header('Location:'.DOCUMENT_ROOT.'/Install/index.php?g=Install&m=Index&a=index');
1
https://gitee.com/sw1122/PESCMS-Team.git
git@gitee.com:sw1122/PESCMS-Team.git
sw1122
PESCMS-Team
PESCMS Team
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891