2 Star 0 Fork 0

斗笔1号 / jzcc

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
index.php 1.46 KB
一键复制 编辑 原始数据 按行查看 历史
<?php
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);
}
// 打开/关闭调试模式
$AppDebug = true;
define('SITE_PATH', dirname(__file__) . "/");
define('APP_PATH', SITE_PATH . 'application/');
define('SPAPP_PATH', SITE_PATH . 'simplewind/');
define('SPAPP', './application/');
define('SPSTATIC', SITE_PATH . 'statics/');
define("RUNTIME_PATH", SITE_PATH . "data/runtime/");
define("HTML_PATH", SITE_PATH . "data/runtime/Html/");
define("SIMPLEWIND_CMF_VERSION", '2.1.1');
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("data/install.lock"))
{
// 修复安装后不能进入前台的BUG,安装过程不生成"common~runtime.php"文件
$AppDebug = true;
if (strtolower($_GET['g']) != "install")
{
header("Location:./index.php?g=install");
exit();
}
}
}
define("APP_DEBUG", $AppDebug);
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';
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/lingzimaike/jzcc.git
git@gitee.com:lingzimaike/jzcc.git
lingzimaike
jzcc
jzcc
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891