?? clientinfo.php
字號:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title><?=$titleOfPage?></title>
<link rel="stylesheet" type="text/css" href="templates/<?=$theme?>/style.css" />
</head>
<body>
<?php
$clientip=$_SERVER['REMOTE_ADDR'];
$clienthostname2=gethostbyaddr($clientip);
$clientbrowser=$_SERVER['HTTP_USER_AGENT'];
$refererpage=$_SERVER['HTTP_REFERER'];
?>
<? backToIndex(); ?>
<h2>Ip Information Tool</h2>
<table class="tableBorder" border="0" cellpadding="3" cellspacing="0">
<tr> <td class="lineBest"> Client IP address</td>
<td class="thAll"> <?=$clientip?> </td> </tr>
<tr> <td class="lineBest"> Client hostname (done manually)</td>
<td class="thAll"> <?=$clienthostname2?> </td> </tr>
<tr> <td class="lineBest"> Query hostname at <A HREF="http://www.ripe.net">Ripe.Net Database</A> </td>
<td class="thAll">
<form name="whoisform" action="http://www.ripe.net/whois?form_type=simple&do_search=Search" target="_blank" method="GET">
<input type="text" size="20" name="searchtext" value="<?=$clientip?>" />
<input type="submit" value="Search" />
</form>
</td> </tr>
<tr> <td class="lineBest"> Query hostname at <A HREF="http://wq.apnic.net">Apnic.Net Database</A> </td>
<td class="thAll">
<form method="post" action="http://wq.apnic.net/apnic-bin/whois.pl" enctype="application/x-www-form-urlencoded" target="_blank">
<input type="text" name="searchtext" value="<?=$clientip?>" size="20" />
<input type="submit" name="do_search" value="Search" />
</form>
</td> </tr>
<tr> <td class="lineBest"> Exec a PING on IP Address</td>
<td class="thAll">
<form method="post" action="index.php?modules=ipinfo">
<input type="text" name="pingip" value="<?=$clientip?>" size="20" />
<input type="hidden" name="action" value="ping" />
<input type="submit" name="do_ping" value="Ping!" />
</form>
</td> </tr>
<tr> <td class="lineBest"> Exec a TRACEROUTE on IP Address</td>
<td class="thAll">
<form method="post" action="index.php?modules=ipinfo">
<input type="text" name="traceip" value="<?=$clientip?>" size="20" />
<input type="hidden" name="action" value="traceroute" />
<input type="submit" name="do_trace" value="Trace!" />
</form>
</td> </tr>
</table><p>
<? if ($_POST["action"]=="ping") {
echo "<div><textarea rows=\"15\" cols=\"60\">\n";
exec("ping -c 5 ".$_POST["pingip"],$output);
foreach($output as $line) {
echo $line."\n";
}
echo "</textarea></div>\n";
} ?>
<? if ($_POST["action"]=="traceroute") {
echo "<div><textarea rows=\"15\" cols=\"60\">\n";
exec("traceroute -n ".$_POST["traceip"],$output);
foreach($output as $line) {
echo $line."\n";
}
echo "</textarea></div>\n";
} ?>
</p>
<? author(); ?>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -