diff options
author | Michal Čihař <mcihar@suse.cz> | 2011-06-22 11:30:50 +0400 |
---|---|---|
committer | Michal Čihař <mcihar@suse.cz> | 2011-06-22 11:31:25 +0400 |
commit | e92125b7ab5a3be2f5d465f254cd19ebd714e6d7 (patch) | |
tree | eb55c3774004e34ca4665c88ee6dff9a97244c62 /show_config_errors.php | |
parent | ee0b2fee370e044c960914cb97253cf17d8024fa (diff) |
Prevent caching of showing errors of config file
Diffstat (limited to 'show_config_errors.php')
-rw-r--r-- | show_config_errors.php | 7 |
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); |