View file .script.php

File size: 0.99Kb
<?php /*
Made by:
ИНОЙ.org
WAP-site:
http://inoy.org
E-mail:
[email protected]
IP-Whois */
echo '<div class="t">IP Whois</div>';
if(isset($ip)) {
if(ereg('^([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3})$',$ip)) {
$ur='http://www.ripe.net/fcgi-bin/whois?form_type=simple&full_query_string=&searchtext='.$ip.'&submit.x=0&submit.y=0';
if($f=file_get_contents($ur)) {
$f=strip_tags($f);
if(eregi('(% This is the RIPE(.)+)LegendBold',$f,$ou)) {
echo '<div class="t3">'.$ip.'</div>';
echo '<div class="t3">'.nl2br($ou[1]).'</div>';
} else {
echo '<div class="t3">406, Not Accepting</div>';
} } else {
echo '<div class="t3">404, File Not Found</div>';
} } else {
echo '<div class="t3">Неверный формат IP..</div>';
} }
echo '<form action="'.$PHP_SELF.'" method="get"><div class="form">
Введите IP:
<input class="t" type="text" name="ip" size="12" value="'.$REMOTE_ADDR.'"/>
<input type="submit" value="ok"/>
</div></form>'; /*
http://[email protected] (c)
*/ ?>