git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3458 201d5d3c-b55e-5fd7-737f-ddc643e51545

This commit is contained in:
zero 2008-01-04 03:02:38 +00:00
parent 2fafe9ccd5
commit 8eb6fb3d22

View file

@ -143,12 +143,12 @@ header("Last-Modified: '.substr(gmdate('r', $mtime), 0, -5).'GMT");
header("ETag: '.dechex($unique).'-'.dechex($size).'-'.dechex($mtime).'");
if(!$cached && file_exists($content_filename)) {
$buff = file_get_contents($content_filename);
if($type != "css" && strpos($_SERVER["HTTP_ACCEPT_ENCODING"], "gzip")!==false && function_exists("ob_gzhandler")) {
header("Content-Encoding: gzip");
print ob_gzhandler($buff, 5);
} else {
//if($type != "css" && strpos($_SERVER["HTTP_ACCEPT_ENCODING"], "gzip")!==false && function_exists("ob_gzhandler")) {
//header("Content-Encoding: gzip");
//print ob_gzhandler($buff, 5);
//} else {
print $buff;
}
//}
}
exit();
?>';