|
||||||||
// 携帯電話の場合-------------------------------- // 携帯電話でKDDIを使っている場合 $jumpURLpnKD="m/index.html"; // 携帯電話でDoCoMoを使っている場合 $jumpURLpnDO="m/index.html"; // 携帯電話でボーダフォンを使っている場合 $jumpURLpnJP="m/index.html"; // 携帯電話でボーダフォン3Gを使っている場合 $jumpURLpn3G="m/index.html"; // 携帯電話でソフトバンク3Gを使っている場合 $jumpURLpnSB="m/index.html"; //以下は変更しないでください//////////////////// if(isset($_SERVER['HTTP_USER_AGENT'])){ $agent=$_SERVER['HTTP_USER_AGENT']; if (preg_match ("/\bKDDI\b/i",$agent)||preg_match ("/\bUP\.Browser\b/i",$agent)){ header("Location: $jumpURLpnKD"); } elseif (preg_match ("/\bDoCoMo\b/i",$agent)){ header("Location: $jumpURLpnDO"); } elseif (preg_match ("/\bJ-PHONE\b/i",$agent)){ header("Location: $jumpURLpnJP"); } elseif (preg_match ("/\bVodafone\b/i",$agent)){ header("Location: $jumpURLpn3G"); } elseif (preg_match ("/\bSoftBank\b/i",$agent)){ header("Location: $jumpURLpnSB"); } } ?>
Copyright 2011@ 藤沢風俗 デリナビ AllRight Reserved.