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 $query = $GLOBALS['dbi']->getKillQuery((int)$_REQUEST['kill']);
32 if ($GLOBALS['dbi']->tryQuery($query)) {
33 $message = PMA_Message
::success(__('Thread %s was successfully killed.'));
35 $message = PMA_Message
::error(
37 'phpMyAdmin was unable to kill thread %s.'
38 . ' It probably has already been closed.'
42 $message->addParam($_REQUEST['kill']);
48 $response = PMA_Response
::getInstance();
49 $response->addHTML('<div>');
50 $response->addHTML($ServerStatusData->getMenuHtml());
51 $response->addHTML(PMA_getHtmlForServerStatus($ServerStatusData));
52 $response->addHTML('</div>');