Highlight also killed queries
This commit is contained in:
parent
a227ec1c97
commit
5e4b815893
|
@ -24,7 +24,7 @@ foreach (process_list() as $i => $row) {
|
||||||
echo "<tr" . odd() . ">" . (support("kill") ? "<td>" . checkbox("kill[]", $row["Id"], 0) : "");
|
echo "<tr" . odd() . ">" . (support("kill") ? "<td>" . checkbox("kill[]", $row["Id"], 0) : "");
|
||||||
foreach ($row as $key => $val) {
|
foreach ($row as $key => $val) {
|
||||||
echo "<td>" . (
|
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 == "pgsql" && $key == "current_query" && $val != "<IDLE>") ||
|
||||||
($jush == "oracle" && $key == "sql_text" && $val != "")
|
($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>'
|
? "<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>'
|
||||||
|
|
Loading…
Reference in a new issue