echo date("Y-m-d H:i:s").'
';
##### ISP SCRIPT START #####
function strGetIP() {
/**if ($_SERVER['HTTP_X_FORWARDED_FOR'])
{
$ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
}
else
{*/
// $ip = getenv(REMOTE_ADDR);
$ip = $_SERVER['REMOTE_ADDR'];
// }
return $ip;
}
$ip=strGetIP(); //ipadresse
ob_start();
echo $ip;
readfile("http://www.ripe.net/perl/whois?form_type=simple&full_query_string=&searchtext={$ip}&do_search=Search");
$re=ob_get_contents();
ob_end_clean();
$re=strip_tags($re);
$data=explode("\n",$re);
foreach($data as $line)
{
if(preg_match("#descr#",$line) && !$checked)
{
echo
"ISP:\040".trim(preg_replace("#descr:#","",$line))."
";
$checked=1;
}
}
##### ISP SCRIPT END #####
$ip = getenv("REMOTE_ADDR");
$host = GetHostByAddr($ip);
echo 'IP: '.$ip.'
Host: '.$host.'
User Agent: '.$_SERVER['HTTP_USER_AGENT'].'
Referer: '.$_SERVER['HTTP_REFERER'].'
Standort: ';
?>