summaryrefslogtreecommitdiff
path: root/buildmaster/index.php
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-09-18 14:10:00 +0200
committerErich Eckner <git@eckner.net>2019-09-18 14:10:00 +0200
commit59956d6ebfd2b13b72988dcb3a4d19ff00885642 (patch)
tree58ca4ce22fea831ce61cfd49ae6f74ded4f0df35 /buildmaster/index.php
parentfe3490d2fe32e75d0d842168fc7468a6eda9b10c (diff)
downloadarchweb32-59956d6ebfd2b13b72988dcb3a4d19ff00885642.tar.xz
buildmaster/index.php: show all architectures by default
Diffstat (limited to 'buildmaster/index.php')
-rw-r--r--buildmaster/index.php22
1 files changed, 9 insertions, 13 deletions
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);