Translated using Weblate (Portuguese (Brazil))
[phpmyadmin.git] / show_config_errors.php
blob0d0cdf4456c7142b9f9de91c15b37b8b186c9540
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 */
9 // rfc2616 - Section 14.21
10 header('Expires: ' . date(DATE_RFC1123));
11 // HTTP/1.1
12 header(
13 'Cache-Control: no-store, no-cache, must-revalidate,'
14 . ' pre-check=0, post-check=0, max-age=0'
16 if (isset($_SERVER['HTTP_USER_AGENT'])
17 && stristr($_SERVER['HTTP_USER_AGENT'], 'MSIE')
18 ) {
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: ' . date(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;