index : website | |
Archlinux32 website - obsolete | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2019-01-23 09:36:33 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-01-23 09:36:33 +0100 |
commit | 4589bd2f34ea4ea3519be6c8d49e01556e3ee058 (patch) | |
tree | 3f0ce748d9edbfb4aa38a6d31d717435b1851da2 | |
parent | 4672ce0b537fda6b28e765ed040bb3a865219b77 (diff) |
-rw-r--r-- | buildmaster/statistics.php | 12 |
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=""; |