Translated using Weblate (Czech)
[phpmyadmin.git] / server_status.php
blobdc7b19c1d9eebae1102b6027ae022144ba27987b
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * object the server status page: processes, connections and traffic
6 * @package PhpMyAdmin
7 */
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';
14 /**
15 * Replication library
17 if (PMA_DRIZZLE) {
18 $server_master_status = false;
19 $server_slave_status = false;
20 } else {
21 include_once 'libraries/replication.inc.php';
22 include_once 'libraries/replication_gui.lib.php';
25 $ServerStatusData = new PMA_ServerStatusData();
27 /**
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.'));
33 } else {
34 $message = PMA_Message::error(
35 __(
36 'phpMyAdmin was unable to kill thread %s.'
37 . ' It probably has already been closed.'
41 $message->addParam($_REQUEST['kill']);
44 /**
45 * start output
47 $response = PMA_Response::getInstance();
48 $response->addHTML('<div>');
49 $response->addHTML($ServerStatusData->getMenuHtml());
50 $response->addHTML(PMA_getHtmlForServerStatus($ServerStatusData));
51 $response->addHTML('</div>');
53 exit;