"http://20fox.jp/cgi-bin/static.pl?page=special/mo/MV00000146/top&uid=NULLGWDOCOMO", "au" => "http://20fox.jp/cgi-bin/static.pl?page=special/mo/MV00000146/top", "voda" => "http://20fox.jp/cgi-bin/static.pl?page=special/mo/MV00000146/top&uid=1&sid=ASB2", "others" => "http://movies.foxjapan.com/fountain/index.html" ); if(!$deb){ if(preg_match("/DoCoMo/",$agent)){ header("Location: {$url{'docomo'}}"); }else if(preg_match("/UP\.Browser/",$agent)){ header("Location: {$url{'au'}}"); }else if(preg_match("/J-PHONE/",$agent)){ header("Location: {$url{'voda'}}"); }else if(preg_match("/Vodafone/",$agent)){ header("Location: {$url{'voda'}}"); }else if(preg_match("/SoftBank/",$agent)){ header("Location: {$url{'voda'}}"); }else{ header("Location: {$url{'others'}}"); } }else{ if(preg_match("/DoCoMo/",$agent)){ print("$agent
Jump to {$url{'docomo'}}"); }else if(preg_match("/UP.Browser/",$agent)){ print("$agent
Jump to {$url{'au'}}"); }else if(preg_match("/J-PHONE/",$agent)){ print("$agent
Jump to {$url{'voda'}}"); }else{ header("Location: {$url{'others'}}"); // print("$agent
Jump to {$url{'others'}}"); } } exit; ?>