mirror of
https://github.com/mitb-archive/filebot
synced 2025-01-11 05:48:01 -05:00
Open latest release folder by default
This commit is contained in:
parent
7da65de0c0
commit
8be96902e0
@ -5,7 +5,7 @@ $type = $_GET['type'];
|
|||||||
|
|
||||||
$root = 'https://downloads.sourceforge.net/project/filebot/filebot/';
|
$root = 'https://downloads.sourceforge.net/project/filebot/filebot/';
|
||||||
$folder = $root.'FileBot_'.$version;
|
$folder = $root.'FileBot_'.$version;
|
||||||
$file = 'undefined';
|
$file = '';
|
||||||
|
|
||||||
if ($type == 'nsis') {
|
if ($type == 'nsis') {
|
||||||
$folder = $root.'LATEST';
|
$folder = $root.'LATEST';
|
||||||
@ -13,17 +13,17 @@ if ($type == 'nsis') {
|
|||||||
} else if ($type == 'jar') {
|
} else if ($type == 'jar') {
|
||||||
$folder = $root.'HEAD';
|
$folder = $root.'HEAD';
|
||||||
$file = 'FileBot.jar';
|
$file = 'FileBot.jar';
|
||||||
} else if ($type == 'msi')
|
} else if ($type == 'msi') {
|
||||||
$file = 'FileBot_'.$version.'_'.$arch.'.msi';
|
$file = 'FileBot_'.$version.'_'.$arch.'.msi';
|
||||||
else if ($type == 'deb')
|
} else if ($type == 'deb') {
|
||||||
$file = 'filebot_'.$version.'_'.$arch.'.deb';
|
$file = 'filebot_'.$version.'_'.$arch.'.deb';
|
||||||
else if ($type == 'app')
|
} else if ($type == 'app') {
|
||||||
$file = 'FileBot_'.$version.'-brew.tar.bz2';
|
$file = 'FileBot_'.$version.'-brew.tar.bz2';
|
||||||
else if ($type == 'portable')
|
} else if ($type == 'portable') {
|
||||||
$file = 'FileBot_'.$version.'-portable.zip';
|
$file = 'FileBot_'.$version.'-portable.zip';
|
||||||
else if ($type == 'ipkg')
|
} else if ($type == 'ipkg') {
|
||||||
$file = 'filebot_'.$version.'_noarch.ipk';
|
$file = 'filebot_'.$version.'_noarch.ipk';
|
||||||
|
}
|
||||||
|
|
||||||
header('HTTP/1.1 302 Found');
|
header('HTTP/1.1 302 Found');
|
||||||
header('Location: '.$folder.'/'.$file);
|
header('Location: '.$folder.'/'.$file);
|
||||||
|
Loading…
Reference in New Issue
Block a user