Translated using Weblate (German)
[phpmyadmin.git] / show_config_errors.php
blob59041a3c7a12a07fc5f29e00257f3ae30bca3df0
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 // rfc2616 - Section 14.21
11 header('Expires: ' . gmdate(DATE_RFC1123));
12 // HTTP/1.1
13 header(
14 'Cache-Control: no-store, no-cache, must-revalidate,'
15 . ' pre-check=0, post-check=0, max-age=0'
17 if (isset($_SERVER['HTTP_USER_AGENT'])
18 && stristr($_SERVER['HTTP_USER_AGENT'], 'MSIE')
19 ) {
20 /* FIXME: Why is this special case for IE needed? */
21 header('Pragma: public');
22 } else {
23 header('Pragma: no-cache'); // HTTP/1.0
24 // test case: exporting a database into a .gz file with Safari
25 // would produce files not having the current time
26 // (added this header for Safari but should not harm other browsers)
27 header('Last-Modified: ' . gmdate(DATE_RFC1123));
29 header('Content-Type: text/html; charset=utf-8');
31 require 'libraries/vendor_config.php';
33 error_reporting(E_ALL);
34 /**
35 * Read config file.
37 if (is_readable(CONFIG_FILE)) {
38 include CONFIG_FILE;