Upload via GUI (32 Dateien)

This commit is contained in:
2026-11-01 11:17:07 +00:00
parent e1c6f8dfca
commit 53f8bf0577
7 changed files with 626 additions and 491 deletions
+3 -2
View File
@@ -29,9 +29,10 @@ if (($_GET['download'] ?? '') !== '1') {
exit;
}
$filename = ['android' => 'DeskHub.apk', 'windows' => 'DeskHub-Setup.exe', 'minecraft' => 'DeskHub-Minecraft.jar'][$platform];
$kind = site_app_platforms()[$platform];
$filename = $kind['file'];
while (ob_get_level() > 0) @ob_end_clean();
header('Content-Type: ' . ['android' => 'application/vnd.android.package-archive', 'windows' => 'application/vnd.microsoft.portable-executable', 'minecraft' => 'application/java-archive'][$platform]);
header('Content-Type: ' . $kind['mime']);
header('Content-Disposition: attachment; filename="' . $filename . '"');
header('Content-Length: ' . filesize($path));
header('X-Content-Type-Options: nosniff');