[or-cvs] r16677: {torstatus} (ticket:94) Adding WHOIS to the OR/IP message (torstatus/trunk/web)
kasimir at seul.org
kasimir at seul.org
Wed Aug 27 22:39:09 UTC 2008
Author: kasimir
Date: 2008-08-27 18:39:09 -0400 (Wed, 27 Aug 2008)
New Revision: 16677
Modified:
torstatus/trunk/web/index.php
Log:
(ticket:94) Adding WHOIS to the OR/IP message
Modified: torstatus/trunk/web/index.php
===================================================================
--- torstatus/trunk/web/index.php 2008-08-27 22:21:53 UTC (rev 16676)
+++ torstatus/trunk/web/index.php 2008-08-27 22:39:09 UTC (rev 16677)
@@ -2273,7 +2273,15 @@
else if ($PositiveMatch_IP == 1)
{
echo '<tr><td class="tab"><img src="/img/usingtor.png" alt="You are using Tor" /></td><td class="content">';
- echo "<span class='usingTor'>It appears that you are using the Tor network</span><br/>Your OR is: $RemoteIP<br/>";
+ echo "<span class='usingTor'>It appears that you are using the Tor network</span><br/>Your OR is: ";
+ if (defined("WHOISPath"))
+ {
+ echo "<a class='who' href='".WHOISPath.$RemoteIP."'>".$RemoteIP."</a><br/>";
+ }
+ else
+ {
+ echo $RemoteIP . "<br/>";
+ }
for($i=1 ; $i < ($Count + 1) ; $i++)
{
echo "Server name: <a class='tab' href='router_detail.php?FP=$TorNodeFP[$i]'>$TorNodeName[$i]</a><br/>";
@@ -2293,7 +2301,15 @@
echo "<tr><td class='tab'>";
echo "<img alt='You are not using Tor' src='/img/notusingtor.png'/>";
echo "</td><td class='content'>";
- echo "<span class='notUsingTor'>You do not appear to be using Tor</span><br/>Your IP Address is: $RemoteIP";
+ echo "<span class='notUsingTor'>You do not appear to be using Tor</span><br/>Your IP Address is: ";
+ if (defined("WHOISPath"))
+ {
+ echo "<a class='who' href='".WHOISPath.$RemoteIP."'>".$RemoteIP."</a>";
+ }
+ else
+ {
+ echo $RemoteIP;
+ }
echo "</td></tr>";
}
?>
More information about the tor-commits
mailing list