Upload via GUI (32 Dateien)
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user