2.5.3-rc2
[phpmyadmin/crack.git] / libraries / header_http.inc.php3
blob8743e02ae4d5b65290b419ae40b5cc2202aad6d2
1 <?php
2 /* $Id$ */
3 // vim: expandtab sw=4 ts=4 sts=4:
5 /**
6 * Sends http headers
7 */
8 // Don't use cache (required for Opera)
9 $ctype = (isset($ctype) ? $ctype : 'html');
10 if ($ctype == 'css') {
11 header('Content-Type: text/css; charset=ISO-8859-1');
12 } else {
13 $GLOBALS['now'] = gmdate('D, d M Y H:i:s') . ' GMT';
14 header('Expires: ' . $GLOBALS['now']); // rfc2616 - Section 14.21
15 header('Last-Modified: ' . $GLOBALS['now']);
16 header('Cache-Control: no-store, no-cache, must-revalidate, pre-check=0, post-check=0, max-age=0'); // HTTP/1.1
17 header('Pragma: no-cache'); // HTTP/1.0
18 if (!isset($is_transformation_wrapper)) {
19 // Define the charset to be used
20 header('Content-Type: text/' . $ctype . '; charset=' . $GLOBALS['charset']);