php think cmf,thinkphp cmf代码
無(wú)詳細(xì)內(nèi)容 無(wú) ?php/** * 項(xiàng)目入口文件 * 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);}
$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);
}
//開(kāi)啟調(diào)試模式
define("APP_DEBUG", true);
//網(wǎng)站當(dāng)前路徑
define('SITE_PATH', dirname(__FILE__)."/");
//項(xiàng)目路徑,不可更改
define('APP_PATH', SITE_PATH . 'application/');
//項(xiàng)目相對(duì)路徑,不可更改
define('SPAPP_PATH', SITE_PATH.'simplewind/');
//
define('SPAPP', './application/');
//項(xiàng)目資源目錄,不可更改
define('SPSTATIC', SITE_PATH.'statics/');
//定義緩存存放路徑
define("RUNTIME_PATH", SITE_PATH . "/data/runtime/");
//靜態(tài)緩存目錄
define("HTML_PATH", SITE_PATH . "/data/runtime/Html/");
//版本號(hào)
define("SIMPLEWIND_CMF_VERSION", 'X1.6.0');
define("THINKCMF_CORE_TAGLIBS", 'cx,Common\Lib\Taglib\TagLibSpadmin,Common\Lib\Taglib\TagLibHome');
if(function_exists('saeAutoLoader') || isset($_SERVER['HTTP_BAE_ENV_APPID'])){
}else{
if(file_exists("install") && !file_exists("install/install.lock")){
header("Location:./install");
exit();
}
}
//uc client root
define("UC_CLIENT_ROOT", './api/uc_client/');
if(file_exists(UC_CLIENT_ROOT."config.inc.php")){
include UC_CLIENT_ROOT."config.inc.php";
}
//載入框架核心文件
require SPAPP_PATH.'Core/ThinkPHP.php';
本文原創(chuàng)發(fā)布php中文網(wǎng),轉(zhuǎn)載請(qǐng)注明出處,感謝您的尊重!
總結(jié)
以上是生活随笔為你收集整理的php think cmf,thinkphp cmf代码的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 模拟人生4秘籍用不了怎么办(MuMu模拟
- 下一篇: 256g内存有多大