Файл: admin/whoip.php
Строк: 38
<?
include '.../inc/avtoriz.php';
error_reporting(1);
echo "<title>Краткая справка об IP</title>";
include ('.../inc/config.php');
include ('.../inc/connect.php');
$ipsite = file_get_contents('http://www.db.ripe.net/fcgi-bin/whois?searchtext='.$who['ip']);
//$ipsite = file_get_contents('http://www.db.ripe.net/fcgi-bin/whois?searchtext=92.100.165.127');
//расскоментируй строку сверху, для теста :D
preg_match('|netname:(.*)|', $ipsite, $netname);
preg_match_all('|descr:(.*)|', $ipsite, $desc);
preg_match('|country:(.*)|', $ipsite, $country);
preg_match_all('|address:(.*)|', $ipsite, $adress);
preg_match('|phone:(.*)|', $ipsite, $phone);
echo "<div class='container'><div class='head'>Информанция об IP - ".$who['ip']."</div><hr>";
echo $netname[1]."<br>";
echo $desc[1][0]."<br>";
echo $desc[1][1]."<br>";
echo $desc[1][2]."<br>";
echo $country[1]."<br>";
echo $adress[1][0]."<br>";
echo $adress[1][1]."<br>";
echo $adress[1][2]."<br>";
echo $phone[1]."<hr>";
echo '<input type="button" name="close" value="Закрыть окно" onclick="window.close()">';
?>