<?php
///////////////////////////////////////
// SportSoft (sportsoft@mail.ru)
// http://owap.su
///////////////////////////////////////
$ip = (string) $_GET['ip'];

if(empty($ip) || !preg_match("#^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$#i", $ip))
{
echo("  IP-.<br />\n");
}
else
{
echo(whois("whois.arin.net", $ip));
}

echo(
"---<br />\n".
"<a href='".PATH."/".VERSION."/?".SESSION."'>".NAME."</a><br />\n");
?>