[or-cvs] r14708: (ticket 76) Making bad exits and bad directories highlighted (torstatus/trunk/web)
kasimir at seul.org
kasimir at seul.org
Sat May 24 20:39:16 UTC 2008
Author: kasimir
Date: 2008-05-24 16:39:15 -0400 (Sat, 24 May 2008)
New Revision: 14708
Modified:
torstatus/trunk/web/index.php
Log:
(ticket 76) Making bad exits and bad directories highlighted
Modified: torstatus/trunk/web/index.php
===================================================================
--- torstatus/trunk/web/index.php 2008-05-24 19:43:48 UTC (rev 14707)
+++ torstatus/trunk/web/index.php 2008-05-24 20:39:15 UTC (rev 14708)
@@ -505,68 +505,6 @@
$HeaderRowString .= "Contact</a></td>\n";
break;
- case "BadDir":
- if(($FBadDirectory == '0') && ($SR == 'FBadDirectory'))
- {
- $HeaderRowString .= "<td class='HRFNOS'>";
- }
- else if(($FBadDirectory == '0') && ($SR != 'FBadDirectory'))
- {
- $HeaderRowString .= "<td class='HRFNO'>";
- }
- else if(($FBadDirectory == '1') && ($SR == 'FBadDirectory'))
- {
- $HeaderRowString .= "<td class='HRFYESS'>";
- }
- else if(($FBadDirectory == '1') && ($SR != 'FBadDirectory'))
- {
- $HeaderRowString .= "<td class='HRFYES'>";
- }
- else if(($FBadDirectory == 'OFF') && ($SR == 'FBadDirectory'))
- {
- $HeaderRowString .= "<td class='HRS'>";
- }
- else
- {
- $HeaderRowString .= "<td class='HRN'>";
- }
- //if ($SR == 'FBadDirectory' && $SO == 'Asc'){$HeaderRowString .= "<a class='header' href='$Self?SR=FBadDirectory&SO=Desc'>";}
- //else if ($SR == 'FBadDirectory' && $SO == 'Desc'){$HeaderRowString .= "<a class='header' href='$Self?SR=FBadDirectory&SO=Asc'>";}
- //else $HeaderRowString .= "<a class='header' href='$Self?SR=FBadDirectory&SO=Asc'>";
- //$HeaderRowString .= "Bad Dir</a></td>\n";
- break;
-
- case "BadExit":
- if(($FBadExit == '0') && ($SR == 'FBadExit'))
- {
- $HeaderRowString .= "<td class='HRFNOS'>";
- }
- else if(($FBadExit == '0') && ($SR != 'FBadExit'))
- {
- $HeaderRowString .= "<td class='HRFNO'>";
- }
- else if(($FBadExit == '1') && ($SR == 'FBadExit'))
- {
- $HeaderRowString .= "<td class='HRFYESS'>";
- }
- else if(($FBadExit == '1') && ($SR != 'FBadExit'))
- {
- $HeaderRowString .= "<td class='HRFYES'>";
- }
- else if(($FBadExit == 'OFF') && ($SR == 'FBadExit'))
- {
- $HeaderRowString .= "<td class='HRS'>";
- }
- else
- {
- $HeaderRowString .= "<td class='HRN'>";
- }
- //if ($SR == 'FBadExit' && $SO == 'Asc'){$HeaderRowString .= "<a class='header' href='$Self?SR=FBadExit&SO=Desc'>";}
- //else if ($SR == 'FBadExit' && $SO == 'Desc'){$HeaderRowString .= "<a class='header' href='$Self?SR=FBadExit&SO=Asc'>";}
- //else $HeaderRowString .= "<a class='header' href='$Self?SR=FBadExit&SO=Asc'>";
- $HeaderRowString .= "Bad Exit</a></td>\n";
- break;
-
}
}
@@ -576,7 +514,7 @@
function DisplayRouterRow()
{
global $CurrentResultSet, $record, $ColumnList_ACTIVE, $country_codes;
- if ($record['BadExit'])
+ if ($record['BadExit'] | $record['BadDir'])
{
echo "<tr class='B'>";
}
@@ -786,15 +724,14 @@
echo "<td class='TDS'>" . $record[$value] . "</td>";
break;
- case
- (
- $value == "BadDir" ||
- $value == "BadExit"
- ):
+ //case
+ //(
+ // $value == "BadDir" ||
+ // $value == "BadExit"
+ //):
+ //echo "<td class='F" . $record[$value] . "'></td>";
+ //break;
- echo "<td class='F" . $record[$value] . "'></td>";
- break;
-
case
($value == "Uptime"):
More information about the tor-commits
mailing list