summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--itjs.class1
-rw-r--r--itjs.php5
2 files changed, 6 insertions, 0 deletions
diff --git a/itjs.class b/itjs.class
index 7ddaee0..9398773 100644
--- a/itjs.class
+++ b/itjs.class
@@ -123,6 +123,7 @@ function filenames($filelist)
"sl_adid_debug.js" => "$libsearch/itjs/sl_adid_debug.js",
"locateme.js" => "$libsearch/itjs/locateme.js",
"prettyprint.css" => "$libsearch/doc/prettyprint.css",
+ "PIE.htc" => "$libsearch/doc/PIE.htc",
);
foreach (array_filter(explode(",", it::replace(array('\?.*' => ""), $filelist))) as $file)
diff --git a/itjs.php b/itjs.php
index e808ae2..fbadac3 100644
--- a/itjs.php
+++ b/itjs.php
@@ -53,6 +53,11 @@ else if (it::match('\.css', $_SERVER['PHP_SELF']))
if (it::match('W3C_CSS_Validator', $_SERVER['HTTP_USER_AGENT']) || EDC('w3c'))
$data = it::replace(array('background[^;}]*(gradient|rgba)[^;}]*;?' => "", '(filter:\s*progid|text-overflow:|zoom:|-webkit-|display:-moz-|-moz-|-o-|cursor:|border-radius:|behavior:|\w+:expression)[^;}]*;?' => "", 'html\.ie6.*' => "", '([^/])\*(\w)' => '$1$2'), $data);
}
+else if (it::match('\.htc$', $file))
+{
+ ob_start('ob_gzhandler');
+ header("Content-Type: text/plain; charset=iso-8859-1");
+}
else if (!it::match('\.html$', $file))
{
if ($_REQUEST['boot'] && !$_REQUEST['retry'])