Remove `PhpMyAdmin\Twig\PluginsExtension` class
[phpmyadmin.git] / show_config_errors.php
blob74b81647cb017823ba0f0cd277133d6c40a78644
1 <?php
2 /**
3 * Simple wrapper just to enable error reporting and include config
4 */
6 declare(strict_types=1);
8 if (! defined('ROOT_PATH')) {
9 // phpcs:disable PSR1.Files.SideEffects
10 define('ROOT_PATH', __DIR__ . DIRECTORY_SEPARATOR);
11 // phpcs:enable
14 // rfc2616 - Section 14.21
15 header('Expires: ' . gmdate(DATE_RFC1123));
16 // HTTP/1.1
17 header(
18 'Cache-Control: no-store, no-cache, must-revalidate,'
19 . ' pre-check=0, post-check=0, max-age=0'
22 header('Pragma: no-cache'); // HTTP/1.0
23 // test case: exporting a database into a .gz file with Safari
24 // would produce files not having the current time
25 // (added this header for Safari but should not harm other browsers)
26 header('Last-Modified: ' . gmdate(DATE_RFC1123));
28 header('Content-Type: text/html; charset=utf-8');
30 // phpcs:disable PSR1.Files.SideEffects
31 define('PHPMYADMIN', true);
32 // phpcs:enable
34 require ROOT_PATH . 'libraries/vendor_config.php';
36 // issue #16256 - This only works with php 8.0+
37 if (function_exists('error_reporting')) {
38 error_reporting(E_ALL);
41 /**
42 * Read config file.
44 if (is_readable(CONFIG_FILE)) {
45 include CONFIG_FILE;