phpmyadmin/index.php
William Desportes bde3e5ae65
Move all index.php code to PhpMyAdmin\Routing and change cache name
Signed-off-by: William Desportes <williamdes@wdes.fr>

Fix some phpdoc comments

Signed-off-by: William Desportes <williamdes@wdes.fr>
2020-03-28 10:38:11 +01:00

29 lines
584 B
PHP

<?php
/**
* Main loader script
*/
declare(strict_types=1);
use PhpMyAdmin\Routing;
if (! defined('ROOT_PATH')) {
// phpcs:disable PSR1.Files.SideEffects
define('ROOT_PATH', __DIR__ . DIRECTORY_SEPARATOR);
// phpcs:enable
}
global $route;
$route = Routing::getCurrentRoute();
if ($route === '/import-status') {
// phpcs:disable PSR1.Files.SideEffects
define('PMA_MINIMUM_COMMON', true);
// phpcs:enable
}
require_once ROOT_PATH . 'libraries/common.inc.php';
$dispatcher = Routing::getDispatcher();
Routing::callControllerForRoute($route, $dispatcher);