Auto Direct Halaman Ke Versi Mobile
All About Komputer - Disini saya akan share tentang meredirect ke halaman versi mobile , jadi kalo visitornya dari hp langsung redrect , yuk langsung intip :D
<?php
//by om Ch0c0 ~~
//greetz to @google :v
//greetz to all surabayablackhat member :3
//berawal dari... auto redirect mobile @js :P
$uaqu = getenv("HTTP_USER_AGENT");
$broserqu="LAINLAIN";
function istr($n,$h) {
return stristr($h,$n);
}
//keyword cok !!
if (istr("Dillo", $uaqu)) { $broserqu = "Dillo"; }
if (istr("MIDP-", $uaqu)) { $broserqu = "MIDP-"; }
if (istr("Ericsson", $uaqu)) { $broserqu = "Ericsson"; }
if (istr("SonyEricsson", $uaqu)) { $broserqu = "SonyEricsson"; }
if (istr("AvantGo", $uaqu)) { $broserqu = "AvantGo"; }
if (istr("ATTWS", $uaqu)) { $broserqu = "ATTWS"; }
if (istr("i-mode", $uaqu)) { $broserqu = "i-mode"; }
if (istr("SEC-", $uaqu)) { $broserqu = "SEC-"; }
if (istr("R600", $uaqu)) { $broserqu = "R600"; }
if (istr("R380", $uaqu)) { $broserqu = "R380"; }
if (istr("PHILIPS", $uaqu)) { $broserqu = "PHILIPS"; }
if (istr("Obigo", $uaqu)) { $broserqu = "Obigo"; }
if (istr("Panasonic", $uaqu)) { $broserqu = "Panasonic"; }
if (istr("SEC-SGH", $uaqu)) { $broserqu = "SEC-SGH"; }
if (istr("SHARP-", $uaqu)) { $broserqu = "SHARP-"; }
if (istr("Sendo", $uaqu)) { $broserqu = "Sendo"; }
if (istr("TSM-", $uaqu)) { $broserqu = "TSM-"; }
if (istr("Wapalizer", $uaqu)) { $broserqu = "Wapalizer"; }
if (istr("Wapsilon", $uaqu)) { $broserqu = "Wapsilon"; }
if (istr("Widcomm BtSendto", $uaqu)) { $broserqu = "Widcomm BtSendto"; }
if (istr("WinWAP-PRO", $uaqu)) { $broserqu = "WinWAP-PRO"; }
if (istr("Siemens", $uaqu)) { $broserqu = "Siemens"; }
if (istr("ATTWS", $uaqu)) { $broserqu = "ATTWS"; }
if (istr("Google WAP Proxy", $uaqu)) { $broserqu = "Google WAP Proxy"; }
if (istr("BENQ-", $uaqu)) { $broserqu = "BENQ-"; }
if (istr("EZOS", $uaqu)) { $broserqu = "EZOS"; }
if (istr("IAC", $uaqu)) { $broserqu = "IAC"; }
if (istr("Mitsu", $uaqu)) { $broserqu = "Mitsu"; }
if (istr("Motorola-", $uaqu)) { $broserqu = "Motorola-"; }
if (istr("Cellphone", $uaqu)) { $broserqu = "Cellphone"; }
if (istr("MMEF", $uaqu)) { $broserqu = "MMEF"; }
if (istr("PANTECH", $uaqu)) { $broserqu = "PANTECH"; }
if (istr("PHILIPS", $uaqu)) { $broserqu = "PHILIPS"; }
if (istr("R600", $uaqu)) { $broserqu = "R600"; }
if (istr("WAPPER", $uaqu)) { $broserqu = "WAPPER"; }
if (istr("Sunrise", $uaqu)) { if (!istr("SunriseBrowser", $uaqu)) { $broserqu = "Sunrise"; }}
if (istr("Smartphone", $uaqu)) { $broserqu = "Smartphone"; }
if (istr("SAGEM", $uaqu)) { $broserqu = "SAGEM"; }
if (istr("SIE-", $uaqu)) { $broserqu = "SIE-"; }
if (istr("PHILIPS-", $uaqu)) { $broserqu = "PHILIPS-"; }
if (istr("NEC-", $uaqu)) { $broserqu = "NEC-"; }
if (istr("MOT-", $uaqu)) { $broserqu = "MOT-"; }
if (istr("LGE-", $uaqu)) { $broserqu = "LGE-"; }
if (istr("LG-", $uaqu)) { $broserqu = "LG-"; }
if (istr("Alcatel", $uaqu)) { $broserqu = "Alcatel"; }
if (istr("Arachne", $uaqu)) { $broserqu = "Arachne"; }
if (istr("KBrowser", $uaqu)) { $broserqu = "KBrowser"; }
if (istr("Windows CE", $uaqu)) { $broserqu = "Windows CE"; }
if (istr("WebTV", $uaqu)) { $broserqu = "WebTV"; }
if (istr("EPOC", $uaqu)) { $broserqu = "EPOC"; }
if (istr("Minimo", $uaqu)) { $broserqu = "Minimo"; $handheld = "yes";}
if (istr("PS2-PTV", $uaqu)) { $broserqu = "PS2-PTV"; }
if (istr("Interactor", $uaqu)) { $broserqu = "Interactor"; }
if (istr("Webster", $uaqu)) { $broserqu = "Webster"; }
if (istr("ANTFresco", $uaqu)) { $broserqu = "ANTFresco"; }
if (istr("ArcWeb", $uaqu)) { $broserqu = "ArcWeb"; }
if (istr("Netgem", $uaqu)) { $broserqu = "Netgem"; }
if (istr("Sophia", $uaqu)) { $broserqu = "Sophia"; }
if (istr("opentv", $uaqu)) { $broserqu = "opentv"; }
if (istr("Vagabond", $uaqu)) { if (!istr("Vagabondo", $uaqu)) {$broserqu = "Vagabond"; } }
if (istr("DoCoMo", $uaqu)) { $broserqu = "DoCoMo"; }
if (istr("sharp_pda_browser", $uaqu)) { $broserqu = "sharp_pda_browser"; }
if (istr("DreamPassport", $uaqu)) { $broserqu = "DreamPassport"; }
if (istr("SEGA", $uaqu)) { $broserqu = "SEGA"; }
if (istr("CRI-Browser", $uaqu)) { $broserqu = "CRI-Browser"; }
if (istr("Planetweb", $uaqu)) { $broserqu = "Planetweb"; }
if (istr("DreamKey", $uaqu)) { $broserqu = "DreamKey"; }
if (istr("Sonybrowser", $uaqu)) { $broserqu = "Sonybrowser"; }
if (istr("PocketIE", $uaqu)) { $broserqu = "PocketIE"; }
if (istr("Nokia-Communicator-WWW-Browser", $uaqu)) { $broserqu = "Nokia-Communicator-WWW-Browser"; }
if (istr("OWF", $uaqu)) { $broserqu = "OWF"; }
if (istr("Acorn", $uaqu)) { $broserqu = "Acorn"; }
if (istr("portalmmm", $uaqu)) { $broserqu = "portalmmm"; }
if (istr("ACS-NF", $uaqu)) { $broserqu = "ACS-NF"; }
if (istr("NEC-", $uaqu)) { $broserqu = "NEC-"; }
if (istr("KDDI", $uaqu)) { $broserqu = "KDDI"; }
if (istr("Oregano", $uaqu)) { $broserqu = "Oregano"; }
if (istr("WebsterXL", $uaqu)) { $broserqu = "WebsterXL"; }
if (istr("Atari", $uaqu)) { $broserqu = "Atari"; }
if (istr("iSiloWeb", $uaqu)) { $broserqu = "iSiloWeb"; }
if (istr("EudoraWeb", $uaqu)) { $broserqu = "EudoraWeb"; }
if (istr("Xiino", $uaqu)) { $broserqu = "Xiino"; }
if (istr("Nokia", $uaqu)) { $broserqu = "NokiaPhone"; }
if (istr("Plucker", $uaqu)) { $broserqu = "Plucker"; }
if (istr("embedix", $uaqu)) { $broserqu = "embedix"; }
if (istr("ELinks", $uaqu)) { $broserqu = "ELinks"; }
if (istr("textmode", $uaqu)) { $broserqu = "textmode"; }
if (istr("BlackBerr", $uaqu)) { $broserqu = "BlackBerr"; }
if (istr("NCSA_Mosaic", $uaqu)) { $broserqu = "NCSA_Mosaic"; }
if (istr("JPluck", $uaqu)) { $broserqu = "JPluck"; }
if (istr("HotJava", $uaqu)) { $broserqu = "HotJava"; }
if (istr("ALynx", $uaqu)) { $broserqu = "ALynx"; }
if (istr("iSilo", $uaqu)) { $broserqu = "iSilo"; }
if (istr("OPWV", $uaqu)) { $broserqu = "OPWV"; }
if (istr("lynx", $uaqu)) { $broserqu = "lynx"; }
if (istr("Links", $uaqu)) { if (!istr("NewsGator", $uaqu) && !istr("findlinks", $uaqu)) { $broserqu = "Links";} }
if (istr("w3m", $uaqu)) { $broserqu = "w3m"; }
if (istr("GeOS", $uaqu)) { if (!istr("Geoscience", $uaqu)) { $broserqu = "GeOS"; }}
if (istr("Symbian", $uaqu)) { $broserqu = "Symbian"; }
if (istr("AU-MIC", $uaqu)) { $broserqu = "AU-MIC"; }
if (istr("ReqwirelessWeb", $uaqu)) { $broserqu = "ReqwirelessWeb"; }
if (istr("ICE Browser", $uaqu)) { $broserqu = "ICE Browser"; }
if (istr("amaya", $uaqu)) { $broserqu = "amaya"; }
if (istr("Elaine", $uaqu)) { $broserqu = "Elaine"; }
if (istr("Danger", $uaqu)) { $broserqu = "Danger"; }
if (istr("armv", $uaqu)) { $broserqu = "armv"; }
if (istr("Qtopia", $uaqu)) { $broserqu = "Qtopia"; }
if (istr("Qt Embedded", $uaqu)) { $broserqu = "Qt Embedded"; }
if (istr("MobilePhone", $uaqu)) { $broserqu = "MobilePhone"; }
if (istr("NeXTSTEP", $uaqu)) { $broserqu = "NeXTSTEP"; }
if (istr("PDA", $uaqu)) { $broserqu = "PDA"; }
if (istr("WenSuite", $uaqu)) { $broserqu = "WenSuite"; }
if (istr("WorldWideWeb", $uaqu)) { $broserqu = "WorldWideWeb"; }
if (istr("Contiki", $uaqu)) { $broserqu = "Contiki"; }
if (istr("Cyberdog", $uaqu)) { $broserqu = "Cyberdog"; }
if (istr("ThunderHawk", $uaqu)) { $broserqu = "ThunderHawk"; }
if (istr("Bitstream", $uaqu)) { $broserqu = "Bitstream"; }
if (istr("ftxPBrowser", $uaqu)) { $broserqu = "ftxPBrowser"; }
if (istr("ThunderHawk", $uaqu)) { $broserqu = "ThunderHawk"; }
if (istr("SAMSUNG", $uaqu)) { $broserqu = "SAMSUNG"; }
if (istr("Airmax", $uaqu)) { $broserqu = "Airmax"; }
if (istr("KDDI-S", $uaqu)) { $broserqu = "KDDI"; }
if (istr("Acorn-Browse", $uaqu)) { $broserqu = "Acorn-Browse"; }
if (istr("Palm OS", $uaqu)) { $broserqu = "Palm OS";}
if (istr("WebPro", $uaqu)) { $broserqu = "WebPro";}
if (istr("NetFront", $uaqu)) { $broserqu = "NetFront";}
if (istr("Blazer", $uaqu)) { $broserqu = "Blazer"; }
if (istr("PalmOS", $uaqu)) { $broserqu = "PalmOS";}
if (istr("PalmSource", $uaqu)) { $broserqu = "PalmSource"; }
if (istr("Telit-", $uaqu)) { $broserqu = "Telit-"; }
if (istr("TELME", $uaqu)) { $broserqu = "TELME"; }
if (istr("neomode", $uaqu)) { $broserqu = "neomode"; }
if (istr("chea", $uaqu)) { $broserqu = "chea"; }
if (istr("INNO", $uaqu)) { $broserqu = "INNO"; }
if (istr("Kyocera", $uaqu)) { $broserqu = "Kyocera"; }
if (istr("Maxon", $uaqu)) { $broserqu = "Maxon"; }
if (istr("KPT", $uaqu)) { $broserqu = "KPT"; }
if (istr("IRIS-", $uaqu)) { $broserqu = "IRIS-"; }
if (istr("MODOTTEL", $uaqu)) { $broserqu = "MODOTTEL"; }
if (istr("Vitelcom", $uaqu)) { $broserqu = "Vitelcom"; }
if (istr("TSM-", $uaqu)) { $broserqu = "TSM-"; }
if (istr("WIG Browser", $uaqu)) { $broserqu = "WIG Browser"; }
if (istr("KGT", $uaqu)) { $broserqu = "KGT"; }
if (istr("MobileExplorer", $uaqu)) { $broserqu = "MobileExplorer"; }
if (istr("Rover", $uaqu)) { $broserqu = "Rover"; }
if (istr("Benefon", $uaqu)) { $broserqu = "Benefon"; }
if (istr("Sewon", $uaqu)) { $broserqu = "Sewon"; }
if (istr("Haier", $uaqu)) { $broserqu = "Haier"; }
if (istr("EzWAP", $uaqu)) { $broserqu = "EzWAP"; }
if (istr("ERICY", $uaqu)) { $broserqu = "ERICY"; }
if (istr("AUDIOVOX", $uaqu)) { $broserqu = "AUDIOVOX"; }
if (istr("CDM-", $uaqu)) { $broserqu = "CDM-"; }
if (istr("RIM9", $uaqu)) { $broserqu = "RIM9"; }
if (istr("Go.Web", $uaqu)) { $broserqu = "Go.Web"; }
if (istr("AU\/", $uaqu)) { $broserqu = "AU"; }
if (istr("Vodafone", $uaqu)) { $broserqu = "Vodafone"; }
if (istr("Compal", $uaqu)) { $broserqu = "Compal"; }
if (istr("Klondike", $uaqu)) { $broserqu = "Klondike"; }
if (istr("Scooter", $uaqu)) { $broserqu = "Scooter"; }
if (istr("Skweezer", $uaqu)) { $broserqu = "Skweezer"; }
if (istr("SCEJ PSP", $uaqu)) { $broserqu = "SCEJ PSP"; }
if (istr("PlayStation", $uaqu)) { $broserqu = "PlayStation"; }
if (istr("TCL-", $uaqu)) { $broserqu = "TCL-"; }
if (istr("Xplore", $uaqu)) { if (!istr("Internet Explorer", $uaqu)) { $broserqu = "Xplore"; }}
if (istr("Escape", $uaqu)) { if (!istr("Macintosh", $uaqu)) { $broserqu = "Escape"; }}
if (istr("LG\/U", $uaqu)) { $broserqu = "LG/U"; }
if (istr("Lenovo", $uaqu)) { $broserqu = "Lenovo"; }
if (istr("LGE\/U", $uaqu)) { $broserqu = "LGE/U"; }
if (istr("NEWGEN-", $uaqu)) { $broserqu = "NEWGEN-"; }
if (istr("PT-G", $uaqu)) { $broserqu = "PT-G"; }
if (istr("Sanyo", $uaqu)) { $broserqu = "Sanyo"; }
if (istr("SCH-", $uaqu)) { $broserqu = "SCH-"; }
if (istr("SGH-", $uaqu)) { $broserqu = "SGH-"; }
if (istr("SEC-", $uaqu)) { $broserqu = "SEC-"; }
if (istr("Siemens-", $uaqu)) { $broserqu = "Siemens-"; }
if (istr("TDG-", $uaqu)) { $broserqu = "TDG-"; }
if (istr("TELLME_", $uaqu)) { $broserqu = "TELLME_"; }
if (istr("Tellit-", $uaqu)) { $broserqu = "Tellit-"; }
if (istr("Snoopy", $uaqu)) { $broserqu = "Snoopy"; }
if (istr("Sky MobileMedia", $uaqu)) { $broserqu = "Sky MobileMedia"; }
if (istr("TMT Mobile Internet Browser", $uaqu)) { $broserqu = "TMT Mobile Internet Browser"; }
if (istr("ZTE-", $uaqu)) { $broserqu = "ZTE-"; }
if (istr("KONKA", $uaqu)) { $broserqu = "KONKA"; }
if (istr("CECT", $uaqu)) { $broserqu = "CECT"; }
if (istr("Arima", $uaqu)) { $broserqu = "Arima"; }
if (istr("DAXIAN", $uaqu)) { $broserqu = "DAXIAN"; }
if (istr("DBTEL", $uaqu)) { $broserqu = "DBTEL"; }
if (istr("EASTCOM", $uaqu)) { $broserqu = "EASTCOM"; }
if (istr("Dopod", $uaqu)) { $broserqu = "Dopod"; }
if (istr("kejian", $uaqu)) { $broserqu = "kejian"; }
if (istr("Soutec", $uaqu)) { $broserqu = "Soutec"; }
if (istr("E715", $uaqu)) { $broserqu = "E715"; }
if (istr("SED-", $uaqu)) { $broserqu = "SED-"; }
if (istr("Capitel", $uaqu)) { $broserqu = "Capitel"; }
if (istr("Amoi", $uaqu)) { $broserqu = "Amoi"; }
if (istr("EMOL", $uaqu)) { $broserqu = "EMOL"; }
if (istr("PANDA", $uaqu)) { $broserqu = "PANDA"; }
if (istr("Novarra", $uaqu)) { $broserqu = "Novarra"; }
if (istr("GoWeb", $uaqu)) { $broserqu = "GoWeb"; }
if (istr("neomar", $uaqu)) { $broserqu = "neomar"; }
if (istr("nweb", $uaqu)) { $broserqu = "nweb"; }
if (istr("ibisBrowser", $uaqu)) { $broserqu = "ibisBrowser"; }
if (istr("Nintendo", $uaqu)) { $broserqu = "Nintendo"; }
if (istr("Nitro", $uaqu)) { $broserqu = "Nitro"; }
if (istr("Helio", $uaqu)) { $broserqu = "Helio"; }
if (istr("Google Wireless Transcoder", $uaqu)) { $broserqu = "GWT"; }
if (istr("Syabas", $uaqu)) { $broserqu = "Syabas"; }
if (istr("Huawei", $uaqu)) { $broserqu = "Huawei"; }
if (istr("i-mobile", $uaqu)) { $broserqu = "i-mobile"; }
if (istr("Minuet", $uaqu)) { $broserqu = "Minuet"; }
if (istr("Universe", $uaqu)) { $broserqu = "Universe"; }
if (istr("xbox", $uaqu)) { $broserqu = "xbox"; }
if (istr("JRC\//", $uaqu)) { $broserqu = "JRC"; }
if (istr("Archos", $uaqu)) { $broserqu = "Archos"; }
if (istr("MediaHighway", $uaqu)) { $broserqu = "MediaHighway"; }
if (istr("WILLCOM", $uaqu)) { $broserqu = "WILLCOM"; }
if (istr("L-Mode", $uaqu)) { $broserqu = "L-Mode"; }
if (istr("phonifier", $uaqu)) { $broserqu = "phonifier"; }
if (istr("NGB", $uaqu)) { $broserqu = "Helio"; }
if (istr("iPod", $uaqu)) { $broserqu = "iPod"; }
if (istr("iPhone", $uaqu)) { $broserqu = "iPhone"; }
if (istr("Android", $uaqu)) { $broserqu = "Android"; }
if (istr($uaqu, "Fennec")) { $broserqu = "Fennec"; }
if (istr($uaqu, "TeaShark")) { $broserqu = "TeaShark"; }
if (istr($uaqu, "Skyfire")) { $broserqu = "Skyfire"; }
if (istr("/Bolt\//i", $uaqu)) { $broserqu = "Bolt"; }
if (istr("webOS", $uaqu)) { $broserqu = "webOS"; }
//deteksi resolusi
if (istr("320x200", $uaqu)) { $broserqu = "320x200"; }
if (istr("240x320", $uaqu)) { $broserqu = "240x320"; }
if (istr("320x240", $uaqu)) { $broserqu = "320x240"; }
if (istr("160x120", $uaqu)) { $broserqu = "160x120"; }
if (istr("640x480", $uaqu)) { $broserqu = "640x480"; }
if (istr("360x640", $uaqu)) { $broserqu = "360x640"; }
if (istr("640x360", $uaqu)) { $broserqu = "640x360"; }
if (istr("640x240", $uaqu)) { $broserqu = "640x240"; }
if (istr("320x480", $uaqu)) { $broserqu = "320x480"; }
if (istr("480x640", $uaqu)) { $broserqu = "480x640"; }
if (istr("320x320", $uaqu)) { $broserqu = "320x320"; }
if (istr("160x160", $uaqu)) { $broserqu = "160x160"; }
if (istr("176x220", $uaqu)) { $broserqu = "176x220"; }
if (istr("160x220", $uaqu)) { $broserqu = "160x220"; }
if (istr("120x120", $uaqu)) { $broserqu = "120x120"; }
if (istr("120x160", $uaqu)) { $broserqu = "120x160"; }
if (istr("584x", $uaqu)) { $broserqu = "584x"; }
if (istr("512x", $uaqu)) { $broserqu = "512x"; }
//redirect ke versi mobile
if (istr("UP.Browser", $uaqu)) {
if (istr("UP\.Browser\/[45]", $uaqu)) { header("Location: http://m.namawebsite.com/index.wml"); exit;
} else { $broserqu = "UP.Browser"; }
}
if (istr("AnnyWay", $uaqu) || istr("ccWAP-Browser", $uaqu) || istr("Mitsu", $uaqu) || istr("PALM WAPPER", $uaqu) || istr("Jataayu", $uaqu) || istr("WapRunner", $uaqu) || istr("jBrowserr", $uaqu) || istr("WapView", $uaqu) || istr("Wapaka", $uaqu) || istr("Waptor", $uaqu) || istr("WinWAP", $uaqu) || istr("Pollex", $uaqu) ) {
header("Location: http://m.namawebsite.com/index.wml"); exit;
}
//cek operamini
if (istr("Opera Mini", $uaqu)) { $broserqu = "Opera Mini"; $handheld = "yes"; }
//bh support ( browser hp )
if (istr("J-PHONE", $uaqu)) { $broserqu = "J-PHONE"; }
//opera + fitur ssr
if ($broserqu!="LAINLAIN") { if (istr("Opera", $uaqu)) { $handheld = "yes"; } }
//crawler @keyword cok !
if (istr("OmniExplorer", $uaqu)) { $broserqu = "LAINLAIN"; }
if (istr("Deepnet Explorer", $uaqu)) { $broserqu = "LAINLAIN"; }
if (istr("SP1 Administrative", $uaqu)) { $broserqu = "LAINLAIN"; }
if (istr("crawler", $uaqu)) { $broserqu = "LAINLAIN"; }
if (istr("Mediacom", $uaqu)) { $broserqu = "LAINLAIN"; }
if (istr("FunWebProducts", $uaqu)) { $broserqu = "LAINLAIN"; }
if (istr("Thunderbird", $uaqu)) { $broserqu = "LAINLAIN"; }
if (istr("Media Center", $uaqu)) { $broserqu = "LAINLAIN"; }
if (istr("MediaCenter", $uaqu)) { $broserqu = "LAINLAIN"; }
if (istr("Firefox", $uaqu)) { if (!istr("armv5te", $uaqu)) { $broserqu = "LAINLAIN"; }}
if (istr("FiReflowfox", $uaqu)) { $broserqu = "LAINLAIN"; }
if (istr("MacNewz", $uaqu)) { $broserqu = "LAINLAIN"; }
if (istr("atlinks.jp", $uaqu)) { $broserqu = "LAINLAIN"; }
if (istr("htpdate", $uaqu)) { $broserqu = "LAINLAIN"; }
if (istr("CacheabilityEngine", $uaqu)) { $broserqu = "LAINLAIN"; }
if (istr("OfficeLiveConnector", $uaqu)) { $broserqu = "LAINLAIN"; }
if (istr("OfficeLivePatch", $uaqu)) { $broserqu = "LAINLAIN"; }
if (istr("InfoPath", $uaqu)) { $broserqu = "LAINLAIN"; }
//redirect cok...!!
if ($broserqu != "LAINLAIN") {
header("Location: http://m.namawebsite.com"); exit; }
?>
//by om Ch0c0 ~~
//greetz to @google :v
//greetz to all surabayablackhat member :3
//berawal dari... auto redirect mobile @js :P
$uaqu = getenv("HTTP_USER_AGENT");
$broserqu="LAINLAIN";
function istr($n,$h) {
return stristr($h,$n);
}
//keyword cok !!
if (istr("Dillo", $uaqu)) { $broserqu = "Dillo"; }
if (istr("MIDP-", $uaqu)) { $broserqu = "MIDP-"; }
if (istr("Ericsson", $uaqu)) { $broserqu = "Ericsson"; }
if (istr("SonyEricsson", $uaqu)) { $broserqu = "SonyEricsson"; }
if (istr("AvantGo", $uaqu)) { $broserqu = "AvantGo"; }
if (istr("ATTWS", $uaqu)) { $broserqu = "ATTWS"; }
if (istr("i-mode", $uaqu)) { $broserqu = "i-mode"; }
if (istr("SEC-", $uaqu)) { $broserqu = "SEC-"; }
if (istr("R600", $uaqu)) { $broserqu = "R600"; }
if (istr("R380", $uaqu)) { $broserqu = "R380"; }
if (istr("PHILIPS", $uaqu)) { $broserqu = "PHILIPS"; }
if (istr("Obigo", $uaqu)) { $broserqu = "Obigo"; }
if (istr("Panasonic", $uaqu)) { $broserqu = "Panasonic"; }
if (istr("SEC-SGH", $uaqu)) { $broserqu = "SEC-SGH"; }
if (istr("SHARP-", $uaqu)) { $broserqu = "SHARP-"; }
if (istr("Sendo", $uaqu)) { $broserqu = "Sendo"; }
if (istr("TSM-", $uaqu)) { $broserqu = "TSM-"; }
if (istr("Wapalizer", $uaqu)) { $broserqu = "Wapalizer"; }
if (istr("Wapsilon", $uaqu)) { $broserqu = "Wapsilon"; }
if (istr("Widcomm BtSendto", $uaqu)) { $broserqu = "Widcomm BtSendto"; }
if (istr("WinWAP-PRO", $uaqu)) { $broserqu = "WinWAP-PRO"; }
if (istr("Siemens", $uaqu)) { $broserqu = "Siemens"; }
if (istr("ATTWS", $uaqu)) { $broserqu = "ATTWS"; }
if (istr("Google WAP Proxy", $uaqu)) { $broserqu = "Google WAP Proxy"; }
if (istr("BENQ-", $uaqu)) { $broserqu = "BENQ-"; }
if (istr("EZOS", $uaqu)) { $broserqu = "EZOS"; }
if (istr("IAC", $uaqu)) { $broserqu = "IAC"; }
if (istr("Mitsu", $uaqu)) { $broserqu = "Mitsu"; }
if (istr("Motorola-", $uaqu)) { $broserqu = "Motorola-"; }
if (istr("Cellphone", $uaqu)) { $broserqu = "Cellphone"; }
if (istr("MMEF", $uaqu)) { $broserqu = "MMEF"; }
if (istr("PANTECH", $uaqu)) { $broserqu = "PANTECH"; }
if (istr("PHILIPS", $uaqu)) { $broserqu = "PHILIPS"; }
if (istr("R600", $uaqu)) { $broserqu = "R600"; }
if (istr("WAPPER", $uaqu)) { $broserqu = "WAPPER"; }
if (istr("Sunrise", $uaqu)) { if (!istr("SunriseBrowser", $uaqu)) { $broserqu = "Sunrise"; }}
if (istr("Smartphone", $uaqu)) { $broserqu = "Smartphone"; }
if (istr("SAGEM", $uaqu)) { $broserqu = "SAGEM"; }
if (istr("SIE-", $uaqu)) { $broserqu = "SIE-"; }
if (istr("PHILIPS-", $uaqu)) { $broserqu = "PHILIPS-"; }
if (istr("NEC-", $uaqu)) { $broserqu = "NEC-"; }
if (istr("MOT-", $uaqu)) { $broserqu = "MOT-"; }
if (istr("LGE-", $uaqu)) { $broserqu = "LGE-"; }
if (istr("LG-", $uaqu)) { $broserqu = "LG-"; }
if (istr("Alcatel", $uaqu)) { $broserqu = "Alcatel"; }
if (istr("Arachne", $uaqu)) { $broserqu = "Arachne"; }
if (istr("KBrowser", $uaqu)) { $broserqu = "KBrowser"; }
if (istr("Windows CE", $uaqu)) { $broserqu = "Windows CE"; }
if (istr("WebTV", $uaqu)) { $broserqu = "WebTV"; }
if (istr("EPOC", $uaqu)) { $broserqu = "EPOC"; }
if (istr("Minimo", $uaqu)) { $broserqu = "Minimo"; $handheld = "yes";}
if (istr("PS2-PTV", $uaqu)) { $broserqu = "PS2-PTV"; }
if (istr("Interactor", $uaqu)) { $broserqu = "Interactor"; }
if (istr("Webster", $uaqu)) { $broserqu = "Webster"; }
if (istr("ANTFresco", $uaqu)) { $broserqu = "ANTFresco"; }
if (istr("ArcWeb", $uaqu)) { $broserqu = "ArcWeb"; }
if (istr("Netgem", $uaqu)) { $broserqu = "Netgem"; }
if (istr("Sophia", $uaqu)) { $broserqu = "Sophia"; }
if (istr("opentv", $uaqu)) { $broserqu = "opentv"; }
if (istr("Vagabond", $uaqu)) { if (!istr("Vagabondo", $uaqu)) {$broserqu = "Vagabond"; } }
if (istr("DoCoMo", $uaqu)) { $broserqu = "DoCoMo"; }
if (istr("sharp_pda_browser", $uaqu)) { $broserqu = "sharp_pda_browser"; }
if (istr("DreamPassport", $uaqu)) { $broserqu = "DreamPassport"; }
if (istr("SEGA", $uaqu)) { $broserqu = "SEGA"; }
if (istr("CRI-Browser", $uaqu)) { $broserqu = "CRI-Browser"; }
if (istr("Planetweb", $uaqu)) { $broserqu = "Planetweb"; }
if (istr("DreamKey", $uaqu)) { $broserqu = "DreamKey"; }
if (istr("Sonybrowser", $uaqu)) { $broserqu = "Sonybrowser"; }
if (istr("PocketIE", $uaqu)) { $broserqu = "PocketIE"; }
if (istr("Nokia-Communicator-WWW-Browser", $uaqu)) { $broserqu = "Nokia-Communicator-WWW-Browser"; }
if (istr("OWF", $uaqu)) { $broserqu = "OWF"; }
if (istr("Acorn", $uaqu)) { $broserqu = "Acorn"; }
if (istr("portalmmm", $uaqu)) { $broserqu = "portalmmm"; }
if (istr("ACS-NF", $uaqu)) { $broserqu = "ACS-NF"; }
if (istr("NEC-", $uaqu)) { $broserqu = "NEC-"; }
if (istr("KDDI", $uaqu)) { $broserqu = "KDDI"; }
if (istr("Oregano", $uaqu)) { $broserqu = "Oregano"; }
if (istr("WebsterXL", $uaqu)) { $broserqu = "WebsterXL"; }
if (istr("Atari", $uaqu)) { $broserqu = "Atari"; }
if (istr("iSiloWeb", $uaqu)) { $broserqu = "iSiloWeb"; }
if (istr("EudoraWeb", $uaqu)) { $broserqu = "EudoraWeb"; }
if (istr("Xiino", $uaqu)) { $broserqu = "Xiino"; }
if (istr("Nokia", $uaqu)) { $broserqu = "NokiaPhone"; }
if (istr("Plucker", $uaqu)) { $broserqu = "Plucker"; }
if (istr("embedix", $uaqu)) { $broserqu = "embedix"; }
if (istr("ELinks", $uaqu)) { $broserqu = "ELinks"; }
if (istr("textmode", $uaqu)) { $broserqu = "textmode"; }
if (istr("BlackBerr", $uaqu)) { $broserqu = "BlackBerr"; }
if (istr("NCSA_Mosaic", $uaqu)) { $broserqu = "NCSA_Mosaic"; }
if (istr("JPluck", $uaqu)) { $broserqu = "JPluck"; }
if (istr("HotJava", $uaqu)) { $broserqu = "HotJava"; }
if (istr("ALynx", $uaqu)) { $broserqu = "ALynx"; }
if (istr("iSilo", $uaqu)) { $broserqu = "iSilo"; }
if (istr("OPWV", $uaqu)) { $broserqu = "OPWV"; }
if (istr("lynx", $uaqu)) { $broserqu = "lynx"; }
if (istr("Links", $uaqu)) { if (!istr("NewsGator", $uaqu) && !istr("findlinks", $uaqu)) { $broserqu = "Links";} }
if (istr("w3m", $uaqu)) { $broserqu = "w3m"; }
if (istr("GeOS", $uaqu)) { if (!istr("Geoscience", $uaqu)) { $broserqu = "GeOS"; }}
if (istr("Symbian", $uaqu)) { $broserqu = "Symbian"; }
if (istr("AU-MIC", $uaqu)) { $broserqu = "AU-MIC"; }
if (istr("ReqwirelessWeb", $uaqu)) { $broserqu = "ReqwirelessWeb"; }
if (istr("ICE Browser", $uaqu)) { $broserqu = "ICE Browser"; }
if (istr("amaya", $uaqu)) { $broserqu = "amaya"; }
if (istr("Elaine", $uaqu)) { $broserqu = "Elaine"; }
if (istr("Danger", $uaqu)) { $broserqu = "Danger"; }
if (istr("armv", $uaqu)) { $broserqu = "armv"; }
if (istr("Qtopia", $uaqu)) { $broserqu = "Qtopia"; }
if (istr("Qt Embedded", $uaqu)) { $broserqu = "Qt Embedded"; }
if (istr("MobilePhone", $uaqu)) { $broserqu = "MobilePhone"; }
if (istr("NeXTSTEP", $uaqu)) { $broserqu = "NeXTSTEP"; }
if (istr("PDA", $uaqu)) { $broserqu = "PDA"; }
if (istr("WenSuite", $uaqu)) { $broserqu = "WenSuite"; }
if (istr("WorldWideWeb", $uaqu)) { $broserqu = "WorldWideWeb"; }
if (istr("Contiki", $uaqu)) { $broserqu = "Contiki"; }
if (istr("Cyberdog", $uaqu)) { $broserqu = "Cyberdog"; }
if (istr("ThunderHawk", $uaqu)) { $broserqu = "ThunderHawk"; }
if (istr("Bitstream", $uaqu)) { $broserqu = "Bitstream"; }
if (istr("ftxPBrowser", $uaqu)) { $broserqu = "ftxPBrowser"; }
if (istr("ThunderHawk", $uaqu)) { $broserqu = "ThunderHawk"; }
if (istr("SAMSUNG", $uaqu)) { $broserqu = "SAMSUNG"; }
if (istr("Airmax", $uaqu)) { $broserqu = "Airmax"; }
if (istr("KDDI-S", $uaqu)) { $broserqu = "KDDI"; }
if (istr("Acorn-Browse", $uaqu)) { $broserqu = "Acorn-Browse"; }
if (istr("Palm OS", $uaqu)) { $broserqu = "Palm OS";}
if (istr("WebPro", $uaqu)) { $broserqu = "WebPro";}
if (istr("NetFront", $uaqu)) { $broserqu = "NetFront";}
if (istr("Blazer", $uaqu)) { $broserqu = "Blazer"; }
if (istr("PalmOS", $uaqu)) { $broserqu = "PalmOS";}
if (istr("PalmSource", $uaqu)) { $broserqu = "PalmSource"; }
if (istr("Telit-", $uaqu)) { $broserqu = "Telit-"; }
if (istr("TELME", $uaqu)) { $broserqu = "TELME"; }
if (istr("neomode", $uaqu)) { $broserqu = "neomode"; }
if (istr("chea", $uaqu)) { $broserqu = "chea"; }
if (istr("INNO", $uaqu)) { $broserqu = "INNO"; }
if (istr("Kyocera", $uaqu)) { $broserqu = "Kyocera"; }
if (istr("Maxon", $uaqu)) { $broserqu = "Maxon"; }
if (istr("KPT", $uaqu)) { $broserqu = "KPT"; }
if (istr("IRIS-", $uaqu)) { $broserqu = "IRIS-"; }
if (istr("MODOTTEL", $uaqu)) { $broserqu = "MODOTTEL"; }
if (istr("Vitelcom", $uaqu)) { $broserqu = "Vitelcom"; }
if (istr("TSM-", $uaqu)) { $broserqu = "TSM-"; }
if (istr("WIG Browser", $uaqu)) { $broserqu = "WIG Browser"; }
if (istr("KGT", $uaqu)) { $broserqu = "KGT"; }
if (istr("MobileExplorer", $uaqu)) { $broserqu = "MobileExplorer"; }
if (istr("Rover", $uaqu)) { $broserqu = "Rover"; }
if (istr("Benefon", $uaqu)) { $broserqu = "Benefon"; }
if (istr("Sewon", $uaqu)) { $broserqu = "Sewon"; }
if (istr("Haier", $uaqu)) { $broserqu = "Haier"; }
if (istr("EzWAP", $uaqu)) { $broserqu = "EzWAP"; }
if (istr("ERICY", $uaqu)) { $broserqu = "ERICY"; }
if (istr("AUDIOVOX", $uaqu)) { $broserqu = "AUDIOVOX"; }
if (istr("CDM-", $uaqu)) { $broserqu = "CDM-"; }
if (istr("RIM9", $uaqu)) { $broserqu = "RIM9"; }
if (istr("Go.Web", $uaqu)) { $broserqu = "Go.Web"; }
if (istr("AU\/", $uaqu)) { $broserqu = "AU"; }
if (istr("Vodafone", $uaqu)) { $broserqu = "Vodafone"; }
if (istr("Compal", $uaqu)) { $broserqu = "Compal"; }
if (istr("Klondike", $uaqu)) { $broserqu = "Klondike"; }
if (istr("Scooter", $uaqu)) { $broserqu = "Scooter"; }
if (istr("Skweezer", $uaqu)) { $broserqu = "Skweezer"; }
if (istr("SCEJ PSP", $uaqu)) { $broserqu = "SCEJ PSP"; }
if (istr("PlayStation", $uaqu)) { $broserqu = "PlayStation"; }
if (istr("TCL-", $uaqu)) { $broserqu = "TCL-"; }
if (istr("Xplore", $uaqu)) { if (!istr("Internet Explorer", $uaqu)) { $broserqu = "Xplore"; }}
if (istr("Escape", $uaqu)) { if (!istr("Macintosh", $uaqu)) { $broserqu = "Escape"; }}
if (istr("LG\/U", $uaqu)) { $broserqu = "LG/U"; }
if (istr("Lenovo", $uaqu)) { $broserqu = "Lenovo"; }
if (istr("LGE\/U", $uaqu)) { $broserqu = "LGE/U"; }
if (istr("NEWGEN-", $uaqu)) { $broserqu = "NEWGEN-"; }
if (istr("PT-G", $uaqu)) { $broserqu = "PT-G"; }
if (istr("Sanyo", $uaqu)) { $broserqu = "Sanyo"; }
if (istr("SCH-", $uaqu)) { $broserqu = "SCH-"; }
if (istr("SGH-", $uaqu)) { $broserqu = "SGH-"; }
if (istr("SEC-", $uaqu)) { $broserqu = "SEC-"; }
if (istr("Siemens-", $uaqu)) { $broserqu = "Siemens-"; }
if (istr("TDG-", $uaqu)) { $broserqu = "TDG-"; }
if (istr("TELLME_", $uaqu)) { $broserqu = "TELLME_"; }
if (istr("Tellit-", $uaqu)) { $broserqu = "Tellit-"; }
if (istr("Snoopy", $uaqu)) { $broserqu = "Snoopy"; }
if (istr("Sky MobileMedia", $uaqu)) { $broserqu = "Sky MobileMedia"; }
if (istr("TMT Mobile Internet Browser", $uaqu)) { $broserqu = "TMT Mobile Internet Browser"; }
if (istr("ZTE-", $uaqu)) { $broserqu = "ZTE-"; }
if (istr("KONKA", $uaqu)) { $broserqu = "KONKA"; }
if (istr("CECT", $uaqu)) { $broserqu = "CECT"; }
if (istr("Arima", $uaqu)) { $broserqu = "Arima"; }
if (istr("DAXIAN", $uaqu)) { $broserqu = "DAXIAN"; }
if (istr("DBTEL", $uaqu)) { $broserqu = "DBTEL"; }
if (istr("EASTCOM", $uaqu)) { $broserqu = "EASTCOM"; }
if (istr("Dopod", $uaqu)) { $broserqu = "Dopod"; }
if (istr("kejian", $uaqu)) { $broserqu = "kejian"; }
if (istr("Soutec", $uaqu)) { $broserqu = "Soutec"; }
if (istr("E715", $uaqu)) { $broserqu = "E715"; }
if (istr("SED-", $uaqu)) { $broserqu = "SED-"; }
if (istr("Capitel", $uaqu)) { $broserqu = "Capitel"; }
if (istr("Amoi", $uaqu)) { $broserqu = "Amoi"; }
if (istr("EMOL", $uaqu)) { $broserqu = "EMOL"; }
if (istr("PANDA", $uaqu)) { $broserqu = "PANDA"; }
if (istr("Novarra", $uaqu)) { $broserqu = "Novarra"; }
if (istr("GoWeb", $uaqu)) { $broserqu = "GoWeb"; }
if (istr("neomar", $uaqu)) { $broserqu = "neomar"; }
if (istr("nweb", $uaqu)) { $broserqu = "nweb"; }
if (istr("ibisBrowser", $uaqu)) { $broserqu = "ibisBrowser"; }
if (istr("Nintendo", $uaqu)) { $broserqu = "Nintendo"; }
if (istr("Nitro", $uaqu)) { $broserqu = "Nitro"; }
if (istr("Helio", $uaqu)) { $broserqu = "Helio"; }
if (istr("Google Wireless Transcoder", $uaqu)) { $broserqu = "GWT"; }
if (istr("Syabas", $uaqu)) { $broserqu = "Syabas"; }
if (istr("Huawei", $uaqu)) { $broserqu = "Huawei"; }
if (istr("i-mobile", $uaqu)) { $broserqu = "i-mobile"; }
if (istr("Minuet", $uaqu)) { $broserqu = "Minuet"; }
if (istr("Universe", $uaqu)) { $broserqu = "Universe"; }
if (istr("xbox", $uaqu)) { $broserqu = "xbox"; }
if (istr("JRC\//", $uaqu)) { $broserqu = "JRC"; }
if (istr("Archos", $uaqu)) { $broserqu = "Archos"; }
if (istr("MediaHighway", $uaqu)) { $broserqu = "MediaHighway"; }
if (istr("WILLCOM", $uaqu)) { $broserqu = "WILLCOM"; }
if (istr("L-Mode", $uaqu)) { $broserqu = "L-Mode"; }
if (istr("phonifier", $uaqu)) { $broserqu = "phonifier"; }
if (istr("NGB", $uaqu)) { $broserqu = "Helio"; }
if (istr("iPod", $uaqu)) { $broserqu = "iPod"; }
if (istr("iPhone", $uaqu)) { $broserqu = "iPhone"; }
if (istr("Android", $uaqu)) { $broserqu = "Android"; }
if (istr($uaqu, "Fennec")) { $broserqu = "Fennec"; }
if (istr($uaqu, "TeaShark")) { $broserqu = "TeaShark"; }
if (istr($uaqu, "Skyfire")) { $broserqu = "Skyfire"; }
if (istr("/Bolt\//i", $uaqu)) { $broserqu = "Bolt"; }
if (istr("webOS", $uaqu)) { $broserqu = "webOS"; }
//deteksi resolusi
if (istr("320x200", $uaqu)) { $broserqu = "320x200"; }
if (istr("240x320", $uaqu)) { $broserqu = "240x320"; }
if (istr("320x240", $uaqu)) { $broserqu = "320x240"; }
if (istr("160x120", $uaqu)) { $broserqu = "160x120"; }
if (istr("640x480", $uaqu)) { $broserqu = "640x480"; }
if (istr("360x640", $uaqu)) { $broserqu = "360x640"; }
if (istr("640x360", $uaqu)) { $broserqu = "640x360"; }
if (istr("640x240", $uaqu)) { $broserqu = "640x240"; }
if (istr("320x480", $uaqu)) { $broserqu = "320x480"; }
if (istr("480x640", $uaqu)) { $broserqu = "480x640"; }
if (istr("320x320", $uaqu)) { $broserqu = "320x320"; }
if (istr("160x160", $uaqu)) { $broserqu = "160x160"; }
if (istr("176x220", $uaqu)) { $broserqu = "176x220"; }
if (istr("160x220", $uaqu)) { $broserqu = "160x220"; }
if (istr("120x120", $uaqu)) { $broserqu = "120x120"; }
if (istr("120x160", $uaqu)) { $broserqu = "120x160"; }
if (istr("584x", $uaqu)) { $broserqu = "584x"; }
if (istr("512x", $uaqu)) { $broserqu = "512x"; }
//redirect ke versi mobile
if (istr("UP.Browser", $uaqu)) {
if (istr("UP\.Browser\/[45]", $uaqu)) { header("Location: http://m.namawebsite.com/index.wml"); exit;
} else { $broserqu = "UP.Browser"; }
}
if (istr("AnnyWay", $uaqu) || istr("ccWAP-Browser", $uaqu) || istr("Mitsu", $uaqu) || istr("PALM WAPPER", $uaqu) || istr("Jataayu", $uaqu) || istr("WapRunner", $uaqu) || istr("jBrowserr", $uaqu) || istr("WapView", $uaqu) || istr("Wapaka", $uaqu) || istr("Waptor", $uaqu) || istr("WinWAP", $uaqu) || istr("Pollex", $uaqu) ) {
header("Location: http://m.namawebsite.com/index.wml"); exit;
}
//cek operamini
if (istr("Opera Mini", $uaqu)) { $broserqu = "Opera Mini"; $handheld = "yes"; }
//bh support ( browser hp )
if (istr("J-PHONE", $uaqu)) { $broserqu = "J-PHONE"; }
//opera + fitur ssr
if ($broserqu!="LAINLAIN") { if (istr("Opera", $uaqu)) { $handheld = "yes"; } }
//crawler @keyword cok !
if (istr("OmniExplorer", $uaqu)) { $broserqu = "LAINLAIN"; }
if (istr("Deepnet Explorer", $uaqu)) { $broserqu = "LAINLAIN"; }
if (istr("SP1 Administrative", $uaqu)) { $broserqu = "LAINLAIN"; }
if (istr("crawler", $uaqu)) { $broserqu = "LAINLAIN"; }
if (istr("Mediacom", $uaqu)) { $broserqu = "LAINLAIN"; }
if (istr("FunWebProducts", $uaqu)) { $broserqu = "LAINLAIN"; }
if (istr("Thunderbird", $uaqu)) { $broserqu = "LAINLAIN"; }
if (istr("Media Center", $uaqu)) { $broserqu = "LAINLAIN"; }
if (istr("MediaCenter", $uaqu)) { $broserqu = "LAINLAIN"; }
if (istr("Firefox", $uaqu)) { if (!istr("armv5te", $uaqu)) { $broserqu = "LAINLAIN"; }}
if (istr("FiReflowfox", $uaqu)) { $broserqu = "LAINLAIN"; }
if (istr("MacNewz", $uaqu)) { $broserqu = "LAINLAIN"; }
if (istr("atlinks.jp", $uaqu)) { $broserqu = "LAINLAIN"; }
if (istr("htpdate", $uaqu)) { $broserqu = "LAINLAIN"; }
if (istr("CacheabilityEngine", $uaqu)) { $broserqu = "LAINLAIN"; }
if (istr("OfficeLiveConnector", $uaqu)) { $broserqu = "LAINLAIN"; }
if (istr("OfficeLivePatch", $uaqu)) { $broserqu = "LAINLAIN"; }
if (istr("InfoPath", $uaqu)) { $broserqu = "LAINLAIN"; }
//redirect cok...!!
if ($broserqu != "LAINLAIN") {
header("Location: http://m.namawebsite.com"); exit; }
?>
Sumber : SBH
sangat membantu kaka :)
BalasHapusvisit back http://bang-tutor.blogspot.com