Documentation TYPO3 par Ameos

header_http.inc.php

00001 <?php
00002 /* $Id: header_http.inc.php,v 2.1 2004/04/27 12:36:11 nijel Exp $ */
00003 // vim: expandtab sw=4 ts=4 sts=4:
00004 
00008 // Don't use cache (required for Opera)
00009 $ctype = (isset($ctype) ? $ctype : 'html');
00010 if ($ctype == 'css') {
00011         header('Content-Type: text/css; charset=ISO-8859-1');
00012 } else {
00013     $GLOBALS['now'] = gmdate('D, d M Y H:i:s') . ' GMT';
00014     header('Expires: ' . $GLOBALS['now']); // rfc2616 - Section 14.21
00015     header('Last-Modified: ' . $GLOBALS['now']);
00016     header('Cache-Control: no-store, no-cache, must-revalidate, pre-check=0, post-check=0, max-age=0'); // HTTP/1.1
00017     header('Pragma: no-cache'); // HTTP/1.0
00018     if (!isset($is_transformation_wrapper)) {
00019         // Define the charset to be used
00020         header('Content-Type: text/' . $ctype . '; charset=' . $GLOBALS['charset']);
00021     }
00022 }
00023 ?>


Généré par Les experts TYPO3 avec  doxygen 1.4.6