summaryrefslogtreecommitdiff
path: root/buildmaster/log.php
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-05-25 16:02:28 +0200
committerErich Eckner <git@eckner.net>2018-05-25 16:02:28 +0200
commit5ecbde8ac14bc17170f27ace3edd858ce575e922 (patch)
treec99a03c2a1b824571bbe6184bd7d75611cf0ab93 /buildmaster/log.php
parent5c9463899fce614fa026015e29ef754b4bf8c311 (diff)
downloadarchweb32-5ecbde8ac14bc17170f27ace3edd858ce575e922.tar.xz
buildmaster/log.php: add filter for build slave
Diffstat (limited to 'buildmaster/log.php')
-rw-r--r--buildmaster/log.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/buildmaster/log.php b/buildmaster/log.php
index 477d4c9..55ce955 100644
--- a/buildmaster/log.php
+++ b/buildmaster/log.php
@@ -13,8 +13,10 @@
"parameters" => "`ssh_log`.`parameters`"
);
$join = " LEFT JOIN `build_slaves` ON `ssh_log`.`build_slave`=`build_slaves`.`id`";
- if (isset($_GET["filter"]))
- $filter = " AND `ssh_log`.`action` LIKE from_base64(\"" . base64_encode($_GET["filter"]) . "\")";
+ if (isset($_GET["action"]))
+ $filter .= " AND `ssh_log`.`action` LIKE from_base64(\"" . base64_encode($_GET["action"]) . "\")";
+ if (isset($_GET["slave"]))
+ $filter .= " AND `build_slaves`.`name` LIKE from_base64(\"" . base64_encode($_GET["slave"]) . "\")";
} else {
$to_show = "email";
$columns = array(