Translated using Weblate (Bulgarian)
[phpmyadmin.git] / show_config_errors.php
blob08e25351797e14188c3f6f254e91bb56f59696e3
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * Simple wrapper just to enable error reporting and include config
6 * @package PhpMyAdmin
7 */
8 declare(strict_types=1);
10 if (! defined('ROOT_PATH')) {
11 define('ROOT_PATH', __DIR__ . DIRECTORY_SEPARATOR);
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'
21 if (isset($_SERVER['HTTP_USER_AGENT'])
22 && stristr($_SERVER['HTTP_USER_AGENT'], 'MSIE')
23 ) {
24 /* FIXME: Why is this special case for IE needed? */
25 header('Pragma: public');
26 } else {
27 header('Pragma: no-cache'); // HTTP/1.0
28 // test case: exporting a database into a .gz file with Safari
29 // would produce files not having the current time
30 // (added this header for Safari but should not harm other browsers)
31 header('Last-Modified: ' . gmdate(DATE_RFC1123));
33 header('Content-Type: text/html; charset=utf-8');
35 require ROOT_PATH . 'libraries/vendor_config.php';
37 // issue #16256 - This only works with php 8.0+
38 if (function_exists('error_reporting')) {
39 error_reporting(E_ALL);
42 /**
43 * Read config file.
45 if (is_readable(CONFIG_FILE)) {
46 include CONFIG_FILE;