Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Čihař <mcihar@suse.cz>2011-06-22 11:30:50 +0400
committerMichal Čihař <mcihar@suse.cz>2011-06-22 11:31:25 +0400
commite92125b7ab5a3be2f5d465f254cd19ebd714e6d7 (patch)
treeeb55c3774004e34ca4665c88ee6dff9a97244c62 /show_config_errors.php
parentee0b2fee370e044c960914cb97253cf17d8024fa (diff)
Prevent caching of showing errors of config file
Diffstat (limited to 'show_config_errors.php')
-rw-r--r--show_config_errors.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/show_config_errors.php b/show_config_errors.php
index 3ef1764351..09a286f473 100644
--- a/show_config_errors.php
+++ b/show_config_errors.php
@@ -6,6 +6,13 @@
* @package phpMyAdmin
*/
+$GLOBALS['now'] = gmdate('D, d M Y H:i:s') . ' GMT';
+header('Expires: ' . $GLOBALS['now']); // rfc2616 - Section 14.21
+header('Last-Modified: ' . $GLOBALS['now']);
+header('Cache-Control: no-store, no-cache, must-revalidate, pre-check=0, post-check=0, max-age=0'); // HTTP/1.1
+header('Pragma: no-cache'); // HTTP/1.0
+header('Content-Type: text/html; charset=utf-8');
+
require './libraries/vendor_config.php';
error_reporting(E_ALL);