RewriteRule ^$ /run.php
RewriteRule ^[^/]*\.html$ /run.php
RewriteRule ^[^/.]*$ /run.php
+RewriteRule ^[^/]*.css$ /css_mangler.php [L]
--- /dev/null
+<?php
+
+# return true if user_agent is IE5.5 or IE6
+function ie5or6() {
+ $agent = $_SERVER['HTTP_USER_AGENT'];
+ return (strpos($agent, 'MSIE 5.') || strpos($agent, 'MSIE 5.') || strpos($agent, 'MSIE 6.'));
+}
+
+?>
--- /dev/null
+<?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();
+
+?>
<h4>Queued tasks</h4>
<div>Jason hasn't started on these yet, so you can change them if you want. At some point you'll also be able to prioritize them.</div>
<!--~queue_row start~-->
- <div class="task_link"><div class="updown"><div class="updown_links"> <a href="tasks?tasks_edit_id=~task_id~&bump=down">later</a> <a href="tasks?tasks_edit_id=~task_id~&bump=up">sooner</a> <a href="tasks?tasks_edit_id=~task_id~&bump=bottom">last</a> <a href="tasks?tasks_edit_id=~task_id~&bump=top">first</a></div></div> ~client.html~ <a href="tasks?tasks_id=~task_id~">#~task_id~: ~task_title.html~</a> (~task_price.money~)</div>
+ <div class="task_link"><span class="updown"><div class="updown_links"> <a href="tasks?tasks_edit_id=~task_id~&bump=down">later</a> <a href="tasks?tasks_edit_id=~task_id~&bump=up">sooner</a> <a href="tasks?tasks_edit_id=~task_id~&bump=bottom">last</a> <a href="tasks?tasks_edit_id=~task_id~&bump=top">first</a></div></span> ~client.html~ <a href="tasks?tasks_id=~task_id~">#~task_id~: ~task_title.html~</a> (~task_price.money~)</div>
<!--~end~-->
<!--~end~-->
background: #fff url(images/updown.png) right 50% no-repeat;
padding: 5px 20px 5px 5px;
text-align: right;
+ /* This looks _horrible_ on ie6, but it works
+ remove this line for IE 5.5 and 6 */
}
.updown:hover .updown_links {
+ /* remove this line for IE 5.5 and 6
+ */
right: -1px;
}