Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/buildmaster
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-01-23 09:36:33 +0100
committerErich Eckner <git@eckner.net>2019-01-23 09:36:33 +0100
commit4589bd2f34ea4ea3519be6c8d49e01556e3ee058 (patch)
tree3f0ce748d9edbfb4aa38a6d31d717435b1851da2 /buildmaster
parent4672ce0b537fda6b28e765ed040bb3a865219b77 (diff)
buildmaster/statistics.php: accept multiple archs
Diffstat (limited to 'buildmaster')
-rw-r--r--buildmaster/statistics.php12
1 files changed, 9 insertions, 3 deletions
diff --git a/buildmaster/statistics.php b/buildmaster/statistics.php
index 5378616..4f2398b 100644
--- a/buildmaster/statistics.php
+++ b/buildmaster/statistics.php
@@ -2,13 +2,19 @@
require_once "../init.php";
require_once BASE . "/lib/mysql.php";
-if (isset($_GET["from"]))
+if (array_key_exists("from",$_GET))
$min_time="from_base64(\"" . base64_encode("-".$_GET["from"]) . "\")";
else
$min_time="\"-7 00:00:00\"";
-if (isset($_GET["arch"])) {
- $arch_filter="`architectures`.`name`=from_base64(\"" . base64_encode($_GET["arch"]) . "\")";
+if (array_key_exists("arch",$_GET)) {
+ $arch_filter="`architectures`.`name` IN (\"\"";
+ foreach (explode("&",$_SERVER["QUERY_STRING"]) as $param) {
+ if (strpos($param,"arch=")!==0)
+ continue;
+ $arch_filter .= ",from_base64(\"" . base64_encode(substr($param,5)) . "\")";
+ }
+ $arch_filter .= ")";
$combiner_left="";
$combiner_right="";
$grouper="";