2 /* vim: set expandtab sw=4 ts=4 sts=4: */
4 * object the server status page: processes, connections and traffic
9 require_once 'libraries/common.inc.php';
10 require_once 'libraries/server_common.inc.php';
11 require_once 'libraries/ServerStatusData.class.php';
12 require_once 'libraries/server_status.lib.php';
18 $server_master_status = false;
19 $server_slave_status = false;
21 include_once 'libraries/replication.inc.php';
22 include_once 'libraries/replication_gui.lib.php';
25 $ServerStatusData = new PMA_ServerStatusData();
28 * Kills a selected process
30 if (! empty($_REQUEST['kill'])) {
31 if ($GLOBALS['dbi']->tryQuery('KILL ' . $_REQUEST['kill'] . ';')) {
32 $message = PMA_Message
::success(__('Thread %s was successfully killed.'));
34 $message = PMA_Message
::error(
36 'phpMyAdmin was unable to kill thread %s.'
37 . ' It probably has already been closed.'
41 $message->addParam($_REQUEST['kill']);
47 $response = PMA_Response
::getInstance();
48 $response->addHTML('<div>');
49 $response->addHTML($ServerStatusData->getMenuHtml());
50 $response->addHTML(PMA_getHtmlForServerStatus($ServerStatusData));
51 $response->addHTML('</div>');