/www/pidgin: 94126843a79a: Move the aspell download redirects to...

Daniel Atallah datallah at pidgin.im
Thu Sep 20 10:29:02 EDT 2012


Changeset: 94126843a79ad43dc85de30dec6b9796a14ba2d6
Author:	 Daniel Atallah <datallah at pidgin.im>
Date:	 2012-09-19 21:35 +0100
Branch:	 default
URL: http://hg.pidgin.im/www/pidgin/rev/94126843a79a

Description:

Move the aspell download redirects to the bottom since they're less likely to be hit.

diffstat:

 htdocs/win32/download_redir.php |  52 ++++++++++++++++++++--------------------
 1 files changed, 26 insertions(+), 26 deletions(-)

diffs (69 lines):

diff --git a/htdocs/win32/download_redir.php b/htdocs/win32/download_redir.php
--- a/htdocs/win32/download_redir.php
+++ b/htdocs/win32/download_redir.php
@@ -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 @@ if (isset($_GET['dl_pkg'])) {
 		} 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;
 	}
 }
 



More information about the Commits mailing list