コード例 #1
0
function phpAds_getLayerLimitations()
{
    $agent = phpAds_getUserAgent();
    $compatible = $agent['agent'] == 'IE' && $agent['version'] < 5.0 || $agent['agent'] == 'Mozilla' && $agent['version'] < 5.0 || $agent['agent'] == 'Opera' && $agent['version'] < 5.0 || $agent['agent'] == 'Konqueror' && $agent['version'] < 5.0 || $agent['agent'] == 'Safari' && $agent['version'] < 5.0 ? false : true;
    $richmedia = $compatible && !($agent['agent'] == 'IE' && $agent['platform'] == 'Mac');
    return array('richmedia' => $richmedia, 'compatible' => $compatible);
}
コード例 #2
0
function phpAds_getLayerLimitations()
{
    $agent = phpAds_getUserAgent();
    $compatible = $agent['agent'] == 'IE' && $agent['version'] < 5.0 || $agent['agent'] == 'Mozilla' && $agent['version'] < 5.0 || $agent['agent'] == 'Opera' && $agent['version'] < 5.0 ? false : true;
    $richmedia = $agent['platform'] == 'Win' ? true : false;
    return array('richmedia' => $richmedia, 'compatible' => $compatible);
}