2 /* vim: set expandtab sw=4 ts=4 sts=4: */
4 * Handles server engines page.
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,
31 $response->addHTML($controller->index());