增加统计项目

This commit is contained in:
巴掌 committed 2020-12-18 12:19:33 +08:00
1 parent 98e15deeac
commit 0b926d92fc
21 files changed
+686 -167

No files matched your search

-8
View File
@@ -188,11 +188,3 @@
$check = $md5->check($inputPassword, $serverPassword);
return $check;
}
// 文件大小
function format_bytes($size, $delimiter = '') {
$units = array('B', 'KB', 'MB', 'GB', 'TB', 'PB');
for ($i = 0; $size >= 1024 && $i < 5; $i++) $size /= 1024;
return round($size, 2) . $delimiter . $units[$i];
}