Changeset 16677

Show
Ignore:
Timestamp:
08/27/08 16:39:09 (3 months ago)
Author:
kasimir
Message:

(ticket:94) Adding WHOIS to the OR/IP message

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/web/index.php

    r16009 r16677  
    22742274{ 
    22752275        echo '<tr><td class="tab"><img src="/img/usingtor.png" alt="You are using Tor" /></td><td class="content">'; 
    2276         echo "<span class='usingTor'>It appears that you are using the Tor network</span><br/>Your OR is: $RemoteIP<br/>"; 
     2276        echo "<span class='usingTor'>It appears that you are using the Tor network</span><br/>Your OR is: "; 
     2277        if (defined("WHOISPath")) 
     2278        { 
     2279                echo "<a class='who' href='".WHOISPath.$RemoteIP."'>".$RemoteIP."</a><br/>"; 
     2280        } 
     2281        else 
     2282        { 
     2283                echo $RemoteIP . "<br/>"; 
     2284        } 
    22772285        for($i=1 ; $i < ($Count + 1) ; $i++) 
    22782286        { 
     
    22942302        echo "<img alt='You are not using Tor' src='/img/notusingtor.png'/>"; 
    22952303        echo "</td><td class='content'>"; 
    2296         echo "<span class='notUsingTor'>You do not appear to be using Tor</span><br/>Your IP Address is: $RemoteIP"; 
     2304        echo "<span class='notUsingTor'>You do not appear to be using Tor</span><br/>Your IP Address is: "; 
     2305        if (defined("WHOISPath")) 
     2306        { 
     2307                echo "<a class='who' href='".WHOISPath.$RemoteIP."'>".$RemoteIP."</a>"; 
     2308        } 
     2309        else 
     2310        { 
     2311                echo $RemoteIP; 
     2312        } 
    22972313        echo "</td></tr>"; 
    22982314}