"; //echo "msname = (".getenv("HTTP_X_JPHONE_MSNAME").")
"; $as = getenv("HTTP_USER_AGENT"); if (ereg("^DoCoMo/", $as)) { return "iMode"; } else if ((ereg("^J-PHONE/", $as)) || (getenv("HTTP_X_JPHONE_MSNAME") != "")) { return "Vodafone"; } else if (ereg("^KDDI-.*UP\.Browser/", $as)) { return "EzWAP"; } else if (ereg("^UP\.Browser/", $as)) { return "EzHdml"; } return "other"; } // --------------------------------------------- function htmlJump($adr) { header ("Location: ".$adr); exit(0); } // --------------------------------------------- function hdmlJump($adr) { header ("Content-type: text/x-hdml; charset=Shift_JIS\n\n"); print "\n"; print "\n"; print " \n"; print "\n"; print "\n"; exit(0); } main(); ?>