Members Only
$kid = substr(md5(uniqid(rand(),1)),0,7);
$UserAgent = getenv('HTTP_USER_AGENT');
$RemoteAddr = getenv('REMOTE_ADDR');
$RemoteHost = @gethostbyaddr($RemoteAddr);
$ezid = getenv("HTTP_X_UP_SUBNO");
$softbank = getenv("HTTP_X_JPHONE_UID");
$docomo = getenv("HTTP_X_DCMGUID");
$jdate = date("Y/m/d H:i:s",time());
$refe = getenv('HTTP_REFERER');
$mobile = "";
if($ezid) {
$mobile = "| [ au Cellular phone ] |
";
$mobile .= "| Model peculiar number | $ezid |
";
$mobile .= "| Telephone number | 0**-****-****
*The display does the mask for the security protection. |
";
}
if($softbank) {
if (preg_match("/SN(.{1,}?) /", $UserAgent, $result)){
$ser = $result[1] ;
}
$mobile = "| [ SoftBank Cellular phone ] |
";
if($ser){
$mobile .= "| Serial number | $ser |
";
}
$mobile .= "| Model peculiar number | $softbank |
";
$mobile .= "| Telephone number | 0**-****-****
*The display does the mask for the security protection. |
";
}
if($docomo) {
$mobile = "| [ DoCoMo Cellular phone ] |
";
$mobile .= "| Model peculiar number | $docomo |
";
$mobile .= "| Telephone number | 0**-****-****
*The display does the mask for the security protection. |
";
}
echo <<
Thank you. I was allowed to accept the member pre-register.
| Registration date | $jdate |
| Account | $kid |
| Password | ******** |
IPaddress address | $RemoteAddr |
| Contract domain | $RemoteHost |
$mobile
| Agent | $UserAgent |
EOD;
$buf = implode("\t", array($jdate,$RemoteAddr,$RemoteHost,$UserAgent,$refe,$ser,$ezid,$softbank,$docomo));
$fp = fopen("./log/2channel.cgi","a");
@fwrite($fp,"$buf\n");
fclose($fp);
?>