<!--[if lte IE 7]> <link type="text/css" rel="stylesheet" href="<?php echo themeFile("css/ie.css"); ?> " /> <![endif]--> <script type="text/javascript" src="<?php echo smartCaching("js/mootools-1.2-core.js"); ?> "></script> <script type="text/javascript" src="<?php echo smartCaching("js/helpers.js"); ?> "></script> <script type="text/javascript" src="<?php echo smartCaching("js/movement.js"); ?> "></script> </head> <body style="background: none"> <div id="container"> <div id="loginform"> <form name="loginform" method="post"> <div class="loginspacer"> <?php // make sure they aren't using IE below version 7 $ua = $_SERVER['HTTP_USER_AGENT']; $ie = strstr($ua, 'MSIE') ? true : false; $ieVer = $ie ? preg_split('/msie/i', $ua) : false; $ieVer = $ieVer ? floatval($ieVer[1]) : false; // turn into whole number
function themeFile($filename) { global $theme; return smartCaching("themes/" . $theme . "/" . $filename); }