+<?php
+
+require_once('code/wfpl/file.php');
+require_once('code/ie_detect.php');
+
+# this file is meant to act as a filter for .css files. it removes all lines
+# containing "remove this line for IE 5.5 and 6"
+
+# see also: .htaccess style.css
+
+function css_mangler() {
+ $file = $_SERVER['REDIRECT_URL'];
+
+ $file = substr($file, 1);
+
+ header('Content-Type: text/css');
+
+ if(ie5or6()) {
+ echo(ereg_replace("\n[^\n]*remove this line for IE 5.5 and 6[^\n]*\n", "\n", read_whole_file($file)));
+ } else {
+ readfile($file);
+ }
+}
+
+css_mangler();
+
+?>