Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/buildmaster/log.php
diff options
context:
space:
mode:
Diffstat (limited to 'buildmaster/log.php')
-rw-r--r--buildmaster/log.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/buildmaster/log.php b/buildmaster/log.php
index 371bb86..2810d7f 100644
--- a/buildmaster/log.php
+++ b/buildmaster/log.php
@@ -18,6 +18,24 @@ require_once BASE . "/lib/mysql.php";
$filter .= " AND `ssh_log`.`action` LIKE from_base64(\"" . base64_encode($_GET["action"]) . "\")";
if (array_key_exists("slave", $_GET))
$filter .= " AND `build_slaves`.`name` LIKE from_base64(\"" . base64_encode($_GET["slave"]) . "\")";
+ } elseif (array_key_exists("show", $_GET) &&
+ ($_GET["show"] == "command")) {
+ $to_show = "command";
+ $columns = array(
+ "date" => "`command_log`.`date`",
+ "command" => "`command_log`.`command`",
+ "parameters" => "`command_log`.`parameters`",
+ "shell" => "IF(`command_log`.`shell`,1,0)"
+ );
+ $join = '';
+ if (array_key_exists("command", $_GET))
+ $filter .= " AND `command_log`.`command` LIKE from_base64(\"" . base64_encode($_GET["command"]) . "\")";
+ if (array_key_exists("shell", $_GET)) {
+ $filter .= " AND";
+ if (!$_GET["shell"])
+ $filter .= " NOT";
+ $filter .= " `command_log`.`shell`";
+ }
} else {
$to_show = "email";
$columns = array(