index : archweb32 | |
Archlinux32 website | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2019-09-18 14:10:00 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-09-18 14:10:00 +0200 |
commit | 59956d6ebfd2b13b72988dcb3a4d19ff00885642 (patch) | |
tree | 58ca4ce22fea831ce61cfd49ae6f74ded4f0df35 /buildmaster | |
parent | fe3490d2fe32e75d0d842168fc7468a6eda9b10c (diff) |
-rw-r--r-- | buildmaster/index.php | 22 |
diff --git a/buildmaster/index.php b/buildmaster/index.php index 41985ba..e473a68 100644 --- a/buildmaster/index.php +++ b/buildmaster/index.php @@ -2,8 +2,8 @@ require_once "../init.php"; require_once BASE . "/lib/mysql.php"; -if (array_key_exists("arch",$_GET)) { - $archs = array(); +$archs = array(); +if (array_key_exists("arch",$_GET)) foreach (explode("&",$_SERVER["QUERY_STRING"]) as $param) { if (strpos($param,"arch=")!==0) continue; @@ -12,17 +12,13 @@ if (array_key_exists("arch",$_GET)) { continue; $archs[$param] = $param; } - if (count($archs)==0) { - $archs = array( - "i486" => "i486", - "i686" => "i686", - "pentium4" => "pentium4", - "any" => "any" - ); - } -} else { - $archs = array("i686" => "i686", "pentium4" => "pentium4", "any" => "any"); -} +if (count($archs)==0) + $archs = array( + "i486" => "i486", + "i686" => "i686", + "pentium4" => "pentium4", + "any" => "any" + ); function encode_arch($a) { return "arch=" . urlencode($a); |