Rumah > php教程 > php手册 > thinkphp cmf代码

thinkphp cmf代码

WBOY
Lepaskan: 2016-06-06 19:38:01
asal
2204 orang telah melayarinya

无详细内容 无 ?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);}

<?php

/**
 * 项目入口文件
 * Some rights reserved:www.simplewind.net
 */
if (ini_get(&#39;magic_quotes_gpc&#39;)) {
	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(&#39;SITE_PATH&#39;, dirname(__FILE__)."/");
//项目路径,不可更改
define(&#39;APP_PATH&#39;, SITE_PATH . &#39;application/&#39;);
//项目相对路径,不可更改
define(&#39;SPAPP_PATH&#39;,   SITE_PATH.&#39;simplewind/&#39;);
//
define(&#39;SPAPP&#39;,   &#39;./application/&#39;);
//项目资源目录,不可更改
define(&#39;SPSTATIC&#39;,   SITE_PATH.&#39;statics/&#39;);
//定义缓存存放路径
define("RUNTIME_PATH", SITE_PATH . "/data/runtime/");
//静态缓存目录
define("HTML_PATH", SITE_PATH . "/data/runtime/Html/");
//版本号
define("SIMPLEWIND_CMF_VERSION", &#39;X1.6.0&#39;);

define("THINKCMF_CORE_TAGLIBS", &#39;cx,Common\Lib\Taglib\TagLibSpadmin,Common\Lib\Taglib\TagLibHome&#39;);

if(function_exists(&#39;saeAutoLoader&#39;) || isset($_SERVER[&#39;HTTP_BAE_ENV_APPID&#39;])){
	
}else{
	if(file_exists("install") && !file_exists("install/install.lock")){
		header("Location:./install");
		exit();
	}
}
//uc client root
define("UC_CLIENT_ROOT", &#39;./api/uc_client/&#39;);

if(file_exists(UC_CLIENT_ROOT."config.inc.php")){
	include UC_CLIENT_ROOT."config.inc.php";
}

//载入框架核心文件
require SPAPP_PATH.&#39;Core/ThinkPHP.php&#39;;

Salin selepas log masuk
sumber:php.cn
Kenyataan Laman Web ini
Kandungan artikel ini disumbangkan secara sukarela oleh netizen, dan hak cipta adalah milik pengarang asal. Laman web ini tidak memikul tanggungjawab undang-undang yang sepadan. Jika anda menemui sebarang kandungan yang disyaki plagiarisme atau pelanggaran, sila hubungi admin@php.cn
Cadangan popular
Tutorial Popular
Lagi>
Muat turun terkini
Lagi>
kesan web
Kod sumber laman web
Bahan laman web
Templat hujung hadapan