Remove global variable

This commit is contained in:
Jakub Vrana 2016-02-28 12:30:52 -08:00
parent 3289eca040
commit 63f2a041ed
3 changed files with 1 additions and 3 deletions

View file

@ -1024,7 +1024,6 @@ if (!defined("DRIVER")) {
return $connection->result("SELECT @@max_connections"); return $connection->result("SELECT @@max_connections");
} }
$id_name = "Id";
$jush = "sql"; ///< @var string JUSH identifier $jush = "sql"; ///< @var string JUSH identifier
$types = array(); ///< @var array ($type => $maximum_unsigned_length, ...) $types = array(); ///< @var array ($type => $maximum_unsigned_length, ...)
$structured_types = array(); ///< @var array ($description => array($type, ...), ...) $structured_types = array(); ///< @var array ($description => array($type, ...), ...)

View file

@ -643,7 +643,6 @@ AND typelem = 0"
return $connection->result("SHOW max_connections"); return $connection->result("SHOW max_connections");
} }
$id_name = "pid";
$jush = "pgsql"; $jush = "pgsql";
$types = array(); $types = array();
$structured_types = array(); $structured_types = array();

View file

@ -30,7 +30,7 @@ foreach (process_list() as $i => $row) {
} }
echo "</thead>\n"; echo "</thead>\n";
} }
echo "<tr" . odd() . ">" . (support("kill") ? "<td>" . checkbox("kill[]", $row[$id_name], 0) : ""); echo "<tr" . odd() . ">" . (support("kill") ? "<td>" . checkbox("kill[]", $row[$jush == "sql" ? "Id" : "pid"], 0) : "");
foreach ($row as $key => $val) { foreach ($row as $key => $val) {
echo "<td>" . ( echo "<td>" . (
($jush == "sql" && $key == "Info" && preg_match("~Query|Killed~", $row["Command"]) && $val != "") || ($jush == "sql" && $key == "Info" && preg_match("~Query|Killed~", $row["Command"]) && $val != "") ||