$imode = "http://www.jrock.jp/i/talent/03nakamura/top_free_member_2.html"; $ezweb = "http://www.jrock.jp/ez/talent/03nakamura/top_free_member_2.html"; $softbank = "http://www.jrock.jp/v/talent/03nakamura/top_free_member_2.html"; //$pc = "http://www.kazuhironakamura.com"; $brwsr = $_SERVER{'HTTP_USER_AGENT'}; if (preg_match("/DoCoMo/",$brwsr)){ header("Location: $imode\n\n"); } //EZwebの判別 elseif(strstr($brwsr,'KDDI') || strstr($brwsr,'UP.Browser')){ header("Location: $ezweb\n\n"); } //J-PHONE/Vodafone/Softbankの判別 elseif(strstr($brwsr,'Softbank') || strstr($brwsr,'Vodafone') || strstr($brwsr,'J-PHONE') || strstr($brwsr,'MOT-')){ header("Location: $softbank\n\n"); exit; } //PC版用 //else { //header("Location: $pc\n\n"); //} //exit; ?>