2 Star 6 Fork 2

辰辰徐徐 / YouYaX_PHP原创型论坛

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
index.php 1.32 KB
一键复制 编辑 原始数据 按行查看 历史
xujinliang 提交于 2021-12-13 08:50 . 发布源代码
<?php
error_reporting(E_ALL & ~E_NOTICE);
session_start();
header("Content-type: text/html; charset=utf-8");
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);
$_REQUEST = array_map('stripslashes_deep', $_REQUEST);
}
class LOAD
{
static function loadClass($class_name)
{
$filename = "./Lib/" . $class_name . ".php";
if (is_file($filename))
return require($filename);
$filename = "./Plugin/" . $class_name . ".php";
if (is_file($filename))
return require($filename);
}
}
if (!file_exists("./install")) {
require("ORG/YouYa.php");
spl_autoload_register(array(
'LOAD',
'loadClass'
));
App::run();
} else {
$status = file_get_contents("./install/status.txt");
if ($status == "complete") {
require("ORG/YouYa.php");
spl_autoload_register(array(
'LOAD',
'loadClass'
));
App::run();
} else {
echo '<script>window.location.href="./install";</script>';
}
}
?>
1
https://gitee.com/youyax/you-ya-x--php-original-forum.git
git@gitee.com:youyax/you-ya-x--php-original-forum.git
youyax
you-ya-x--php-original-forum
YouYaX_PHP原创型论坛
master

搜索帮助