diff --git a/_config.php b/_config.php new file mode 100644 index 0000000..3f18689 --- /dev/null +++ b/_config.php @@ -0,0 +1,8 @@ + "http://cdn.get-popcorn.com/build/Popcorn-Time-0.2.8.2-Mac.tar.gz", + "win32" => "http://cdn.get-popcorn.com/build/Popcorn-Time-0.2.8.2-Win32.zip", + "linux32" => "http://cdn.get-popcorn.com/build/Popcorn-Time-0.2.8.2-Linux-32.tar.gz", + "linux64" => "http://cdn.get-popcorn.com/build/Popcorn-Time-0.2.8.2-Linux-64.tar.gz" + ); \ No newline at end of file diff --git a/download.php b/download.php new file mode 100644 index 0000000..89c85d3 --- /dev/null +++ b/download.php @@ -0,0 +1,364 @@ + "http://cdn.get-popcorn.com/build/Popcorn-Time-0.2.8.2-Mac.tar.gz", + "win32" => "http://cdn.get-popcorn.com/build/Popcorn-Time-0.2.8.2-Win32.zip", + "linux32" => "http://cdn.get-popcorn.com/build/Popcorn-Time-0.2.8.2-Linux-32.tar.gz", + "linux64" => "http://cdn.get-popcorn.com/build/Popcorn-Time-0.2.8.2-Linux-64.tar.gz" + ); + + if (isset($_GET['os'])) { + + if (isset($releases[$_GET['os']])) { + $download_file = $releases[$_GET['os']]; + } else { + header("Location: /"); + die(); + } + } else { + header("Location: /"); + die(); + } +?> + + +
+ + + + + + + ++ Your download is about to start. Click here if your download didn't start +
+ ++ + + + +