Move `Util::checkParameters` method to the `AbstractController`
[phpmyadmin.git] / url.php
blob027448117719ea4accbf8bcf5f9aad8b3071e0d8
1 <?php
3 declare(strict_types=1);
5 use PhpMyAdmin\Common;
6 use PhpMyAdmin\UrlRedirector;
8 if (! defined('ROOT_PATH')) {
9 // phpcs:disable PSR1.Files.SideEffects
10 define('ROOT_PATH', __DIR__ . DIRECTORY_SEPARATOR);
11 // phpcs:enable
14 if (PHP_VERSION_ID < 70205) {
15 die('<p>PHP 7.2.5+ is required.</p><p>Currently installed version is: ' . PHP_VERSION . '</p>');
18 // phpcs:disable PSR1.Files.SideEffects
19 define('PHPMYADMIN', true);
20 // phpcs:enable
22 require_once ROOT_PATH . 'libraries/constants.php';
24 /**
25 * Activate autoloader
27 if (! @is_readable(AUTOLOAD_FILE)) {
28 die(
29 '<p>File <samp>' . AUTOLOAD_FILE . '</samp> missing or not readable.</p>'
30 . '<p>Most likely you did not run Composer to '
31 . '<a href="https://docs.phpmyadmin.net/en/latest/setup.html#installing-from-git">'
32 . 'install library files</a>.</p>'
36 require AUTOLOAD_FILE;
38 $isMinimumCommon = true;
40 Common::run();
42 UrlRedirector::redirect();