换成php7.4修复警告
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
<?php
|
||||
ini_set('memory_limit', '-1'); //不限制内存
|
||||
date_default_timezone_set('Asia/Shanghai'); //中国时间
|
||||
header("Content-Type: text/html; charset=gbk");//输出编码
|
||||
ini_set('memory_limit', '-1'); //<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڴ<EFBFBD>
|
||||
date_default_timezone_set('Asia/Shanghai'); //<EFBFBD>й<EFBFBD>ʱ<EFBFBD><EFBFBD>
|
||||
header("Content-Type: text/html; charset=gbk");//<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
include_once("config.php");
|
||||
function config(){
|
||||
$WebUrl = $_SERVER['HTTP_HOST'];
|
||||
$FileName = $_SERVER['PHP_SELF'];
|
||||
$Folders = count(explode('/', $FileName));
|
||||
$Folder = '';
|
||||
if($Folders > 2){
|
||||
for($i=3;$i<=$Folders;$i++){
|
||||
$Folder.="../";
|
||||
@@ -44,8 +45,8 @@ function config(){
|
||||
));
|
||||
}
|
||||
$GG=array_merge(array_change_key_case($_GET,CASE_LOWER),$_POST,config());
|
||||
function __autoload($class_name){
|
||||
spl_autoload_register(function($class_name){
|
||||
global $GG;
|
||||
include($GG['Config']['Folder']."../class/".$class_name.".php");
|
||||
}
|
||||
});
|
||||
?>
|
||||
Reference in New Issue
Block a user