www: b525c9b2: This shouldn't require changes for every...

datallah at pidgin.im datallah at pidgin.im
Fri May 14 20:35:36 EDT 2010


-----------------------------------------------------------------
Revision: b525c9b2d4ea04f465f8ea3f4edef6a033b6da9b
Ancestor: 3f53f5a67c961e4e8baf39936bda15171dd446e6
Author: datallah at pidgin.im
Date: 2010-05-15T00:31:22
Branch: im.pidgin.www
URL: http://d.pidgin.im/viewmtn/revision/info/b525c9b2d4ea04f465f8ea3f4edef6a033b6da9b

Modified files:
        htdocs/win32/download_redir.php

ChangeLog: 

This shouldn't require changes for every release

-------------- next part --------------
============================================================
--- htdocs/win32/download_redir.php	d33927006f611c900363dd9f0f0b69c0a5c93556
+++ htdocs/win32/download_redir.php	6dcfacca89ee21efeed50fd94367e1799cf085d8
@@ -51,19 +51,9 @@ if (isset($_GET['dl_pkg'])) {
 			$fwd_url = 'http://ftp.gnu.org/gnu/aspell/w32/Aspell-uk-0.50-3-3.exe';
 		}
 	} else if ($dl_pkg == 'gtk') {
-		if (isset($_GET['gtk_version'])) {
-			$gtk_version = $_GET['gtk_version'];
-			if ($gtk_version == '2.16.6.0') {
-				$fwd_url = 'http://downloads.sourceforge.net/project/pidgin/GTK%2B%20for%20Windows/2.16.6.0/gtk-runtime-2.16.6.0.zip';
-			}
-		}
+		$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 == 'dbgsym') {
-		if (isset($_GET['version'])) {
-			$version = $_GET['version'];
-			if ($version == '2.7.0') {
-				$fwd_url = 'http://downloads.sourceforge.net/project/pidgin/Pidgin/2.7.0/pidgin-2.7.0-dbgsym.zip';
-			}
-		}
+		$fwd_url = 'http://downloads.sourceforge.net/project/pidgin/Pidgin/' . $_GET['version'] . '/pidgin-' . $_GET['version'] . '-dbgsym.zip';
 	}
 }
 


More information about the Commits mailing list