Пример #1
0
 * ------------------------------------------------------------------------
 */
// no direct access
defined('_JEXEC') or die('Restricted access');
$component_path = dirname(dirname($_SERVER['REQUEST_URI']));
global $color;
function ieversion()
{
    ereg('MSIE ([0-9]\\.[0-9])', $_SERVER['HTTP_USER_AGENT'], $reg);
    if (!isset($reg[1])) {
        return -1;
    } else {
        return floatval($reg[1]);
    }
}
$iev = ieversion();
/*All IE*/
?>

<?php 
/*IE 6*/
if ($iev == 6) {
    ?>

#jav-btfeedback{
	position: absolute !important;
	top: expression( ( 200 + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ) ) + 'px' ) !important;
}

#jav-feedback_overlay {
	position: absolute !important;
Пример #2
0
        return false;
    } else {
        return true;
    }
}
$slack = isSlack();
// Check whether we're in an iframe or not
function iframeMode()
{
    return isset($_GET['embed']);
}
$iframeMode = iframeMode();
// We set a FLAG to get the right $action and bypass the other loops
$continue = true;
// Check whether we are on IE < 8
if (ieversion() < 8) {
    $action = "old_ie";
    $continue = false;
}
// Mobile Detection
$allMobilesDevices = "(android.*mobile|blackberry|iphone|ipod|avantgo|blazer|elaine|hiptop|palm|plucker|xiino|windows ce|iemobile|smartphone|windows phone os|pocket|psp|symbian|smartphone|treo|up.browser|up.link|vodafone|wap|opera mini)";
$mobile = false;
if (preg_match("/" . $allMobilesDevices . "/i", $_SERVER['HTTP_USER_AGENT'])) {
    $mobile = true;
}
// 1. ERROR cases
if (isset($_GET['e'])) {
    $action = $_GET['e'];
    // Either 404 (page not found / link expired) or 503 (Service unavailable)
    $continue = false;
}