2 Star 0 Fork 0

musicyinchao / chengjie

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
index.php 1.31 KB
一键复制 编辑 Web IDE 原始数据 按行查看 历史
musicyinchao 提交于 2016-09-17 13:49 . 最新daima
<?php
header("Content-type: text/html; charset=utf-8");
ini_set("session.cookie_domain",'chengjie.com');
if(get_magic_quotes_gpc()){
function stripslashes_deep($value){
$value = is_array($value) ? array_map('stripslashes_deep',$value) : stripslashes($value);
return $value;
}
$_POST = array_map('stripslashes_deep',$_POST);
$_GET = array_map('stripslashes_deep',$_GET);
$_COOKIE = array_map('stripslashes_deep',$_COOKIE);
}
define('APP_NAME', 'cms'); //项目名称
define('APP_PATH','./cms/'); //项目目录
define('CONF_PATH','./conf/'); //配置文件地址
define('RUNTIME_PATH','./runtime/'); //缓存文件地址
define('TMPL_PATH','./tpl/'); //模板目录
define('APP_DEBUG',false); //开启DEBUG
define('MEMORY_LIMIT_ON',function_exists('memory_get_usage'));
$runtime = '~Index_runtime.php';
if($_SERVER['SERVER_NAME'] == 'dk.chengjie.com' && empty($_GET['g'])){
header("Location:http://dk.chengjie.com");
//$_GET['g'] = 'Loansys';
//$runtime = '~Loansys_runtime.php';
}
if($_SERVER['SERVER_NAME'] == 'zb.chengjie.com' && empty($_GET['g'])){
$_GET['c'] = 'Videosale';
$runtime = '~Videosale_runtime.php';
}
define('RUNTIME_FILE',RUNTIME_PATH.$runtime);
if(!APP_DEBUG && is_file(RUNTIME_FILE)){
require RUNTIME_FILE;
}else{
define('THINK_PATH', dirname(__FILE__).'/core/');
require THINK_PATH.'Common/runtime.php';
}
?>
PHP
1
https://gitee.com/yinchaomusic/chengjie.git
git@gitee.com:yinchaomusic/chengjie.git
yinchaomusic
chengjie
chengjie
master

搜索帮助

14c37bed 8189591 565d56ea 8189591