summaryrefslogtreecommitdiff
path: root/itjs.php
diff options
context:
space:
mode:
authorChristian Schneider2012-06-20 13:19:10 +0000
committerChristian Schneider2012-06-20 13:19:10 +0000
commit33bd44fd181ee2d4366834bcdadecda0f6907822 (patch)
treee89c76283f5b16cd117a1286bff6ace44da58344 /itjs.php
parent5d3f9f0d2ba106d9992377d9f5a0ddb41db4de03 (diff)
downloaditools-33bd44fd181ee2d4366834bcdadecda0f6907822.tar.gz
itools-33bd44fd181ee2d4366834bcdadecda0f6907822.tar.bz2
itools-33bd44fd181ee2d4366834bcdadecda0f6907822.zip
Remove manual ob_gzhandler, configure mod_deflate to handle all this
Diffstat (limited to 'itjs.php')
-rw-r--r--itjs.php5
1 files changed, 0 insertions, 5 deletions
diff --git a/itjs.php b/itjs.php
index 7b42b20..24cc33e 100644
--- a/itjs.php
+++ b/itjs.php
@@ -46,7 +46,6 @@ if (it::match('\.gif$', $file))
else if (it::match('\.css', $_SERVER['PHP_SELF']))
{
header("Content-Type: text/css");
- ob_start('ob_gzhandler');
$data .= "\n#it_boot_dom { display:none }\n"; # Append magic style for it_boot
if (!it::match('^devel', $GLOBALS['ULTRASERVERTYPE']))
$data = it::replace(array('[ \t]*([{};])[ \t]*' => '$1', '/\*.*?\*/' => ""), $data);
@@ -55,14 +54,10 @@ else if (it::match('\.css', $_SERVER['PHP_SELF']))
}
else if (it::match('\.htc$', $file))
{
- ob_start('ob_gzhandler');
header("Content-Type: text/x-component");
}
else if (!it::match('\.html$', $file))
{
- if ($_REQUEST['boot'] && !$_REQUEST['retry'])
- ob_start('ob_gzhandler');
-
$charset = ini_get('default_charset') ?: 'iso-8859-1';
header("Content-Type: application/x-javascript; charset=$charset");
}