3 * Simple wrapper just to enable error reporting and include config
6 declare(strict_types
=1);
8 if (! defined('ROOT_PATH')) {
9 // phpcs:disable PSR1.Files.SideEffects
10 define('ROOT_PATH', __DIR__
. DIRECTORY_SEPARATOR
);
14 // rfc2616 - Section 14.21
15 header('Expires: ' . gmdate(DATE_RFC1123
));
17 header('Cache-Control: no-store, no-cache, must-revalidate, pre-check=0, post-check=0, max-age=0');
19 header('Pragma: no-cache'); // HTTP/1.0
20 // test case: exporting a database into a .gz file with Safari
21 // would produce files not having the current time
22 // (added this header for Safari but should not harm other browsers)
23 header('Last-Modified: ' . gmdate(DATE_RFC1123
));
25 header('Content-Type: text/html; charset=utf-8');
27 // phpcs:disable PSR1.Files.SideEffects
28 define('PHPMYADMIN', true);
31 require ROOT_PATH
. 'libraries/constants.php';
33 // issue #16256 - This only works with php 8.0+
34 if (function_exists('error_reporting')) {
35 error_reporting(E_ALL
);
41 if (is_readable(CONFIG_FILE
)) {
42 /** @psalm-suppress MissingFile */