= 1073741824) { return number_format($bytes / 1073741824, 2) . ' GB'; } elseif ($bytes >= 1048576) { return number_format($bytes / 1048576, 2) . ' MB'; } elseif ($bytes >= 1024) { return number_format($bytes / 1024, 2) . ' KB'; } else { return $bytes . ' B'; } } function badgeClass($ext) { $map = [ 'pdf' => 'pdf', 'zip' => 'zip', 'rar' => 'zip', '7z' => 'zip', 'jpg' => 'image', 'jpeg'=> 'image', 'png' => 'image', 'webp'=> 'image', 'gif' => 'image', 'doc' => 'doc', 'docx'=> 'doc', 'xls' => 'excel', 'xlsx'=> 'excel', 'sql' => 'sql', 'txt' => 'txt' ]; return $map[$ext] ?? 'default'; } ?> File Explorer
File Explorer
Name
Type
Size
Action
← Parent Directory
Back
'; } ?>
📁
Open Download