[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] r17845: {torstatus} (ticket:124) Changing router details links for dynamic graph (torstatus/trunk/web)
Author: kasimir
Date: 2009-01-02 11:47:57 -0500 (Fri, 02 Jan 2009)
New Revision: 17845
Modified:
torstatus/trunk/web/config_template.php
torstatus/trunk/web/router_detail.php
Log:
(ticket:124) Changing router details links for dynamic graphs
Modified: torstatus/trunk/web/config_template.php
===================================================================
--- torstatus/trunk/web/config_template.php 2009-01-02 16:47:07 UTC (rev 17844)
+++ torstatus/trunk/web/config_template.php 2009-01-02 16:47:57 UTC (rev 17845)
@@ -56,12 +56,11 @@
// Comment the following line if you do not provide a WHOIS service
define("WHOISPath","whois.php?ip=");
-// If you want to provide a bandwidth history, uncomment the followin lines
+// If you wish to provide a bandwidth history, uncomment the following lines
//$BandwidthHistory = "true";
-$BandwidthURL = "bandwidthgraph/";
-$SSLBandwidthURL = "bandwidthgraph/";
+$BandwidthURL = "/cgi-bin/perlgraph/bandwidthgraph.pl";
+$SSLBandwidthURL = "/cgi-bin/perlgraph/bandwidthgraph.pl";
-
// }}}
// ++++++++++ Mirrors ++++++++++ {{{
Modified: torstatus/trunk/web/router_detail.php
===================================================================
--- torstatus/trunk/web/router_detail.php 2009-01-02 16:47:07 UTC (rev 17844)
+++ torstatus/trunk/web/router_detail.php 2009-01-02 16:47:57 UTC (rev 17845)
@@ -619,23 +619,23 @@
<table class="bwhistory">
<tr>
<td>
- <img src="<?php echo $BandwidthURL . strtoupper($Fingerprint) . "_d.png"; ?>" alt="Past Day's Bandwidth"/>
+ <img src="<?php echo $BandwidthURL . "?fp=" . strtoupper($Fingerprint) . "&name=" . urlencode($Name) . "&time=day"; ?>" alt="Past Day's Bandwidth"/>
</td>
<td>
- <img src="<?php echo $BandwidthURL . strtoupper($Fingerprint) . "_w.png"; ?>" alt="Past Week's Bandwidth"/>
+ <img src="<?php echo $BandwidthURL . "?fp=" . strtoupper($Fingerprint) . "&name=" . urlencode($Name) . "&time=week"; ?>" alt="Past Week's Bandwidth"/>
</td>
</tr>
<tr>
<td>
- <img src="<?php echo $BandwidthURL . strtoupper($Fingerprint) . "_m.png"; ?>" alt="Past Month's Bandwidth"/>
+ <img src="<?php echo $BandwidthURL . "?fp=" . strtoupper($Fingerprint) . "&name=" . urlencode($Name) . "&time=month"; ?>" alt="Past Month's Bandwidth"/>
</td>
<td>
- <img src="<?php echo $BandwidthURL . strtoupper($Fingerprint) . "_3m.png"; ?>" alt="Past Three Month's Bandwidth"/>
+ <img src="<?php echo $BandwidthURL . "?fp=" . strtoupper($Fingerprint) . "&name=" . urlencode($Name) . "&time=3months"; ?>" alt="Past Three Month's Bandwidth"/>
</td>
</tr>
<tr>
<td>
- <img src="<?php echo $BandwidthURL . strtoupper($Fingerprint) . "_y.png"; ?>" alt="Past Year's Bandwidth"/>
+ <img src="<?php echo $BandwidthURL . "?fp=" . strtoupper($Fingerprint) . "&name=" . urlencode($Name) . "&time=year"; ?>" alt="Past Year's Bandwidth"/>
</td>
<td>
</td>