2 Star 1 Fork 1

xoppp / sdcms

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
index.php 1.33 KB
一键复制 编辑 原始数据 按行查看 历史
xoppp 提交于 2014-11-11 09:49 . 'init'
<?php
/**
* 项目入口文件
* Some rights reserved:www.simplewind.net
*/
if (ini_get('magic_quotes_gpc')) {
function stripslashesRecursive(array $array){
foreach ($array as $k => $v) {
if (is_string($v)){
$array[$k] = stripslashes($v);
} else if (is_array($v)){
$array[$k] = stripslashesRecursive($v);
}
}
return $array;
}
$_GET = stripslashesRecursive($_GET);
$_POST = stripslashesRecursive($_POST);
}
//开启调试模式
define("APP_DEBUG", true);
//网站当前路径
define('SITE_PATH', getcwd());
//项目路径,不可更改
define('APP_PATH', SITE_PATH . '/application/');
//项目相对路径,不可更改
define('SPAPP_PATH', SITE_PATH.'/simplewind/');
/* //公共模块路径
define('COMMON_PATH', "./".SPAPP_PATH ); */
//
define('SPAPP', 'application/');
//项目资源目录,不可更改
define('SPSTATIC', 'statics/');
//定义缓存存放路径
define("RUNTIME_PATH", SITE_PATH . "/data/runtime/");
//版本号
define("SIMPLEWIND_CMF_VERSION", 'X1.1.0');
if(function_exists('saeAutoLoader') || isset($_SERVER['HTTP_BAE_ENV_APPID'])){
}else{
if(file_exists("install") && !file_exists("install/install.lock")){
header("Location:./install");
exit();
}
}
//载入框架核心文件
define('THINK_PATH',SPAPP_PATH.'Core/');
define('ENGINE_NAME','cluster');
require THINK_PATH.'ThinkPHP.php';
?>
PHP
1
https://gitee.com/xob/sdcms.git
git@gitee.com:xob/sdcms.git
xob
sdcms
sdcms
master

搜索帮助