1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-12-24 08:48:51 -05:00

// redirect to latest release folder by default

This commit is contained in:
Reinhard Pointner 2016-04-11 22:06:38 +00:00
parent c6a851d251
commit cf01fcf9e9

View File

@ -1,5 +1,5 @@
<?php <?php
$version = isset($_GET['version']) ? $_GET['version'] : '@{version}'; // default version is hard-coded via deployment script $version = isset($_GET['version']) ? $_GET['version'] : '@{version}'; // default version is hard-coded via deployment script
$arch = $_GET['arch']; $arch = $_GET['arch'];
$type = $_GET['type']; $type = $_GET['type'];
@ -23,6 +23,8 @@ if ($type == 'nsis') {
$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';
} else {
$folder = 'https://sourceforge.net/projects/filebot/files/filebot/FileBot_'.$version.'/'; // redirect to latest release folder by default
} }
header('HTTP/1.1 302 Found'); header('HTTP/1.1 302 Found');