支持php8,修复部分bug

pull/18/head
icret 2021-03-28 20:01:59 +08:00
parent b014ced384
commit 6f53449b4b
4 changed files with 2 additions and 63 deletions

View File

@ -1,29 +0,0 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title>404</title>
<style>
body{
background-color:#444;
font-size:14px;
}
h3{
font-size:60px;
color:#eee;
text-align:center;
padding-top:30px;
font-weight:normal;
}
</style>
</head>
<body>
<h3>404您请求的文件不存在!</h3>
<script>
setTimeout("javascript:location.href='https://img.545141.com/?i1'", 1000);
</script>
</body>
</html>

View File

@ -0,0 +1 @@
Picture upload directory, can be deleted.

View File

@ -133,5 +133,4 @@ function getExtensions(){
} }
return rtrim($mime,','); return rtrim($mime,',');
} }
$qqgroup = ' <a target="_blank" href="https://mail.qq.com/cgi-bin/qm_share?t=qm_mailme&amp;email=cR0UHB4fGBwxAABfEh4c" style="text-decoration:none;"><img src="/i/2019/07/19/qsrw7.png" alt="EasyImage 简单图床图片举报" title="EasyImage 简单图床图片举报"></a> <a target="_blank" href="//shang.qq.com/wpa/qunwpa?idkey=3feb4e8be8f1839f71e53bf2e876de36afc6889b2630c33c877d8df5a5583a6f"><img border="0" src="//pub.idqqimg.com/wpa/images/group.png" alt="EasyImage 简单图床加入QQ群" title="EasyImage 简单图床加入QQ群"></a>';
//$qqgroup = ' <a target="_blank" href="//shang.qq.com/wpa/qunwpa?idkey=3feb4e8be8f1839f71e53bf2e876de36afc6889b2630c33c877d8df5a5583a6f"><img border="0" src="//pub.idqqimg.com/wpa/images/group.png" alt="EasyImage 简单图床" title="EasyImage 简单图床"></a>';

View File

@ -1,32 +0,0 @@
<?php
//递归函数实现遍历指定文件下的目录与文件数量
function total($dirname,&$dirnum,&$filenum){
$dir=opendir($dirname);
echo readdir($dir); //读取当前目录文件
echo readdir($dir); //读取上级目录文件
while($filename=readdir($dir)){
//要判断的是$dirname下的路径是否是目录
$newfile=$dirname."/".$filename;
//is_dir()函数判断的是当前脚本的路径是不是目录
if(is_dir($newfile)){
//通过递归函数再遍历其子目录下的目录或文件
total($newfile,$dirnum,$filenum);
$dirnum++;
}else{
$filenum++;
}
}
closedir($dir);
}
total("D:\phpStudy2018\PHPTutorial\WWW\EasyImages2.0\i",$dirnum,$filenum);
echo "目录总数:".$dirnum."<br>";
echo "文件总数:".$filenum."<br>";
//遍历指定文件目录与文件数量结束
function upTime($day = '2018-08-03'){
return 1 + ceil((time()-strtotime($day))/60/60/24);//现在的时间减去过去指定日期ceil()进一函数
}
echo '网站已经正常运行'.upTime().'天';