1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-12 01:24:17 +02:00

Support Editor

This commit is contained in:
Jakub Vrana
2012-08-19 23:25:23 -07:00
parent ea6d6e0d44
commit ef0cb38aa1
3 changed files with 10 additions and 2 deletions

View File

@@ -905,7 +905,8 @@ function is_url($string) {
*/
function slow_query($query) {
global $adminer, $token;
if (support("kill") && is_object($connection2 = connect()) && (DB == "" || $connection2->select_db(DB))) {
$db = $adminer->database();
if (support("kill") && is_object($connection2 = connect()) && ($db == "" || $connection2->select_db($db))) {
$kill = $connection2->result("SELECT CONNECTION_ID()"); // MySQL and MySQLi can use thread_id but it's not in PDO_MySQL
?>
<script type="text/javascript">