Exemplo n.º 1
0
        }
    }
} catch (\Exception $e) {
}
?>

</head>
<body>

<?php 
//detect browser
$supported = false;
$browser = new \Pimcore\Browser();
$browserVersion = (int) $browser->getVersion();
$platform = $browser->getPlatform();
if ($browser->getBrowser() == \Pimcore\Browser::BROWSER_FIREFOX && $browserVersion >= 4) {
    $supported = true;
}
if ($browser->getBrowser() == \Pimcore\Browser::BROWSER_IE && $browserVersion >= 9) {
    $supported = true;
}
if ($browser->getBrowser() == \Pimcore\Browser::BROWSER_CHROME && $browserVersion >= 6) {
    $supported = true;
}
if ($browser->getBrowser() == \Pimcore\Browser::BROWSER_SAFARI && $browserVersion >= 5) {
    $supported = true;
}
if ($browser->getBrowser() == \Pimcore\Browser::BROWSER_OPERA && $browserVersion >= 15) {
    $supported = true;
}
$config = \Pimcore\Config::getSystemConfig();
Exemplo n.º 2
0
        }
    }
} catch (\Exception $e) {
}
?>

</head>
<body>

<?php 
//detect browser
$supported = false;
$browser = new \Pimcore\Browser();
$browserVersion = (int) $browser->getVersion();
$platform = $browser->getPlatform();
if ($browser->getBrowser() == \Pimcore\Browser::BROWSER_FIREFOX && $browserVersion >= 39) {
    $supported = true;
}
if ($browser->getBrowser() == \Pimcore\Browser::BROWSER_IE && $browserVersion >= 11) {
    $supported = true;
}
if ($browser->getBrowser() == \Pimcore\Browser::BROWSER_CHROME && $browserVersion >= 40) {
    $supported = true;
}
if ($browser->getBrowser() == \Pimcore\Browser::BROWSER_SAFARI && $browserVersion >= 7) {
    $supported = true;
}
if ($browser->getBrowser() == \Pimcore\Browser::BROWSER_OPERA && $browserVersion >= 30) {
    $supported = true;
}
$config = \Pimcore\Config::getSystemConfig();