加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
index.php 959 Bytes
一键复制 编辑 原始数据 按行查看 历史
husky 提交于 2021-03-27 18:00 . 2021修复
<?php
/**
* @author grysoft <767912290@qq.com>
* @copyright (c) 2016, www.doccms.com, grysoft :)
* May you share freely, never taking more than you give.
*/
session_start();
error_reporting(E_ALL ^ E_NOTICE);
header('Content-Type: text/html; charset=utf-8');
define('THISISADMINI',true);
$dirName=dirname(__FILE__);
define('SITELANGUAGE','cn');
if(empty($_SESSION['doclang'])){
$_SESSION['doclang'] = SITELANGUAGE;
}
if(!empty($_GET['lang']) && in_array($_GET['lang'],array('cn','en'))){
$_SESSION['doclang'] = $_GET['lang'];
}
$docConfigLock = $dirName.'/config/doccms.lock';
$docConfig=$dirName.'/config/doc-config-'.$_SESSION['doclang'].'.php';
if(!is_file($docConfig)||filesize($docConfig)==0||filesize($docConfig)==3||!is_file($docConfigLock)){require_once($dirName.'/inc/nosetup/setup.html');exit;}else{require_once($docConfig);}
require_once(ABSPATH.'/admini/config/qd-config.php');
require_once(ABSPATH.'/loader/load.php');
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化