pidgin/old.pidgin.im

Move the aspell download redirects to the bottom since they're less likely to be hit.
--- a/htdocs/win32/download_redir.php Wed Sep 19 21:34:00 2012 +0100
+++ b/htdocs/win32/download_redir.php Wed Sep 19 21:35:32 2012 +0100
@@ -2,7 +2,32 @@
if (isset($_GET['dl_pkg'])) {
$dl_pkg = $_GET['dl_pkg'];
- if ($dl_pkg == 'aspell_core') {
+ if ($dl_pkg == 'gtk') {
+ $fwd_url = 'http://downloads.sourceforge.net/project/pidgin/GTK%2B%20for%20Windows/' . $_GET['gtk_version'] . '/gtk-runtime-' . $_GET['gtk_version'] . '.zip';
+ } else if ($dl_pkg == 'gtk_sha1sum') {
+ if ($_GET['gtk_version'] == '2.6.16.0') {
+ $body = '253fc4da13fced9c5534d9896c9e43147f41035d';
+ } else if ($_GET['gtk_version'] == '2.6.16.1') {
+ //TODO: $body = '5bf4f6903623d7b2fa2835821ccfdee8c685cbe0';
+ }
+ } else if ($dl_pkg == 'dbgsym') {
+ $fwd_url = 'http://downloads.sourceforge.net/project/pidgin/Pidgin/' . $_GET['version'] . '/pidgin-' . $_GET['version'] . '-dbgsym.zip';
+ } else if ($dl_pkg == 'dbgsym_sha1sum') {
+ if ($_GET['version'] == '2.10.6') {
+ $body = '37bad002895ac2d229a24a7ee154e6140c35034c';
+ }
+ } else if ($dl_pkg == 'oo_dict') {
+ $lang = $_GET['lang'];
+ $lang_file = $_GET['lang_file'];
+ //Temporarily forward to a mirror that's still up - later we can do something better
+ $base_urls = array('http://download.services.openoffice.org/files/contrib/dictionaries/'
+ //'http://mirror.sit.wisc.edu/pub/openoffice/contrib/dictionaries/',
+ //'http://ftp.ntu.edu.tw/ftp/OpenOffice/contrib/dictionaries/',
+ //'http://ftp.sunet.se/pub/Office/OpenOffice.org/contrib/dictionaries/'
+ );
+ $idx = rand(0, count($base_urls) - 1);
+ $fwd_url = $base_urls[$idx] . $lang_file;
+ } else if ($dl_pkg == 'aspell_core') {
$fwd_url = 'http://ftp.gnu.org/gnu/aspell/w32/Aspell-0-50-3-3-Setup.exe';
} else if (strpos($dl_pkg, 'lang_') === 0) {
if ($dl_pkg == 'lang_br') {
@@ -50,31 +75,6 @@
} else if ($dl_pkg == 'lang_uk') {
$fwd_url = 'http://ftp.gnu.org/gnu/aspell/w32/Aspell-uk-0.50-3-3.exe';
}
- } else if ($dl_pkg == 'gtk') {
- $fwd_url = 'http://downloads.sourceforge.net/project/pidgin/GTK%2B%20for%20Windows/' . $_GET['gtk_version'] . '/gtk-runtime-' . $_GET['gtk_version'] . '.zip';
- } else if ($dl_pkg == 'gtk_sha1sum') {
- if ($_GET['gtk_version'] == '2.6.16.0') {
- $body = '253fc4da13fced9c5534d9896c9e43147f41035d';
- } else if ($_GET['gtk_version'] == '2.6.16.1') {
- //TODO: $body = '5bf4f6903623d7b2fa2835821ccfdee8c685cbe0';
- }
- } else if ($dl_pkg == 'dbgsym') {
- $fwd_url = 'http://downloads.sourceforge.net/project/pidgin/Pidgin/' . $_GET['version'] . '/pidgin-' . $_GET['version'] . '-dbgsym.zip';
- } else if ($dl_pkg == 'dbgsym_sha1sum') {
- if ($_GET['version'] == '2.10.6') {
- $body = '37bad002895ac2d229a24a7ee154e6140c35034c';
- }
- } else if ($dl_pkg == 'oo_dict') {
- $lang = $_GET['lang'];
- $lang_file = $_GET['lang_file'];
- //Temporarily forward to a mirror that's still up - later we can do something better
- $base_urls = array('http://download.services.openoffice.org/files/contrib/dictionaries/'
- //'http://mirror.sit.wisc.edu/pub/openoffice/contrib/dictionaries/',
- //'http://ftp.ntu.edu.tw/ftp/OpenOffice/contrib/dictionaries/',
- //'http://ftp.sunet.se/pub/Office/OpenOffice.org/contrib/dictionaries/'
- );
- $idx = rand(0, count($base_urls) - 1);
- $fwd_url = $base_urls[$idx] . $lang_file;
}
}