Changeset ae89d2f
- Timestamp:
- Aug 28, 2009 3:12:23 AM (11 years ago)
- Branches:
- master
- Children:
- 6c361679
- Parents:
- 456ed0a
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
apps/routerconsole/jsp/debug.jsp
r456ed0a rae89d2f 2 2 <%@page pageEncoding="UTF-8"%> 3 3 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 4 <html><head><title> DEBUG</title>4 <html><head><title>I2P Router Console - Debug</title> 5 5 <%@include file="css.jsp" %> 6 6 </head><body> 7 7 <%@include file="summary.jsp" %> 8 <h1>Router SKM</h1> 8 9 <div class="main" id="main"> 9 10 <% … … 16 17 * Print out the status for all the SessionKeyManagers 17 18 */ 18 out.print("<h1>Router SKM</h1>"); 19 19 20 ctx.sessionKeyManager().renderStatusHTML(out); 20 21 java.util.Set<net.i2p.data.Destination> clients = ctx.clientManager().listClients(); -
installer/resources/themes/console/classic/console.css
r456ed0a rae89d2f 146 146 color: inherit; 147 147 margin: 0; 148 padding: 7px 1px;148 padding: 10px 1px 7px 1px; 149 149 text-align: center !important; 150 150 border: 5px solid #bbf; -
router/java/src/net/i2p/router/networkdb/kademlia/KademliaNetworkDatabaseFacade.java
r456ed0a rae89d2f 999 999 out.write("<h2>Network Database Contents (<a href=\"netdb.jsp?l=1\">View LeaseSets</a>)</h2>\n"); 1000 1000 if (!_initialized) { 1001 buf.append(" <i>Not initialized</i>\n");1001 buf.append("Not initialized\n"); 1002 1002 out.write(buf.toString()); 1003 1003 out.flush(); … … 1048 1048 for (String routerVersion : versionList) { 1049 1049 int num = versions.count(routerVersion); 1050 buf.append("<tr><td >").append(DataHelper.stripHTML(routerVersion));1051 buf.append("</td><td align=\" right\">").append(num).append("</td></tr>\n");1050 buf.append("<tr><td align=\"center\">").append(DataHelper.stripHTML(routerVersion)); 1051 buf.append("</td><td align=\"center\">").append(num).append("</td></tr>\n"); 1052 1052 } 1053 1053 buf.append("</table>\n"); … … 1067 1067 buf.append(" src=\"/flags.jsp?c=").append(country).append("\"> "); 1068 1068 buf.append(_context.commSystem().getCountryName(country)); 1069 buf.append("</td><td align=\" right\">").append(num).append("</td></tr>\n");1069 buf.append("</td><td align=\"center\">").append(num).append("</td></tr>\n"); 1070 1070 } 1071 1071 buf.append("</table>\n"); … … 1082 1082 private void renderRouterInfo(StringBuilder buf, RouterInfo info, boolean isUs, boolean full) { 1083 1083 String hash = info.getIdentity().getHash().toBase64(); 1084 buf.append("< a name=\"").append(hash.substring(0, 6)).append("\" ></a>");1084 buf.append("<table><tr><th><a name=\"").append(hash.substring(0, 6)).append("\" ></a>"); 1085 1085 if (isUs) { 1086 buf.append("<a name=\"our-info\" ></a><b>Our info: ").append(hash).append("</b>< br>\n");1086 buf.append("<a name=\"our-info\" ></a><b>Our info: ").append(hash).append("</b></th></tr><tr><td>\n"); 1087 1087 } else { 1088 buf.append("<b>Peer info for:</b> ").append(hash).append("<br>\n"); 1088 buf.append("<b>Peer info for:</b> ").append(hash).append("\n"); 1089 buf.append("[<a href=\"netdb.jsp?r=").append(hash.substring(0, 6)).append("\" >Full entry</a>]</th></tr><td>\n"); 1089 1090 } 1090 1091 1091 1092 long age = _context.clock().now() - info.getPublished(); 1092 1093 if (isUs && _context.router().isHidden()) 1093 buf.append(" Hidden, Updated: <i>").append(DataHelper.formatDuration(age)).append(" ago</i><br>\n");1094 buf.append("<b>Hidden, Updated:</b> ").append(DataHelper.formatDuration(age)).append(" ago<br>\n"); 1094 1095 else if (age > 0) 1095 buf.append(" Published: <i>").append(DataHelper.formatDuration(age)).append(" ago</i><br>\n");1096 buf.append("<b>Published:</b> ").append(DataHelper.formatDuration(age)).append(" ago<br>\n"); 1096 1097 else 1097 buf.append(" Published: <i>in ").append(DataHelper.formatDuration(0-age)).append("???</i><br>\n");1098 buf.append(" Address(es): <i>");1098 buf.append("<b>Published:</b> in ").append(DataHelper.formatDuration(0-age)).append("???<br>\n"); 1099 buf.append("<b>Address(es):</b> "); 1099 1100 String country = _context.commSystem().getCountry(info.getIdentity().getHash()); 1100 1101 if(country != null) { … … 1111 1112 } 1112 1113 } 1113 buf.append("</ i><br>\n");1114 buf.append("</td></tr>\n"); 1114 1115 if (full) { 1115 buf.append(" Stats: <br><i><code>\n");1116 buf.append("<tr><td>Stats: <br><code>\n"); 1116 1117 for (Iterator iter = info.getOptions().keySet().iterator(); iter.hasNext(); ) { 1117 1118 String key = (String)iter.next(); … … 1119 1120 buf.append(DataHelper.stripHTML(key)).append(" = ").append(DataHelper.stripHTML(val)).append("<br>\n"); 1120 1121 } 1121 buf.append("</code></ i>\n");1122 buf.append("</code></td></tr>\n"); 1122 1123 } else { 1123 buf.append("<a href=\"netdb.jsp?r=").append(hash.substring(0, 6)).append("\" >Full entry</a>\n"); 1124 } 1125 buf.append("<hr>\n"); 1126 } 1127 1124 } 1125 buf.append("</td></tr>\n"); 1126 } 1127 1128 1128 }
Note: See TracChangeset
for help on using the changeset viewer.