From 8be96902e0b83bad532b2be94ba24d51d1a8699c Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Sat, 9 Apr 2016 08:33:46 +0000 Subject: [PATCH] Open latest release folder by default --- website/download.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/website/download.php b/website/download.php index c9c369cd..28b777bc 100644 --- a/website/download.php +++ b/website/download.php @@ -5,7 +5,7 @@ $type = $_GET['type']; $root = 'https://downloads.sourceforge.net/project/filebot/filebot/'; $folder = $root.'FileBot_'.$version; -$file = 'undefined'; +$file = ''; if ($type == 'nsis') { $folder = $root.'LATEST'; @@ -13,17 +13,17 @@ if ($type == 'nsis') { } else if ($type == 'jar') { $folder = $root.'HEAD'; $file = 'FileBot.jar'; -} else if ($type == 'msi') +} else if ($type == 'msi') { $file = 'FileBot_'.$version.'_'.$arch.'.msi'; -else if ($type == 'deb') +} else if ($type == 'deb') { $file = 'filebot_'.$version.'_'.$arch.'.deb'; -else if ($type == 'app') +} else if ($type == 'app') { $file = 'FileBot_'.$version.'-brew.tar.bz2'; -else if ($type == 'portable') +} else if ($type == 'portable') { $file = 'FileBot_'.$version.'-portable.zip'; -else if ($type == 'ipkg') +} else if ($type == 'ipkg') { $file = 'filebot_'.$version.'_noarch.ipk'; - +} header('HTTP/1.1 302 Found'); header('Location: '.$folder.'/'.$file);