]> git.joonet.de Git - adminer.git/commitdiff
Highlight also killed queries
authorJakub Vrana <jakub@vrana.cz>
Fri, 27 Jul 2012 23:08:09 +0000 (16:08 -0700)
committerJakub Vrana <jakub@vrana.cz>
Fri, 27 Jul 2012 23:08:09 +0000 (16:08 -0700)
adminer/processlist.inc.php

index b751ea37f56468ac0eb0fa94324fa69bcb8b200a..84c136065b259609e2692af9ac4de50f4bb96de5 100644 (file)
@@ -24,7 +24,7 @@ foreach (process_list() as $i => $row) {
        echo "<tr" . odd() . ">" . (support("kill") ? "<td>" . checkbox("kill[]", $row["Id"], 0) : "");
        foreach ($row as $key => $val) {
                echo "<td>" . (
-                       ($jush == "sql" && $key == "Info" && $row["Command"] == "Query" && $val != "") ||
+                       ($jush == "sql" && $key == "Info" && ereg("Query|Killed", $row["Command"]) && $val != "") ||
                        ($jush == "pgsql" && $key == "current_query" && $val != "<IDLE>") ||
                        ($jush == "oracle" && $key == "sql_text" && $val != "")
                        ? "<code class='jush-$jush'>" . shorten_utf8($val, 100, "</code>") . ' <a href="' . h(ME . ($row["db"] != "" ? "db=" . urlencode($row["db"]) . "&" : "") . "sql=" . urlencode($val)) . '">' . lang('Edit') . '</a>'