Translated using Weblate (Turkish)
[phpmyadmin.git] / server_engines.php
blobc930d80f5b330d9d26c2f247e14f6e259e3fc0a0
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * Handles server engines page.
6 * @package PhpMyAdmin
7 */
8 declare(strict_types=1);
10 use PhpMyAdmin\Controllers\Server\EnginesController;
11 use PhpMyAdmin\Response;
13 if (! defined('ROOT_PATH')) {
14 define('ROOT_PATH', __DIR__ . DIRECTORY_SEPARATOR);
17 require_once ROOT_PATH . 'libraries/common.inc.php';
19 /** @var EnginesController $controller */
20 $controller = $containerBuilder->get(EnginesController::class);
22 /** @var Response $response */
23 $response = $containerBuilder->get(Response::class);
25 if (isset($_GET['engine']) && $_GET['engine'] !== '') {
26 $response->addHTML($controller->show([
27 'engine' => $_GET['engine'],
28 'page' => $_GET['page'] ?? null,
29 ]));
30 } else {
31 $response->addHTML($controller->index());