Location: PHPKode > projects > Ads Exchange Server > estigi_0.1.1_RC2/ips/iplookup.php
<?php

include_once("config.php");
include_once("iptools.php");

$ip = (isset($_GET['ip']) ? $_GET['ip'] : $_SERVER['REMOTE_ADDR']);

//Get an example of the database
$ip_Specs = get_Ip_Info($ip, $db_Specs, 1);

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
                      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<title>esTigi IpTools for WebNet777</title>
	<link rel="stylesheet" type="text/css" href="main.css" />
 </head>
<body>
<a href="index.php">
<h1></h1>
</a>

	<br />
	<table class="uno" width="200">
		<tr>
			<td colspan="2" class="menuTitle">
				esTigi Ip Lookup powered with Webnet 777
			</td>
		</tr>
		<tr>
			<td>
				CTRY:
			</td>
			<td>
				<span class="config">
					<?php echo $ip_Specs['ctry']; ?>
				</span>
			</td>
		</tr>
		<tr>
			<td>
				CNTRY:
			</td>
			<td>
				<span class="config">
					<?php echo $ip_Specs['cntry']; ?>
				</span>
			</td>
		</tr>
		<tr>
			<td>
				Country:
			</td>
			<td>
				<span class="config">
					<?php echo $ip_Specs['country']; ?>
				</span>
			</td>
		</tr>
		<tr>
			<td>
				Flag:
			</td>
			<td>
				<span class="config">
					<img src="flags/<?php echo strtolower($ip_Specs['ctry']); ?>.gif" />
				</span>
			</td>
		</tr>
		<tr>
			<td valign="top">
				Start Address:
			</td>
			<td>
				<span class="config">
					<?php printf("%s <br /> (%s)", long2ip($ip_Specs['lower_Bound']), number_format($ip_Specs['lower_Bound'])); ?>
				</span>
			</td>
		</tr>
		<tr>
			<td valign="top">
				End Address:
			</td>
			<td>
				<span class="config">
					<?php printf("%s <br /> (%s)", long2ip($ip_Specs['upper_Bound']), number_format($ip_Specs['upper_Bound'])); ?>
				</span>
			</td>
		</tr>
		<tr>
			<td>
				IP:
			</td>
			<td>
				<span class="config">
					<?php printf("%s <br /> (%s)", long2ip($ip_Specs['decimal']), number_format($ip_Specs['decimal'])); ?>
				</span>
			</td>
		</tr>
	<form action="iplookup.php" method="get" target="_blank">
		<tr>
			<td class="menuTitle" colspan="2">
				New Search - Enter Octets
			</td>
		</tr>
		<tr>
			<td colspan="2">
				<input type="text" class="texto" name="ip" value="<?php echo $ip; ?>">
				<input type="submit" class="texto" value="Lookup">
			</td>
		</tr>
	</form>
</table>

<br />

</body>
</html>
Return current item: Ads Exchange Server