diff options
author | Urban Müller | 2011-11-14 02:35:56 +0000 |
---|---|---|
committer | Urban Müller | 2011-11-14 02:35:56 +0000 |
commit | a1d1496cce437afe3ceb2f84fd3baac806ab6659 (patch) | |
tree | 57918e1d9675256e0d24fd86b01a8d58a08dabee /itjs.php | |
parent | 57a154f994f21be1c78fb19d815116edd7eb4016 (diff) | |
download | itools-a1d1496cce437afe3ceb2f84fd3baac806ab6659.tar.gz itools-a1d1496cce437afe3ceb2f84fd3baac806ab6659.tar.bz2 itools-a1d1496cce437afe3ceb2f84fd3baac806ab6659.zip |
hide complex -webkit-keyframes
Diffstat (limited to 'itjs.php')
-rw-r--r-- | itjs.php | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -50,8 +50,9 @@ else if (it::match('\.css', $_SERVER['PHP_SELF'])) $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); - if (it::match('W3C_CSS_Validator', $_SERVER['HTTP_USER_AGENT']) || EDC('w3c')) - $data = it::replace(array('background[^;}]*(gradient|rgba)[^;}]*;?' => "", '(filter:\s*(progid|none)|text-overflow:|zoom:|-webkit-|display:-moz-|-moz-|-o-|cursor:|border-radius:|behavior:|\w+:expression)[^;}]*;?' => "", 'html\.ie6.*' => "", '([^/])\*(\w)' => '$1$2'), $data); + if (it::match('W3C_CSS_Validator', $_SERVER['HTTP_USER_AGENT']) || EDC('w3c')) { + $data = it::replace(array('@-.*' => "", 'background[^;}]*(gradient|rgba)[^;}]*;?' => "", '(filter:\s*(progid|none)|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)) { @@ -70,7 +71,7 @@ else if (!it::match('\.html$', $file)) if ($checksum != $_SERVER['HTTP_IF_NONE_MATCH']) { - if (!preg_match('/Opera/', $_SERVER['HTTP_USER_AGENT'])) + if (!preg_match('/Opera/', $_SERVER['HTTP_USER_AGENT']) && it::is_live()) header("Cache-Control: max-age=900"); $data = itjs::strip($data); |