Jacek Caban : winegecko.php: Added 1.0.0 release.

Alexandre Julliard julliard at winehq.org
Tue Aug 4 09:28:10 CDT 2009


Module: tools
Branch: master
Commit: 23d986fa8d070d0ec58badb9619176f04afe5654
URL:    http://source.winehq.org/git/tools.git/?a=commit;h=23d986fa8d070d0ec58badb9619176f04afe5654

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Tue Aug  4 14:04:33 2009 +0200

winegecko.php: Added 1.0.0 release.

---

 winegecko.php |   17 +++++++++++++----
 1 files changed, 13 insertions(+), 4 deletions(-)

diff --git a/winegecko.php b/winegecko.php
index 141c815..c33ea70 100644
--- a/winegecko.php
+++ b/winegecko.php
@@ -12,10 +12,14 @@
  * Copyright (c) 2006 Jonathan Ernst
  */
 
-// Chek if a specific version was passed
-if(isset($_GET['v']))
+// Check if a specific version was passed
+if(isset($_GET['v'])) {
 	$sVersion = $_GET['v'];
 
+	if(isset($_GET['arch']))
+		$sVersion = $sVersion.'-'.$_GET['arch'];
+}
+
 // Name of the file
 $sFileName = "wine_gecko".($sVersion?'-'.$sVersion:'').".cab";
 
@@ -25,11 +29,16 @@ $aFileSizes = array(
 	'0.0.1'=>5219822,
 	'0.1.0'=>5746895,
 	'0.9.0'=>7806669,
-	'0.9.1'=>7806837
+	'0.9.1'=>7806837,
+	'1.0.0-x86'=>8119486
 );
 
 // Exact size of the file:
-$iFileSize = ($sVersion?$aFileSizes[$sVersion]:$aFileSizes['default']);
+$iFileSize = $aFileSizes[$sVersion ? $sVersion : 'default'];
+if(!$iFileSize) {
+	header("HTTP/1.0 404 Not Found");
+	exit;
+}
 
 // List of additional locations (commonly used locations are already in download.inc.php)
 $aList = array();




More information about the wine-cvs mailing list