' . "\n" . ($GLOBALS['cfg']['MainPageIconic'] ? '' : '') . ' ' . __('Processes') . "\n" . '' . "\n"; /** * Kills a selected process */ if (!empty($_REQUEST['kill'])) { if (PMA_DBI_try_query('KILL ' . $_REQUEST['kill'] . ';')) { $message = PMA_Message::success(__('Thread %s was successfully killed.')); } else { $message = PMA_Message::error(__('phpMyAdmin was unable to kill thread %s. It probably has already been closed.')); } $message->addParam($_REQUEST['kill']); $message->display(); } $url_params = array(); if (! empty($_REQUEST['full'])) { $sql_query = 'SHOW FULL PROCESSLIST'; $url_params['full'] = 1; $full_text_link = 'server_processlist.php' . PMA_generate_common_url(array(), 'html', '?'); } else { $sql_query = 'SHOW PROCESSLIST'; $full_text_link = 'server_processlist.php' . PMA_generate_common_url(array('full' => 1)); } $result = PMA_DBI_query($sql_query); /** * Displays the page */ ?> $v) { $k = $k !== 'DB' ? $k = ucfirst(strtolower($k)) : 'db'; $process[$k] = $v; } } $url_params['kill'] = $process['Id']; $kill_process = 'server_processlist.php' . PMA_generate_common_url($url_params); ?>
<?php echo empty($_REQUEST['full']) ? __('Show Full Queries') : __('Truncate Shown Queries'); ?>
' . __('None') . '' : $process['db']); ?>