Translated using Weblate (Macedonian)
[phpmyadmin.git] / index.php
blob26fcabf7150c2a18e38abe7a082a1e33809e59d1
1 <?php
3 declare(strict_types=1);
5 use PhpMyAdmin\Common;
6 use PhpMyAdmin\Routing;
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 global $route, $containerBuilder, $request;
40 Common::run();
42 $dispatcher = Routing::getDispatcher();
43 Routing::callControllerForRoute($request, $route, $dispatcher, $containerBuilder);