Translated using Weblate (Turkish)
[phpmyadmin.git] / server_status.php
blobc1260e0c0fab2df10837a6b088388c7e08597108
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 */
8 declare(strict_types=1);
10 use PhpMyAdmin\Controllers\Server\Status\StatusController;
11 use PhpMyAdmin\DatabaseInterface;
12 use PhpMyAdmin\ReplicationGui;
13 use PhpMyAdmin\Response;
15 if (! defined('ROOT_PATH')) {
16 define('ROOT_PATH', __DIR__ . DIRECTORY_SEPARATOR);
19 require_once ROOT_PATH . 'libraries/common.inc.php';
20 require_once ROOT_PATH . 'libraries/server_common.inc.php';
21 require_once ROOT_PATH . 'libraries/replication.inc.php';
23 /** @var Response $response */
24 $response = $containerBuilder->get(Response::class);
26 /** @var DatabaseInterface $dbi */
27 $dbi = $containerBuilder->get(DatabaseInterface::class);
29 /** @var StatusController $controller */
30 $controller = $containerBuilder->get(StatusController::class);
32 /** @var ReplicationGui $replicationGui */
33 $replicationGui = $containerBuilder->get('replication_gui');
35 $response->addHTML($controller->index($replicationGui));