2.11.1.2 release
[phpmyadmin/arisferyanto.git] / libraries / header_http.inc.php
blobab1207638e2d2927d543a2aa908cba5a51bd2e62
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
5 * @version $Id$
6 */
8 /**
11 if (isset($_REQUEST['GLOBALS']) || isset($_FILES['GLOBALS'])) {
12 die("GLOBALS overwrite attempt");
15 /**
16 * Sends http headers
18 $GLOBALS['now'] = gmdate('D, d M Y H:i:s') . ' GMT';
19 header('Expires: ' . $GLOBALS['now']); // rfc2616 - Section 14.21
20 header('Last-Modified: ' . $GLOBALS['now']);
21 header('Cache-Control: no-store, no-cache, must-revalidate, pre-check=0, post-check=0, max-age=0'); // HTTP/1.1
22 header('Pragma: no-cache'); // HTTP/1.0
23 if (!defined('IS_TRANSFORMATION_WRAPPER')) {
24 // Define the charset to be used
25 header('Content-Type: text/html; charset=' . $GLOBALS['charset']);