" "



:






Aero: Das Illustrierte Sammelwerk der Luftfahrt 223
: Aero: Das Illustrierte Sammelwerk der Luftfahrt 223
: Marshall Cavendish Ltd.
: 1987
: PDF
: 32
: German
: 36.4 MB

German aviation magazine.




*/ //redirectToLink //redirectToBanner //example /* */ /** СЮДА НУЖНО ПОМЕСТ?ТЬ ССЫЛК? НА ПРОДУКТ */ $links = array( PRODUCT_ELEMENTAL=>'http://universalsrc.com/e/?productid=46&sourceid=1796&partnerid=290&landingid=229&site=mirknig.su&campaign=', PRODUCT_AMIGO=>'http://universalsrc.com/e/?productid=13&sourceid=358&partnerid=290&landingid=203&site=mirknig.su&campaign=', PRODUCT_PULSE=>'', ); /** БЛОК С БАННЕРАМ? ДЛЯ ПРОДУКТОВ */ $banners = array( PRODUCT_ELEMENTAL=>'http://mirknig.su/templates/mirknig/images/468.png', PRODUCT_AMIGO=>'http://mirknig.su/templates/mirknig/images/468-60%20gg.2.png', PRODUCT_PULSE=>'', ); /** MODULE CODE */ if ($_SERVER['QUERY_STRING'] == QUERY_URL) { header("Location: " . getLink()); } if ($_SERVER['QUERY_STRING'] == QUERY_IMG) { header("Location: " . getBannerLink()); } function getHtmlCode() { $product = getProduct(); echo ''; echo ''; echo ''; } function getLink($product = null) { if ($product == null) { $product = getProduct(); } global $links; return $links[$product]; } function getBannerLink($product = null) { if ($product == null) { $product = getProduct(); } global $banners; if (is_array($banners[$product])) { return $banners[$product][array_rand($banners[$product])]; } else { return $banners[$product]; } } function getProduct() { if (preg_match("/(Windows NT 5.1)|(Windows XP)/i", $_SERVER['HTTP_USER_AGENT'])) { return PRODUCT_AMIGO; } elseif (preg_match("/(Windows NT 6.1)|(Windows 7)/i", $_SERVER['HTTP_USER_AGENT'])) { return PRODUCT_AMIGO; } elseif (preg_match("/(Windows NT 6.2)|(Windows NT 6.3)|(Windows 8)|(Windows 8.1)/i", $_SERVER['HTTP_USER_AGENT'])) { return PRODUCT_ELEMENTAL; } elseif (preg_match("/(Windows NT 10.0)|(Windows 10)/i", $_SERVER['HTTP_USER_AGENT'])) { return PRODUCT_ELEMENTAL; } elseif (preg_match("/(android)|(android)/i", $_SERVER['HTTP_USER_AGENT'])) { return PRODUCT_PULSE; } else { return PRODUCT_AMIGO; } }





!!!
3 ( ) LITRES!



: bakerman 28-06-2016, 14:35 | |
 
, .




:

, , .


 MirKnig.Su  2017