dc4823e898783e2d859a7f14671e972d0e2f21be
[Packages/TYPO3.CMS.git] / typo3 / sysext / t3skin / registerIe6Stylesheet.php
1 <?php
2
3 if(TYPO3_MODE == 'BE') {
4
5 // handle stupid IE6
6 $userAgent = t3lib_div::getIndpEnv('HTTP_USER_AGENT');
7
8 if(!(strpos($userAgent, 'MSIE 6') === false)
9 && strpos($userAgent, 'Opera') === false
10 && strpos($userAgent, 'MSIE 7') === false) {
11 //make sure we match IE6 but not Opera or IE7
12 $GLOBALS['TYPO3backend']->addCssFile('ie6fix', 'sysext/t3skin/stylesheets/ie6.css');
13 }
14
15 }
16
17 ?>