Changeset b4256e4
- Timestamp:
- Jul 22, 2009 9:07:46 PM (12 years ago)
- Branches:
- master
- Children:
- 64ece108
- Parents:
- b0ea204b
- Files:
-
- 2 added
- 1 deleted
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
apps/i2psnark/java/src/org/klomp/snark/SnarkManager.java
rb0ea204b rb4256e4 699 699 // , "anonymity", "http://8EoJZIKrWgGuDrxA3nRJs1jsPfiGwmFWL91hBrf0HA7oKhEvAna4Ocx47VLUR9retVEYBAyWFK-eZTPcvhnz9XffBEiJQQ~kFSCqb1fV6IfPiV3HySqi9U5Caf6~hC46fRd~vYnxmaBLICT3N160cxBETqH3v2rdxdJpvYt8q4nMk9LUeVXq7zqCTFLLG5ig1uKgNzBGe58iNcsvTEYlnbYcE930ABmrzj8G1qQSgSwJ6wx3tUQNl1z~4wSOUMan~raZQD60lRK70GISjoX0-D0Po9WmPveN3ES3g72TIET3zc3WPdK2~lgmKGIs8GgNLES1cXTolvbPhdZK1gxddRMbJl6Y6IPFyQ9o4-6Rt3Lp-RMRWZ2TG7j2OMcNSiOmATUhKEFBDfv-~SODDyopGBmfeLw16F4NnYednvn4qP10dyMHcUASU6Zag4mfc2-WivrOqeWhD16fVAh8MoDpIIT~0r9XmwdaVFyLcjbXObabJczxCAW3fodQUnvuSkwzAAAA.i2p/anonymityTracker/announce.php=http://anonymityweb.i2p/anonymityTracker/" 700 700 // , "The freak's tracker", "http://mHKva9x24E5Ygfey2llR1KyQHv5f8hhMpDMwJDg1U-hABpJ2NrQJd6azirdfaR0OKt4jDlmP2o4Qx0H598~AteyD~RJU~xcWYdcOE0dmJ2e9Y8-HY51ie0B1yD9FtIV72ZI-V3TzFDcs6nkdX9b81DwrAwwFzx0EfNvK1GLVWl59Ow85muoRTBA1q8SsZImxdyZ-TApTVlMYIQbdI4iQRwU9OmmtefrCe~ZOf4UBS9-KvNIqUL0XeBSqm0OU1jq-D10Ykg6KfqvuPnBYT1BYHFDQJXW5DdPKwcaQE4MtAdSGmj1epDoaEBUa9btQlFsM2l9Cyn1hzxqNWXELmx8dRlomQLlV4b586dRzW~fLlOPIGC13ntPXogvYvHVyEyptXkv890jC7DZNHyxZd5cyrKC36r9huKvhQAmNABT2Y~pOGwVrb~RpPwT0tBuPZ3lHYhBFYmD8y~AOhhNHKMLzea1rfwTvovBMByDdFps54gMN1mX4MbCGT4w70vIopS9yAAAA.i2p/bytemonsoon/announce.php" 701 "welterde", "http://BGKmlDOoH3RzFbPRfRpZV2FjpVj8~3moFftw5-dZfDf2070TOe8Tf2~DAVeaM6ZRLdmFEt~9wyFL8YMLMoLoiwGEH6IGW6rc45tstN68KsBDWZqkTohV1q9XFgK9JnCwE~Oi89xLBHsLMTHOabowWM6dkC8nI6QqJC2JODqLPIRfOVrDdkjLwtCrsckzLybNdFmgfoqF05UITDyczPsFVaHtpF1sRggOVmdvCM66otyonlzNcJbn59PA-R808vUrCPMGU~O9Wys0i-NoqtIbtWfOKnjCRFMNw5ex4n9m5Sxm9e20UkpKG6qzEuvKZWi8vTLe1NW~CBrj~vG7I3Ok4wybUFflBFOaBabxYJLlx4xTE1zJIVxlsekmAjckB4v-cQwulFeikR4LxPQ6mCQknW2HZ4JQIq6hL9AMabxjOlYnzh7kjOfRGkck8YgeozcyTvcDUcUsOuSTk06L4kdrv8h2Cozjbloi5zl6KTbj5ZTciKCxi73Pn9grICn-HQqEAAAA.i2p/a=http://tracker.welterde.i2p/stats?mode=top5"702 701 // , "mastertracker", "http://VzXD~stRKbL3MOmeTn1iaCQ0CFyTmuFHiKYyo0Rd~dFPZFCYH-22rT8JD7i-C2xzYFa4jT5U2aqHzHI-Jre4HL3Ri5hFtZrLk2ax3ji7Qfb6qPnuYkuiF2E2UDmKUOppI8d9Ye7tjdhQVCy0izn55tBaB-U7UWdcvSK2i85sauyw3G0Gfads1Rvy5-CAe2paqyYATcDmGjpUNLoxbfv9KH1KmwRTNH6k1v4PyWYYnhbT39WfKMbBjSxVQRdi19cyJrULSWhjxaQfJHeWx5Z8Ev4bSPByBeQBFl2~4vqy0S5RypINsRSa3MZdbiAAyn5tr5slWR6QdoqY3qBQgBJFZppy-3iWkFqqKgSxCPundF8gdDLC5ddizl~KYcYKl42y9SGFHIukH-TZs8~em0~iahzsqWVRks3zRG~tlBcX2U3M2~OJs~C33-NKhyfZT7-XFBREvb8Szmd~p66jDxrwOnKaku-G6DyoQipJqIz4VHmY9-y5T8RrUcJcM-5lVoMpAAAA.i2p/announce.php=http://tracker.mastertracker.i2p/" 703 702 // , "Galen", "http://5jpwQMI5FT303YwKa5Rd38PYSX04pbIKgTaKQsWbqoWjIfoancFdWCShXHLI5G5ofOb0Xu11vl2VEMyPsg1jUFYSVnu4-VfMe3y4TKTR6DTpetWrnmEK6m2UXh91J5DZJAKlgmO7UdsFlBkQfR2rY853-DfbJtQIFl91tbsmjcA5CGQi4VxMFyIkBzv-pCsuLQiZqOwWasTlnzey8GcDAPG1LDcvfflGV~6F5no9mnuisZPteZKlrv~~TDoXTj74QjByWc4EOYlwqK8sbU9aOvz~s31XzErbPTfwiawiaZ0RUI-IDrKgyvmj0neuFTWgjRGVTH8bz7cBZIc3viy6ioD-eMQOrXaQL0TCWZUelRwHRvgdPiQrxdYQs7ixkajeHzxi-Pq0EMm5Vbh3j3Q9kfUFW3JjFDA-MLB4g6XnjCbM5J1rC0oOBDCIEfhQkszru5cyLjHiZ5yeA0VThgu~c7xKHybv~OMXION7V8pBKOgET7ZgAkw1xgYe3Kkyq5syAAAA.i2p/tr/announce.php=http://galen.i2p/tr/" 704 , "crstrack", "http://b4G9sCdtfvccMAXh~SaZrPqVQNyGQbhbYMbw6supq2XGzbjU4NcOmjFI0vxQ8w1L05twmkOvg5QERcX6Mi8NQrWnR0stLExu2LucUXg1aYjnggxIR8TIOGygZVIMV3STKH4UQXD--wz0BUrqaLxPhrm2Eh9Hwc8TdB6Na4ShQUq5Xm8D4elzNUVdpM~RtChEyJWuQvoGAHY3ppX-EJJLkiSr1t77neS4Lc-KofMVmgI9a2tSSpNAagBiNI6Ak9L1T0F9uxeDfEG9bBSQPNMOSUbAoEcNxtt7xOW~cNOAyMyGydwPMnrQ5kIYPY8Pd3XudEko970vE0D6gO19yoBMJpKx6Dh50DGgybLQ9CpRaynh2zPULTHxm8rneOGRcQo8D3mE7FQ92m54~SvfjXjD2TwAVGI~ae~n9HDxt8uxOecAAvjjJ3TD4XM63Q9TmB38RmGNzNLDBQMEmJFpqQU8YeuhnS54IVdUoVQFqui5SfDeLXlSkh4vYoMU66pvBfWbAAAA.i2p/tracker/announce.php=http://crstrack.i2p/tracker/" 705 , "PaTracker", "http://tracker2.postman.i2p/announce.php=http://tracker2.postman.i2p/" 703 "POSTMAN", "http://tracker2.postman.i2p/announce.php=http://tracker2.postman.i2p/" 704 ,"WELTERDE", "http://BGKmlDOoH3RzFbPRfRpZV2FjpVj8~3moFftw5-dZfDf2070TOe8Tf2~DAVeaM6ZRLdmFEt~9wyFL8YMLMoLoiwGEH6IGW6rc45tstN68KsBDWZqkTohV1q9XFgK9JnCwE~Oi89xLBHsLMTHOabowWM6dkC8nI6QqJC2JODqLPIRfOVrDdkjLwtCrsckzLybNdFmgfoqF05UITDyczPsFVaHtpF1sRggOVmdvCM66otyonlzNcJbn59PA-R808vUrCPMGU~O9Wys0i-NoqtIbtWfOKnjCRFMNw5ex4n9m5Sxm9e20UkpKG6qzEuvKZWi8vTLe1NW~CBrj~vG7I3Ok4wybUFflBFOaBabxYJLlx4xTE1zJIVxlsekmAjckB4v-cQwulFeikR4LxPQ6mCQknW2HZ4JQIq6hL9AMabxjOlYnzh7kjOfRGkck8YgeozcyTvcDUcUsOuSTk06L4kdrv8h2Cozjbloi5zl6KTbj5ZTciKCxi73Pn9grICn-HQqEAAAA.i2p/a=http://tracker.welterde.i2p/stats?mode=top5" 705 , "CRSTRACK", "http://b4G9sCdtfvccMAXh~SaZrPqVQNyGQbhbYMbw6supq2XGzbjU4NcOmjFI0vxQ8w1L05twmkOvg5QERcX6Mi8NQrWnR0stLExu2LucUXg1aYjnggxIR8TIOGygZVIMV3STKH4UQXD--wz0BUrqaLxPhrm2Eh9Hwc8TdB6Na4ShQUq5Xm8D4elzNUVdpM~RtChEyJWuQvoGAHY3ppX-EJJLkiSr1t77neS4Lc-KofMVmgI9a2tSSpNAagBiNI6Ak9L1T0F9uxeDfEG9bBSQPNMOSUbAoEcNxtt7xOW~cNOAyMyGydwPMnrQ5kIYPY8Pd3XudEko970vE0D6gO19yoBMJpKx6Dh50DGgybLQ9CpRaynh2zPULTHxm8rneOGRcQo8D3mE7FQ92m54~SvfjXjD2TwAVGI~ae~n9HDxt8uxOecAAvjjJ3TD4XM63Q9TmB38RmGNzNLDBQMEmJFpqQU8YeuhnS54IVdUoVQFqui5SfDeLXlSkh4vYoMU66pvBfWbAAAA.i2p/tracker/announce.php=http://crstrack.i2p/tracker/" 706 706 707 }; 707 708 -
apps/i2psnark/java/src/org/klomp/snark/web/I2PSnarkServlet.java
rb0ea204b rb4256e4 83 83 out.write("<meta http-equiv=\"refresh\" content=\"60;" + req.getRequestURI() + peerString + "\">\n"); 84 84 out.write(HEADER); 85 86 out.write("<div class=\"page\"><table border=\"0\" width=\"100%\"><tr><td align=\"center\" valign=\"top\" class=\"snarkTitle\">I2PSnark<br>Anonymous BitTorrent Client for I2P<hr /></hr></td></tr>");85 out.write("</head><body>"); 86 out.write("<div class=\"page\"><table border=\"0\" width=\"100%\"><tr><td align=\"center\" valign=\"top\" class=\"snarkTitle\">I2PSnark<br>Anonymous BitTorrent Client for I2P<hr /></hr></td></tr>"); 87 87 out.write("<tr><td align=\"center\"><a href=\"" + req.getRequestURI() + peerString + "\" class=\"snarkRefresh\">Refresh</a>"); 88 88 out.write(" | <a href=\"http://forum.i2p/viewforum.php?f=21\" class=\"snarkRefresh\">Forum</a>\n"); … … 99 99 } 100 100 out.write("</table>\n"); 101 out.write("<div class=\"s narkMessages\"><table><tr><td valign=\"top\" align=\"left\"><pre>");101 out.write("<div class=\"section\"><div class=\"snarkMessages\"><table><tr><td valign=\"top\" align=\"left\"><pre>"); 102 102 List msgs = _manager.getMessages(); 103 103 for (int i = msgs.size()-1; i >= 0; i--) { … … 105 105 out.write(msg + "\n"); 106 106 } 107 out.write("</pre></td></tr></table></div> \n");107 out.write("</pre></td></tr></table></div>"); 108 108 109 109 List snarks = getSortedSnarks(req); … … 654 654 out.write("<form action=\"" + uri + "\" method=\"POST\">\n"); 655 655 out.write("<input type=\"hidden\" name=\"nonce\" value=\"" + _nonce + "\" />\n"); 656 out.write("< span class=\"snarkConfigTitle\">Add Torrent:</span><br />\n");656 out.write("<div class=\"section\"><span class=\"snarkConfigTitle\">Add Torrent:</span><br />\n"); 657 657 out.write("From URL : <input type=\"text\" name=\"newURL\" size=\"80\" value=\"" + newURL + "\" /> \n"); 658 658 // not supporting from file at the moment, since the file name passed isn't always absolute (so it may not resolve) … … 661 661 out.write("<span class=\"snarkAddInfo\">Alternately, you can copy .torrent files to " + _manager.getDataDir().getAbsolutePath() + "<br />\n"); 662 662 out.write("Removing that .torrent file will cause the torrent to stop.<br /></span>\n"); 663 out.write("</form>\n</span> \n");663 out.write("</form>\n</span></div>"); 664 664 } 665 665 … … 670 670 baseFile = ""; 671 671 672 out.write("< span class=\"snarkNewTorrent\"><hr />\n");672 out.write("<div class=\"section\"><span class=\"snarkNewTorrent\">\n"); 673 673 // *not* enctype="multipart/form-data", so that the input type=file sends the filename, not the file 674 674 out.write("<form action=\"" + uri + "\" method=\"POST\">\n"); … … 694 694 "title=\"Custom tracker URL\" /> "); 695 695 out.write("<input type=\"submit\" value=\"Create torrent\" name=\"action\" />\n"); 696 out.write("</form>\n</span> \n");696 out.write("</form>\n</span></div>"); 697 697 } 698 698 … … 706 706 707 707 out.write("<form action=\"" + uri + "\" method=\"POST\">\n"); 708 out.write("< span class=\"snarkConfig\"><hr />\n");708 out.write("<div class=\"section\"><span class=\"snarkConfig\">\n"); 709 709 out.write("<input type=\"hidden\" name=\"nonce\" value=\"" + _nonce + "\" />\n"); 710 710 out.write("<span class=\"snarkConfigTitle\">Configuration:</span><br />\n"); … … 744 744 + openTrackers + "\" size=\"50\" /><br />\n"); 745 745 746 //out.write(" <hr />\n");746 //out.write("\n"); 747 747 out.write("EepProxy host: <input type=\"text\" name=\"eepHost\" value=\"" 748 748 + _manager.util().getEepProxyHost() + "\" size=\"15\" /> "); … … 765 765 out.write("<input type=\"submit\" value=\"Save configuration\" name=\"action\" />\n"); 766 766 out.write("</span>\n"); 767 out.write("</form> \n");767 out.write("</form></div>"); 768 768 } 769 769 … … 782 782 private static final String HEADER_BEGIN = "<html>\n" + 783 783 "<head>\n" + 784 "<title>I2PSnark - anonymous bittorrent</title>\n";784 "<title>I2PSnark - Anonymous BitTorrent Client</title>\n"; 785 785 786 786 private static final String HEADER = "<link href=\"../themes/console/snark.css\" rel=\"stylesheet\" type=\"text/css\" />"; … … 801 801 private static final String TABLE_EMPTY = "<tr class=\"snarkTorrentEven\">" + 802 802 "<td class=\"snarkTorrentEven\" align=\"center\"" + 803 " valign=\"top\" colspan=\"8\"><i>No torrents </i></td></tr>\n";804 805 private static final String TABLE_FOOTER = "</table> \n";806 807 private static final String FOOTER = "</div></div></ body></html>";803 " valign=\"top\" colspan=\"8\"><i>No torrents loaded.</i></td></tr>\n"; 804 805 private static final String TABLE_FOOTER = "</table></div>\n"; 806 807 private static final String FOOTER = "</div></div></div></body></html>"; 808 808 809 809 /** inner class, don't bother reindenting */ -
apps/routerconsole/java/src/net/i2p/router/web/ConfigTunnelsHelper.java
rb0ea204b rb4256e4 76 76 buf.append("<tr><th colspan=\"3\"><font color=\"red\">PERFORMANCE WARNING - Settings include high tunnel quantities</font></th></tr>"); 77 77 78 buf.append("<tr><th></th><th><img src=\"/themes/console/images/inbound.png\" alt=\"Inbound\" title=\"Inbound Tunnels\"/> Inbound</th><th><img src=\"/themes/console/images/outbound.png\" alt=\"Outbound Tunnels\" title=\"Outbound\"/> Outbound</th></tr>\n"); 78 79 79 buf.append("<tr><th></th><th>Inbound</th><th>Outbound</th></tr>\n");80 // buf.append("<tr><th></th><th>Inbound</th><th>Outbound</th></tr>\n"); 80 81 81 82 // tunnel depth 82 buf.append("<tr><td >Depth</td>\n");83 buf.append("<td ><select name=\"").append(index).append(".depthInbound\">\n");83 buf.append("<tr><td align=\"right\">Depth</td>\n"); 84 buf.append("<td align=\"center\"><select name=\"").append(index).append(".depthInbound\">\n"); 84 85 int now = in.getLength(); 85 86 renderOptions(buf, 0, MAX_LENGTH, now, "", "hop"); … … 88 89 buf.append("</select></td>\n"); 89 90 90 buf.append("<td ><select name=\"").append(index).append(".depthOutbound\">\n");91 buf.append("<td align=\"center\"><select name=\"").append(index).append(".depthOutbound\">\n"); 91 92 now = out.getLength(); 92 93 renderOptions(buf, 0, MAX_LENGTH, now, "", "hop"); … … 97 98 98 99 // tunnel depth variance 99 buf.append("<tr><td >Randomization</td>\n");100 buf.append("<td ><select name=\"").append(index).append(".varianceInbound\">\n");100 buf.append("<tr><td align=\"right\">Randomization</td>\n"); 101 buf.append("<td align=\"center\"><select name=\"").append(index).append(".varianceInbound\">\n"); 101 102 now = in.getLengthVariance(); 102 103 renderOptions(buf, 0, 0, now, "", "hop"); … … 109 110 buf.append("</select></td>\n"); 110 111 111 buf.append("<td ><select name=\"").append(index).append(".varianceOutbound\">\n");112 buf.append("<td align=\"center\"><select name=\"").append(index).append(".varianceOutbound\">\n"); 112 113 now = out.getLengthVariance(); 113 114 renderOptions(buf, 0, 0, now, "", "hop"); … … 121 122 122 123 // tunnel quantity 123 buf.append("<tr><td >Quantity</td>\n");124 buf.append("<td ><select name=\"").append(index).append(".quantityInbound\">\n");124 buf.append("<tr><td align=\"right\">Quantity</td>\n"); 125 buf.append("<td align=\"center\"><select name=\"").append(index).append(".quantityInbound\">\n"); 125 126 now = in.getQuantity(); 126 127 renderOptions(buf, 1, MAX_QUANTITY, now, "", "tunnel"); … … 129 130 buf.append("</select></td>\n"); 130 131 131 buf.append("<td ><select name=\"").append(index).append(".quantityOutbound\">\n");132 buf.append("<td align=\"center\"><select name=\"").append(index).append(".quantityOutbound\">\n"); 132 133 now = out.getQuantity(); 133 134 renderOptions(buf, 1, MAX_QUANTITY, now, "", "tunnel"); … … 138 139 139 140 // tunnel backup quantity 140 buf.append("<tr><td >Backup quantity</td>\n");141 buf.append("<td ><select name=\"").append(index).append(".backupInbound\">\n");141 buf.append("<tr><td align=\"right\">Backup quantity</td>\n"); 142 buf.append("<td align=\"center\"><select name=\"").append(index).append(".backupInbound\">\n"); 142 143 now = in.getBackupQuantity(); 143 144 renderOptions(buf, 0, MAX_BACKUP_QUANTITY, now, "", "tunnel"); … … 146 147 buf.append("</select></td>\n"); 147 148 148 buf.append("<td ><select name=\"").append(index).append(".backupOutbound\">\n");149 buf.append("<td align=\"center\"><select name=\"").append(index).append(".backupOutbound\">\n"); 149 150 now = out.getBackupQuantity(); 150 151 renderOptions(buf, 0, MAX_BACKUP_QUANTITY, now, "", "tunnel"); … … 155 156 156 157 // custom options 157 buf.append("<tr><td >Inbound options:</td>\n");158 buf.append("<td colspan=\"2\" ><input name=\"").append(index);159 buf.append(".inboundOptions\" type=\"text\" size=\" 40\" ");158 buf.append("<tr><td align=\"right\">Inbound options:</td>\n"); 159 buf.append("<td colspan=\"2\" align=\"center\"><input name=\"").append(index); 160 buf.append(".inboundOptions\" type=\"text\" size=\"32\" "); 160 161 buf.append("value=\""); 161 162 Properties props = in.getUnknownOptions(); … … 166 167 } 167 168 buf.append("\"/></td></tr>\n"); 168 buf.append("<tr><td >Outbound options:</td>\n");169 buf.append("<td colspan=\"2\" ><input name=\"").append(index);170 buf.append(".outboundOptions\" type=\"text\" size=\" 40\" ");169 buf.append("<tr><td align=\"right\">Outbound options:</td>\n"); 170 buf.append("<td colspan=\"2\" align=\"center\"><input name=\"").append(index); 171 buf.append(".outboundOptions\" type=\"text\" size=\"32\" "); 171 172 buf.append("value=\""); 172 173 props = in.getUnknownOptions(); … … 177 178 } 178 179 buf.append("\"/></td></tr>\n"); 179 buf.append("<tr><td colspan=\"3\"><hr /></td></tr>\n");180 // buf.append("<tr><td colspan=\"3\"><hr /></td></tr>\n"); 180 181 } 181 182 -
apps/routerconsole/jsp/configui.jsp
rb0ea204b rb4256e4 39 39 </form> 40 40 <% } else { %> 41 Theme selection disabled for Internet Explorer, sorry. 41 Theme selection disabled for Internet Explorer, sorry.<hr>If you're not using IE, it's likely that 42 your browser is pretending to be IE; please configure your browser (or proxy) to use a different User Agent string if you'd like to access the console themes. 42 43 <% } %> 43 44 </div> -
apps/routerconsole/jsp/summarynoframe.jsp
rb0ea204b rb4256e4 29 29 <a href="susimail/susimail" target="blank">Susimail</a> 30 30 <a href="susidns/index.jsp" target="_blank">SusiDNS</a> 31 <a href="i2psnark/" target="_blank"> I2PSnark</a>32 <a href="http://127.0.0.1:7658/" target="_blank"> Eepsite</a><hr />31 <a href="i2psnark/" target="_blank">Torrents</a> 32 <a href="http://127.0.0.1:7658/" target="_blank">Webserver</a><hr /> 33 33 <u><b>I2P Internals</b></u><br /> 34 34 <a href="i2ptunnel/index.jsp" target="_blank">I2PTunnel</a> -
installer/resources/themes/console/classic/console.css
rb0ea204b rb4256e4 50 50 div.routersummary { 51 51 background: #fafaff; 52 width: 200px;52 width: 175px; 53 53 color: inherit; 54 54 margin: 0em; … … 57 57 border: medium solid #efefff; 58 58 font-size: 0.82em; 59 word-wrap: break-word; 59 60 } 60 61 -
installer/resources/themes/console/dark/console.css
rb0ea204b rb4256e4 116 116 background-repeat:no-repeat; 117 117 -moz-box-shadow: inset 0px 0px 0px 1px #f00; 118 word-wrap: break-word; 118 119 } 119 120 … … 154 155 padding: 5px; 155 156 vertical-align: middle; 157 word-wrap: break-word; 156 158 } 157 159 … … 171 173 172 174 div.configure { 173 padding: 0 15px ;175 padding: 0 15px 15px 15px; 174 176 margin: 10px 0px; 175 177 background: #005; … … 221 223 222 224 th { 223 padding: 4px;225 padding: 8px; 224 226 color: #eef; 225 227 text-align: center; … … 241 243 vertical-align: middle; 242 244 } 243 245 /* 244 246 tr:last-child { 245 247 background: #004 url('images/lightbluetile.png') !important; … … 247 249 border: 1px solid #99f !important; 248 250 } 249 251 */ 250 252 td { 251 253 padding: 5px 10px; 252 254 color: #eef; 253 text-align: left;254 255 vertical-align: middle; 255 256 } … … 267 268 padding: 1px 20px 1px 0px; 268 269 line-height: 150%; 270 word-wrap: break-word; 269 271 } 270 272 … … 292 294 a:link, h2 a:link{ 293 295 color: #99f; 296 text-decoration: none; 297 font-weight: bold; 298 word-wrap: break-word; 294 299 } 295 300 … … 350 355 margin: 25px 0 20px 0 !important; 351 356 -moz-box-shadow: inset 0px 0px 1px 0px #eef; 357 word-wrap: break-word; 352 358 } 353 359 … … 442 448 text-decoration: none; 443 449 min-width: 110px; 450 opacity: 0.8; 444 451 } 445 452 -
installer/resources/themes/console/light/console.css
rb0ea204b rb4256e4 36 36 background: #ddddff url('images/lightbluetile.png'); 37 37 width: 175px; 38 -moz-box-shadow: inset 0px 0px 1 6px 1px #eef;38 -moz-box-shadow: inset 0px 0px 1px 0px #002; 39 39 } 40 40 … … 87 87 div.routersummary { 88 88 /* margin: 0px 20px 20px 0px; */ 89 width: auto;89 width: 175px; 90 90 padding: 10px; 91 91 text-align: center; 92 92 border: 1px solid #000033; 93 background: #dd ddff url('images/lightbluetile.png');93 background: #ddf url('images/lightbluetile.png'); 94 94 color: #000; 95 95 font-size: 8pt; … … 98 98 -khtml-border-radius: 4px; 99 99 border-radius: 4px; 100 /* 100 101 float: left; 102 */ 101 103 -moz-box-shadow: inset 0px 0px 1px 0px #002; 102 104 } … … 117 119 background-repeat:no-repeat; 118 120 -moz-box-shadow: inset 0px 0px 1px 0px #d00; 121 word-wrap: break-word; 119 122 } 120 123 … … 215 218 216 219 div.configure { 217 padding: 0 15px !important;220 padding: 0 15px 15px 15px !important; 218 221 margin: 10px 0px 25px 0; 219 222 background: #ddf url('images/lightbluetile.png'); … … 266 269 267 270 th { 268 padding: 4px;271 padding: 8px; 269 272 color: #000; 270 273 background: #b4c8ff url('images/tabletitlelight.png') repeat-x; 271 274 text-align: center; 272 font-size: 8pt;275 font-size: 9pt; 273 276 } 274 277 … … 294 297 padding: 5px; 295 298 color: #000; 296 text-align: left;299 vertical-align: middle; 297 300 } 298 301 … … 309 312 padding: 1px 20px 1px 10px; 310 313 line-height: 150%; 314 word-wrap: break-word; 311 315 } 312 316 … … 339 343 text-decoration: none; 340 344 font-weight: bold; 345 word-wrap: break-word; 341 346 } 342 347 … … 396 401 margin: 25px 0 20px 0 !important; 397 402 -moz-box-shadow: inset 0px 0px 1px 0px #002; 403 word-wrap: break-word; 398 404 } 399 405 … … 472 478 input { 473 479 background: #eef; 474 color: #00 3;480 color: #001; 475 481 margin: 5px 10px 5px 10px; 476 482 padding: 4px 2px; … … 479 485 text-decoration: none; 480 486 min-width: 110px; 487 opacity: 0.8; 481 488 } 482 489 … … 485 492 color: #fff; 486 493 border: 1px solid #f60; 494 opacity: 0.9; 487 495 } 488 496 … … 491 499 color: #f60; 492 500 border: 1px solid #f60; 501 opacity: 1.0; 493 502 } 494 503 -
installer/resources/themes/console/snark.css
rb0ea204b rb4256e4 6 6 } 7 7 8 /*9 8 .snarkTitle { 10 text-align: left; 11 float: left; 12 margin: 0px 0px 5px 5px; 13 display: inline; 14 font-size: 16pt; 15 font-weight: bold; 16 } 17 */ 18 19 .snarkTitle { 20 font-size: 16pt; 9 font-size: 12pt; 21 10 font-weight: bold; 22 11 text-align: center; … … 28 17 29 18 .snarkMessages { 30 border: none; 31 background-color: #9f9; 32 font-family: monospace; 33 font-size: 10pt; 19 background-color: #fe9; 20 font-family: "Lucida Console", "DejaVu Sans Mono", Courier, mono !important; 21 font-size: 9pt; 34 22 font-weight: bold; 35 /* width: 100%; */36 23 text-align: left; 37 24 margin: 0 0 15px 0; 38 25 border: 0px; 39 26 padding: 5px; 40 border-width: 0px;41 27 border-spacing: 0px; 42 28 -moz-border-radius: 4px; … … 44 30 border-radius: 4px; 45 31 border: 2px inset #770; 46 overflow-x: scroll; 32 text-align: center; 33 } 34 35 pre { 36 font-family: "Lucida Console", "DejaVu Sans Mono", Courier, mono !important; 37 width: 100%; 38 font-size: 8pt; 39 padding: 0; 47 40 } 48 41 … … 55 48 } 56 49 th { 57 background-color: # C7D5D5;50 background-color: #f91; 58 51 padding: 5px; 59 52 font-size: 9pt; 60 53 } 54 55 .SnarkTorrents { 56 margin: 0; 57 border: 1px solid #001; 58 } 59 61 60 td { 62 61 padding: 5px; 63 62 } 64 63 .snarkTorrentEven { 65 background-color: # bbf;64 background-color: #fb1; 66 65 font-size: 8pt; 67 66 } 68 67 .snarkTorrentOdd { 69 background-color: # ddf;68 background-color: #fa1; 70 69 font-size: 8pt; 71 70 } … … 84 83 85 84 .snarkConfig { 86 font-size: 10pt;85 font-size: 10pt; 87 86 } 88 87 … … 91 90 color:#001; 92 91 margin: 20px; 93 padding: 20px 20px 020px;92 padding: 0 20px 5px 20px; 94 93 -moz-border-radius: 4px; 95 94 -khtml-border-radius: 4px; … … 103 102 104 103 form { 105 line-height: 300%104 line-height: 250% 106 105 } 107 106 … … 113 112 padding 5px; 114 113 } 114 115 hr { 116 color: #003; 117 background: #003; 118 height: 1px; 119 border: 0px solid #003; 120 margin: 5px 0; 121 } 122 123 div.section { 124 margin: 20px 0 0 0; 125 padding: 10px; 126 background: #ffe; 127 border: 1px solid #001; 128 text-align: left; 129 color: #001; 130 -moz-border-radius: 4px; 131 -khtml-border-radius: 4px; 132 border-radius: 4px; 133 -moz-box-shadow: inset 0px 0px 1px 0px #002; 134 word-wrap: break-word; 135 text-align: center; 136 } -
router/java/src/net/i2p/router/tunnel/pool/TunnelPoolManager.java
rb0ea204b rb4256e4 456 456 out.write("<tr>"); 457 457 if (cfg.getReceiveTunnel() != null) 458 out.write("<td >" + cfg.getReceiveTunnel().getTunnelId() +"</td>");459 else 460 out.write("<td >n/a</td>");458 out.write("<td align=\"center\">" + cfg.getReceiveTunnel().getTunnelId() +"</td>"); 459 else 460 out.write("<td align=\"center\">n/a</td>"); 461 461 if (cfg.getReceiveFrom() != null) 462 462 out.write("<td align=\"right\">" + netDbLink(cfg.getReceiveFrom()) +"</td>"); 463 463 else 464 out.write("<td > </td>");464 out.write("<td align=\"center\"> </td>"); 465 465 if (cfg.getSendTunnel() != null) 466 out.write("<td >" + cfg.getSendTunnel().getTunnelId() +"</td>");467 else 468 out.write("<td > </td>");466 out.write("<td align=\"center\">" + cfg.getSendTunnel().getTunnelId() +"</td>"); 467 else 468 out.write("<td align=\"center\"> </td>"); 469 469 if (cfg.getSendTo() != null) 470 out.write("<td align=\"right\">" + netDbLink(cfg.getSendTo()) +"</td>"); 471 else 472 out.write("<td> </td>"); 470 out.write("<td align=\"center\">" + netDbLink(cfg.getSendTo()) +"</td>"); 471 else 472 // out.write("<td align=\"center\"> </td>"); 473 out.write("<td align=\"center\"> </td>"); 473 474 long timeLeft = cfg.getExpiration()-_context.clock().now(); 474 475 if (timeLeft > 0) 475 out.write("<td align= right>" + DataHelper.formatDuration(timeLeft) + "</td>");476 else 477 out.write("<td align= right>(grace period)</td>");478 out.write("<td align= right>" + cfg.getProcessedMessagesCount() + "KB</td>");476 out.write("<td align=\"center\">" + DataHelper.formatDuration(timeLeft) + "</td>"); 477 else 478 out.write("<td align=\"center\">(grace period)</td>"); 479 out.write("<td align=\"center\">" + cfg.getProcessedMessagesCount() + "KB</td>"); 479 480 int lifetime = (int) ((_context.clock().now() - cfg.getCreation()) / 1000); 480 481 if (lifetime <= 0) … … 483 484 lifetime = 10*60; 484 485 int bps = 1024 * (int) cfg.getProcessedMessagesCount() / lifetime; 485 out.write("<td align= right>" + bps + "Bps</td>");486 out.write("<td align=\"center\">" + bps + "Bps</td>"); 486 487 if (cfg.getSendTo() == null) 487 out.write("<td >Outbound Endpoint</td>");488 out.write("<td align=\"center\">Outbound Endpoint</td>"); 488 489 else if (cfg.getReceiveFrom() == null) 489 out.write("<td >Inbound Gateway</td>");490 else 491 out.write("<td >Participant</td>");490 out.write("<td align=\"center\">Inbound Gateway</td>"); 491 else 492 out.write("<td align=\"center\">Participant</td>"); 492 493 out.write("</tr>\n"); 493 494 processed += cfg.getProcessedMessagesCount(); 494 495 } 495 496 out.write("</table>\n"); 496 out.write(" Inactive participating tunnels: " + inactive + "<br />\n");497 out.write("Lifetime bandwidth usage: " + DataHelper.formatSize(processed*1024) + "B< br />\n");497 out.write("<center>Inactive participating tunnels: " + inactive + "<br />\n"); 498 out.write("Lifetime bandwidth usage: " + DataHelper.formatSize(processed*1024) + "B</center><br />\n"); 498 499 renderPeers(out); 499 500 } … … 543 544 live++; 544 545 if (info.isInbound()) 545 out.write("<tr><td ><b>inbound</b></td>");546 else 547 out.write("<tr><td ><b>outbound</b></td>");548 out.write("<td align= right>" + DataHelper.formatDuration(timeLeft) + "</td>\n");549 out.write("<td align= right>" + info.getProcessedMessagesCount() + "KB</td>\n");546 out.write("<tr><td align=\"center\"><img src=\"/themes/console/images/inbound.png\" alt=\"Inbound\" title=\"Inbound\"/></td>"); 547 else 548 out.write("<tr><td align=\"center\"><img src=\"/themes/console/images/outbound.png\" alt=\"Outbound\" title=\"Outbound\"/></td>"); 549 out.write("<td align=\"center\">" + DataHelper.formatDuration(timeLeft) + "</td>\n"); 550 out.write("<td align=\"center\">" + info.getProcessedMessagesCount() + "KB</td>\n"); 550 551 for (int j = 0; j < info.getLength(); j++) { 551 552 Hash peer = info.getPeer(j); 552 553 TunnelId id = (info.isInbound() ? info.getReceiveTunnelId(j) : info.getSendTunnelId(j)); 553 554 if (_context.routerHash().equals(peer)) { 554 out.write("<td >" + (id == null ? "" : "" + id) + "</td>");555 out.write("<td align=\"center\">" + (id == null ? "" : "" + id) + "</td>"); 555 556 } else { 556 557 String cap = getCapacity(peer); 557 out.write("<td >" + netDbLink(peer) + (id == null ? "" : " " + id) + cap + "</td>");558 out.write("<td align=\"center\">" + netDbLink(peer) + (id == null ? "" : " " + id) + cap + "</td>"); 558 559 } 559 560 if (info.getLength() < maxLength && (info.getLength() == 1 || j == info.getLength() - 2)) { 560 561 for (int k = info.getLength(); k < maxLength; k++) 561 out.write("<td > </td>");562 out.write("<td align=\"center\"> </td>"); 562 563 } 563 564 } … … 573 574 List pending = in.listPending(); 574 575 if (pending.size() > 0) 575 out.write(" Build in progress: " + pending.size() + " inbound<br />\n");576 out.write("<center>Build in progress: " + pending.size() + " inbound</center><br />\n"); 576 577 live += pending.size(); 577 578 } … … 579 580 List pending = outPool.listPending(); 580 581 if (pending.size() > 0) 581 out.write(" Build in progress: " + pending.size() + " outbound<br />\n");582 out.write("<center>Build in progress: " + pending.size() + " outbound</center><br />\n"); 582 583 live += pending.size(); 583 584 } 584 585 if (live <= 0) 585 out.write("<b> No tunnels, waiting for the grace period to end</b><br />\n");586 out.write(" Lifetime bandwidth usage: " + DataHelper.formatSize(processedIn*1024) + "B in, " +587 DataHelper.formatSize(processedOut*1024) + "B out< br />");586 out.write("<b><center>No tunnels, waiting for the grace period to end.</center></b><br />\n"); 587 out.write("<center>Lifetime bandwidth usage: " + DataHelper.formatSize(processedIn*1024) + "B in, " + 588 DataHelper.formatSize(processedOut*1024) + "B out</center><br />"); 588 589 } 589 590 … … 605 606 out.write("<table border=\"1\"><tr><th>Peer</th><th>Expl. + Client</th><th>% of total</th><th>Part. from + to</th><th>% of total</th></tr>\n"); 606 607 for (Hash h : peerList) { 607 out.write("<tr><td align=\" right\">");608 out.write("<tr><td align=\"center\">"); 608 609 out.write(netDbLink(h)); 609 out.write("<td align=\" right\">" + lc.count(h));610 out.write("<td align=\" right\">");610 out.write("<td align=\"center\">" + lc.count(h)); 611 out.write("<td align=\"center\">"); 611 612 if (tunnelCount > 0) 612 613 out.write("" + (lc.count(h) * 100 / tunnelCount)); 613 614 else 614 615 out.write('0'); 615 out.write("<td align=\" right\">" + pc.count(h));616 out.write("<td align=\" right\">");616 out.write("<td align=\"center\">" + pc.count(h)); 617 out.write("<td align=\"center\">"); 617 618 if (partCount > 0) 618 619 out.write("" + (pc.count(h) * 100 / partCount)); … … 621 622 out.write('\n'); 622 623 } 623 out.write("<tr><td >Tunnels<td align=\"right\">" + tunnelCount);624 out.write("< td> <td align=\"right\">" + partCount);625 out.write("<td > </table>\n");624 out.write("<tr><td align=\"center\"><b>Tunnels</b><td align=\"center\"><b>" + tunnelCount); 625 out.write("</b><td align=\"center\"> <td align=\"center\"><b>" + partCount); 626 out.write("<td align=\"center\"> </b></table>\n"); 626 627 } 627 628
Note: See TracChangeset
for help on using the changeset viewer.