Signed-off-by: William Desportes <williamdes@wdes.fr> Fix some phpdoc comments Signed-off-by: William Desportes <williamdes@wdes.fr>
29 lines
584 B
PHP
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);
|