forked from I2P_Developers/i2p.i2p
HTML validation fixes
This commit is contained in:
@ -1554,7 +1554,7 @@ public class I2PSnarkServlet extends Default {
|
|||||||
}
|
}
|
||||||
out.write("<tr><td>");
|
out.write("<tr><td>");
|
||||||
out.write(_("I2CP options"));
|
out.write(_("I2CP options"));
|
||||||
out.write(": <td><textarea name=\"i2cpOpts\" cols=\"60\" rows=\"1\" style=\"whitespace:nowrap\" spellcheck=\"false\" >"
|
out.write(": <td><textarea name=\"i2cpOpts\" cols=\"60\" rows=\"1\" wrap=\"off\" spellcheck=\"false\" >"
|
||||||
+ opts.toString() + "</textarea><br>\n" +
|
+ opts.toString() + "</textarea><br>\n" +
|
||||||
|
|
||||||
"<tr><td> <td><input type=\"submit\" class=\"accept\" value=\"");
|
"<tr><td> <td><input type=\"submit\" class=\"accept\" value=\"");
|
||||||
|
@ -52,7 +52,7 @@ public class ConfigClientsHelper extends HelperBase {
|
|||||||
if ((mode == 0 && disabled) ||
|
if ((mode == 0 && disabled) ||
|
||||||
(mode == 1 && (!disabled) && (!ssl)) ||
|
(mode == 1 && (!disabled) && (!ssl)) ||
|
||||||
(mode == 2 && (!disabled) && ssl))
|
(mode == 2 && (!disabled) && ssl))
|
||||||
return "checked=\"true\"";
|
return "checked=\"checked\"";
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -60,7 +60,7 @@ public class ConfigClientsHelper extends HelperBase {
|
|||||||
public String getAuth() {
|
public String getAuth() {
|
||||||
boolean enabled = _context.getBooleanProperty(PROP_AUTH);
|
boolean enabled = _context.getBooleanProperty(PROP_AUTH);
|
||||||
if (enabled)
|
if (enabled)
|
||||||
return "checked=\"true\"";
|
return "checked=\"checked\"";
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -253,9 +253,9 @@ public class ConfigClientsHelper extends HelperBase {
|
|||||||
}
|
}
|
||||||
buf.append("</td><td align=\"center\" width=\"10%\"><input type=\"checkbox\" class=\"optbox\" name=\"").append(index).append(".enabled\" value=\"true\" ");
|
buf.append("</td><td align=\"center\" width=\"10%\"><input type=\"checkbox\" class=\"optbox\" name=\"").append(index).append(".enabled\" value=\"true\" ");
|
||||||
if (enabled) {
|
if (enabled) {
|
||||||
buf.append("checked=\"true\" ");
|
buf.append("checked=\"checked\" ");
|
||||||
if (ro)
|
if (ro)
|
||||||
buf.append("disabled=\"true\" ");
|
buf.append("disabled=\"disabled\" ");
|
||||||
}
|
}
|
||||||
buf.append("></td><td align=\"center\" width=\"15%\">");
|
buf.append("></td><td align=\"center\" width=\"15%\">");
|
||||||
// The icons were way too much, so there's an X in each button class,
|
// The icons were way too much, so there's an X in each button class,
|
||||||
|
@ -80,7 +80,7 @@ public class ConfigLoggingHelper extends HelperBase {
|
|||||||
String l = levels[i];
|
String l = levels[i];
|
||||||
buf.append("<option value=\"").append(l).append('\"');
|
buf.append("<option value=\"").append(l).append('\"');
|
||||||
if (l.equals(cur))
|
if (l.equals(cur))
|
||||||
buf.append(" selected=\"true\"");
|
buf.append(" selected=\"selected\"");
|
||||||
buf.append('>').append(_(l)).append("</option>\n");
|
buf.append('>').append(_(l)).append("</option>\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -121,7 +121,7 @@ public class ConfigLoggingHelper extends HelperBase {
|
|||||||
|
|
||||||
StringBuilder buf = new StringBuilder(65536);
|
StringBuilder buf = new StringBuilder(65536);
|
||||||
buf.append("<select name=\"newlogclass\">\n" +
|
buf.append("<select name=\"newlogclass\">\n" +
|
||||||
"<option value=\"\" selected=\"true\">")
|
"<option value=\"\" selected=\"selected\">")
|
||||||
.append(_("Select a class to add"))
|
.append(_("Select a class to add"))
|
||||||
.append("</option>\n");
|
.append("</option>\n");
|
||||||
|
|
||||||
|
@ -20,8 +20,8 @@ public class ConfigNetHelper extends HelperBase {
|
|||||||
public final static String PROP_I2NP_NTCP_PORT = "i2np.ntcp.port";
|
public final static String PROP_I2NP_NTCP_PORT = "i2np.ntcp.port";
|
||||||
public final static String PROP_I2NP_NTCP_AUTO_PORT = "i2np.ntcp.autoport";
|
public final static String PROP_I2NP_NTCP_AUTO_PORT = "i2np.ntcp.autoport";
|
||||||
public final static String PROP_I2NP_NTCP_AUTO_IP = "i2np.ntcp.autoip";
|
public final static String PROP_I2NP_NTCP_AUTO_IP = "i2np.ntcp.autoip";
|
||||||
private final static String CHECKED = " checked=\"true\" ";
|
private final static String CHECKED = " checked=\"checked\" ";
|
||||||
private final static String DISABLED = " disabled=\"true\" ";
|
private final static String DISABLED = " disabled=\"disabled\" ";
|
||||||
|
|
||||||
public String getUdphostname() {
|
public String getUdphostname() {
|
||||||
return _context.getProperty(UDPTransport.PROP_EXTERNAL_HOST, "");
|
return _context.getProperty(UDPTransport.PROP_EXTERNAL_HOST, "");
|
||||||
@ -250,7 +250,7 @@ public class ConfigNetHelper extends HelperBase {
|
|||||||
}
|
}
|
||||||
buf.append("<option style=\"text-align: right;\" value=\"").append(val).append("\" ");
|
buf.append("<option style=\"text-align: right;\" value=\"").append(val).append("\" ");
|
||||||
if (pct == val) {
|
if (pct == val) {
|
||||||
buf.append("selected=\"true\" ");
|
buf.append("selected=\"selected\" ");
|
||||||
found = true;
|
found = true;
|
||||||
}
|
}
|
||||||
buf.append(">").append(val).append("%</option>\n");
|
buf.append(">").append(val).append("%</option>\n");
|
||||||
|
@ -56,7 +56,7 @@ public class ConfigReseedHelper extends HelperBase {
|
|||||||
if ((mode == 0 && (!disabled) && (!required)) ||
|
if ((mode == 0 && (!disabled) && (!required)) ||
|
||||||
(mode == 1 && (!disabled) && required) ||
|
(mode == 1 && (!disabled) && required) ||
|
||||||
(mode == 2 && disabled))
|
(mode == 2 && disabled))
|
||||||
return "checked=\"true\"";
|
return "checked=\"checked\"";
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -82,7 +82,7 @@ public class ConfigReseedHelper extends HelperBase {
|
|||||||
private String checked(String prop) {
|
private String checked(String prop) {
|
||||||
boolean enabled = _context.getBooleanProperty(prop);
|
boolean enabled = _context.getBooleanProperty(prop);
|
||||||
if (enabled)
|
if (enabled)
|
||||||
return "checked=\"true\"";
|
return "checked=\"checked\"";
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -172,7 +172,7 @@ public class ConfigTunnelsHelper extends HelperBase {
|
|||||||
if (!props.isEmpty()) {
|
if (!props.isEmpty()) {
|
||||||
buf.append("<tr><td align=\"right\" class=\"mediumtags\">" + _("Inbound options") + ":</td>\n" +
|
buf.append("<tr><td align=\"right\" class=\"mediumtags\">" + _("Inbound options") + ":</td>\n" +
|
||||||
"<td colspan=\"2\" align=\"center\"><input name=\"").append(index);
|
"<td colspan=\"2\" align=\"center\"><input name=\"").append(index);
|
||||||
buf.append(".inboundOptions\" type=\"text\" size=\"32\" disabled=\"true\" " +
|
buf.append(".inboundOptions\" type=\"text\" size=\"32\" disabled=\"disabled\" " +
|
||||||
"value=\"");
|
"value=\"");
|
||||||
for (Iterator iter = props.keySet().iterator(); iter.hasNext(); ) {
|
for (Iterator iter = props.keySet().iterator(); iter.hasNext(); ) {
|
||||||
String prop = (String)iter.next();
|
String prop = (String)iter.next();
|
||||||
@ -185,7 +185,7 @@ public class ConfigTunnelsHelper extends HelperBase {
|
|||||||
if (!props.isEmpty()) {
|
if (!props.isEmpty()) {
|
||||||
buf.append("<tr><td align=\"right\" class=\"mediumtags\">" + _("Outbound options") + ":</td>\n" +
|
buf.append("<tr><td align=\"right\" class=\"mediumtags\">" + _("Outbound options") + ":</td>\n" +
|
||||||
"<td colspan=\"2\" align=\"center\"><input name=\"").append(index);
|
"<td colspan=\"2\" align=\"center\"><input name=\"").append(index);
|
||||||
buf.append(".outboundOptions\" type=\"text\" size=\"32\" disabled=\"true\" " +
|
buf.append(".outboundOptions\" type=\"text\" size=\"32\" disabled=\"disabled\" " +
|
||||||
"value=\"");
|
"value=\"");
|
||||||
for (Iterator iter = props.keySet().iterator(); iter.hasNext(); ) {
|
for (Iterator iter = props.keySet().iterator(); iter.hasNext(); ) {
|
||||||
String prop = (String)iter.next();
|
String prop = (String)iter.next();
|
||||||
@ -205,7 +205,7 @@ public class ConfigTunnelsHelper extends HelperBase {
|
|||||||
for (int i = min; i <= max; i++) {
|
for (int i = min; i <= max; i++) {
|
||||||
buf.append("<option value=\"").append(i).append("\" ");
|
buf.append("<option value=\"").append(i).append("\" ");
|
||||||
if (i == now)
|
if (i == now)
|
||||||
buf.append("selected=\"true\" ");
|
buf.append("selected=\"selected\" ");
|
||||||
buf.append(">").append(ngettext(DUMMY1 + name, DUMMY2 + name + 's', i));
|
buf.append(">").append(ngettext(DUMMY1 + name, DUMMY2 + name + 's', i));
|
||||||
buf.append("</option>\n");
|
buf.append("</option>\n");
|
||||||
}
|
}
|
||||||
|
@ -14,7 +14,7 @@ public class ConfigUIHelper extends HelperBase {
|
|||||||
for (String theme : themes) {
|
for (String theme : themes) {
|
||||||
buf.append("<input type=\"radio\" class=\"optbox\" name=\"theme\" ");
|
buf.append("<input type=\"radio\" class=\"optbox\" name=\"theme\" ");
|
||||||
if (theme.equals(current))
|
if (theme.equals(current))
|
||||||
buf.append("checked=\"true\" ");
|
buf.append("checked=\"checked\" ");
|
||||||
buf.append("value=\"").append(theme).append("\">").append(_(theme)).append("<br>\n");
|
buf.append("value=\"").append(theme).append("\">").append(_(theme)).append("<br>\n");
|
||||||
}
|
}
|
||||||
return buf.toString();
|
return buf.toString();
|
||||||
@ -73,7 +73,7 @@ public class ConfigUIHelper extends HelperBase {
|
|||||||
// we use "lang" so it is set automagically in CSSHelper
|
// we use "lang" so it is set automagically in CSSHelper
|
||||||
buf.append("<input type=\"radio\" class=\"optbox\" name=\"lang\" ");
|
buf.append("<input type=\"radio\" class=\"optbox\" name=\"lang\" ");
|
||||||
if (langs[i].equals(current))
|
if (langs[i].equals(current))
|
||||||
buf.append("checked=\"true\" ");
|
buf.append("checked=\"checked\" ");
|
||||||
buf.append("value=\"").append(langs[i]).append("\">")
|
buf.append("value=\"").append(langs[i]).append("\">")
|
||||||
.append("<img height=\"11\" width=\"16\" alt=\"\" src=\"/flags.jsp?c=").append(flags[i]).append("\"> ")
|
.append("<img height=\"11\" width=\"16\" alt=\"\" src=\"/flags.jsp?c=").append(flags[i]).append("\"> ")
|
||||||
.append(_(xlangs[i])).append("<br>\n");
|
.append(_(xlangs[i])).append("<br>\n");
|
||||||
|
@ -75,7 +75,7 @@ public class ConfigUpdateHelper extends HelperBase {
|
|||||||
public String getUpdateThroughProxy() {
|
public String getUpdateThroughProxy() {
|
||||||
String proxy = _context.getProperty(ConfigUpdateHandler.PROP_SHOULD_PROXY, ConfigUpdateHandler.DEFAULT_SHOULD_PROXY);
|
String proxy = _context.getProperty(ConfigUpdateHandler.PROP_SHOULD_PROXY, ConfigUpdateHandler.DEFAULT_SHOULD_PROXY);
|
||||||
if (Boolean.valueOf(proxy).booleanValue())
|
if (Boolean.valueOf(proxy).booleanValue())
|
||||||
return "<input type=\"checkbox\" class=\"optbox\" value=\"true\" name=\"updateThroughProxy\" checked=\"true\" >";
|
return "<input type=\"checkbox\" class=\"optbox\" value=\"true\" name=\"updateThroughProxy\" checked=\"checked\" >";
|
||||||
else
|
else
|
||||||
return "<input type=\"checkbox\" class=\"optbox\" value=\"true\" name=\"updateThroughProxy\" >";
|
return "<input type=\"checkbox\" class=\"optbox\" value=\"true\" name=\"updateThroughProxy\" >";
|
||||||
}
|
}
|
||||||
@ -83,7 +83,7 @@ public class ConfigUpdateHelper extends HelperBase {
|
|||||||
public String getUpdateUnsigned() {
|
public String getUpdateUnsigned() {
|
||||||
String foo = _context.getProperty(ConfigUpdateHandler.PROP_UPDATE_UNSIGNED);
|
String foo = _context.getProperty(ConfigUpdateHandler.PROP_UPDATE_UNSIGNED);
|
||||||
if (Boolean.valueOf(foo).booleanValue())
|
if (Boolean.valueOf(foo).booleanValue())
|
||||||
return "<input type=\"checkbox\" class=\"optbox\" value=\"true\" name=\"updateUnsigned\" checked=\"true\" >";
|
return "<input type=\"checkbox\" class=\"optbox\" value=\"true\" name=\"updateUnsigned\" checked=\"checked\" >";
|
||||||
else
|
else
|
||||||
return "<input type=\"checkbox\" class=\"optbox\" value=\"true\" name=\"updateUnsigned\" >";
|
return "<input type=\"checkbox\" class=\"optbox\" value=\"true\" name=\"updateUnsigned\" >";
|
||||||
}
|
}
|
||||||
@ -106,7 +106,7 @@ public class ConfigUpdateHelper extends HelperBase {
|
|||||||
for (int i = 0; i < PERIODS.length; i++) {
|
for (int i = 0; i < PERIODS.length; i++) {
|
||||||
buf.append("<option value=\"").append(PERIODS[i]);
|
buf.append("<option value=\"").append(PERIODS[i]);
|
||||||
if (PERIODS[i] == ms)
|
if (PERIODS[i] == ms)
|
||||||
buf.append("\" selected=\"true");
|
buf.append("\" selected=\"selected");
|
||||||
|
|
||||||
if (PERIODS[i] == -1)
|
if (PERIODS[i] == -1)
|
||||||
buf.append("\">" + _("Never") + "</option>\n");
|
buf.append("\">" + _("Never") + "</option>\n");
|
||||||
@ -128,22 +128,22 @@ public class ConfigUpdateHelper extends HelperBase {
|
|||||||
|
|
||||||
buf.append("<option value=\"notify\"");
|
buf.append("<option value=\"notify\"");
|
||||||
if ("notify".equals(policy) || _dontInstall)
|
if ("notify".equals(policy) || _dontInstall)
|
||||||
buf.append(" selected=\"true\"");
|
buf.append(" selected=\"selected\"");
|
||||||
buf.append('>').append(_("Notify only")).append("</option>");
|
buf.append('>').append(_("Notify only")).append("</option>");
|
||||||
|
|
||||||
buf.append("<option value=\"download\"");
|
buf.append("<option value=\"download\"");
|
||||||
if (_dontInstall)
|
if (_dontInstall)
|
||||||
buf.append(" disabled=\"true\"");
|
buf.append(" disabled=\"disabled\"");
|
||||||
else if ("download".equals(policy))
|
else if ("download".equals(policy))
|
||||||
buf.append(" selected=\"true\"");
|
buf.append(" selected=\"selected\"");
|
||||||
buf.append('>').append(_("Download and verify only")).append("</option>");
|
buf.append('>').append(_("Download and verify only")).append("</option>");
|
||||||
|
|
||||||
if (_context.hasWrapper()) {
|
if (_context.hasWrapper()) {
|
||||||
buf.append("<option value=\"install\"");
|
buf.append("<option value=\"install\"");
|
||||||
if (_dontInstall)
|
if (_dontInstall)
|
||||||
buf.append(" disabled=\"true\"");
|
buf.append(" disabled=\"disabled\"");
|
||||||
else if ("install".equals(policy))
|
else if ("install".equals(policy))
|
||||||
buf.append(" selected=\"true\"");
|
buf.append(" selected=\"selected\"");
|
||||||
buf.append('>').append(_("Download, verify, and restart")).append("</option>");
|
buf.append('>').append(_("Download, verify, and restart")).append("</option>");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -41,7 +41,7 @@
|
|||||||
<input type="radio" class="optbox" name="mode" value="2" <%=reseedHelper.modeChecked(2) %> >
|
<input type="radio" class="optbox" name="mode" value="2" <%=reseedHelper.modeChecked(2) %> >
|
||||||
<b><%=intl._("Use non-SSL only")%></b></td></tr>
|
<b><%=intl._("Use non-SSL only")%></b></td></tr>
|
||||||
<tr><td class="mediumtags" align="right"><b><%=intl._("Reseed URLs")%>:</b></td>
|
<tr><td class="mediumtags" align="right"><b><%=intl._("Reseed URLs")%>:</b></td>
|
||||||
<td><textarea name="reseedURL" wrap="off" spellcheck="false"><jsp:getProperty name="reseedHelper" property="reseedURL" /></textarea></td></tr>
|
<td><textarea wrap="off" name="reseedURL" cols="60" rows="7" spellcheck="false"><jsp:getProperty name="reseedHelper" property="reseedURL" /></textarea></td></tr>
|
||||||
|
|
||||||
<tr><td class="mediumtags" align="right"><b><%=intl._("Enable HTTP Proxy?")%></b></td>
|
<tr><td class="mediumtags" align="right"><b><%=intl._("Enable HTTP Proxy?")%></b></td>
|
||||||
<td><input type="checkbox" class="optbox" name="enable" value="true" <jsp:getProperty name="reseedHelper" property="enable" /> ></td></tr>
|
<td><input type="checkbox" class="optbox" name="enable" value="true" <jsp:getProperty name="reseedHelper" property="enable" /> ></td></tr>
|
||||||
|
@ -56,9 +56,9 @@
|
|||||||
<td><input type="text" size="10" name="proxyPort" value="<jsp:getProperty name="updatehelper" property="proxyPort" />" /></td></tr>
|
<td><input type="text" size="10" name="proxyPort" value="<jsp:getProperty name="updatehelper" property="proxyPort" />" /></td></tr>
|
||||||
<% if (updatehelper.canInstall()) { %>
|
<% if (updatehelper.canInstall()) { %>
|
||||||
<tr><td class= "mediumtags" align="right"><b><%=intl._("Update URLs")%>:</b></td>
|
<tr><td class= "mediumtags" align="right"><b><%=intl._("Update URLs")%>:</b></td>
|
||||||
<td><textarea name="updateURL" wrap="off" spellcheck="false"><jsp:getProperty name="updatehelper" property="updateURL" /></textarea></td>
|
<td><textarea cols="60" rows="6" name="updateURL" wrap="off" spellcheck="false"><jsp:getProperty name="updatehelper" property="updateURL" /></textarea></td>
|
||||||
</tr><tr><td class= "mediumtags" align="right"><b><%=intl._("Trusted keys")%>:</b></td>
|
</tr><tr><td class= "mediumtags" align="right"><b><%=intl._("Trusted keys")%>:</b></td>
|
||||||
<td><textarea name="trustedKeys" wrap="off" spellcheck="false"><jsp:getProperty name="updatehelper" property="trustedKeys" /></textarea></td>
|
<td><textarea cols="60" rows="6" name="trustedKeys" wrap="off" spellcheck="false"><jsp:getProperty name="updatehelper" property="trustedKeys" /></textarea></td>
|
||||||
</tr><tr><td class= "mediumtags" align="right"><b><%=intl._("Update with unsigned development builds?")%></b></td>
|
</tr><tr><td class= "mediumtags" align="right"><b><%=intl._("Update with unsigned development builds?")%></b></td>
|
||||||
<td><jsp:getProperty name="updatehelper" property="updateUnsigned" /></td>
|
<td><jsp:getProperty name="updatehelper" property="updateUnsigned" /></td>
|
||||||
</tr><tr><td class= "mediumtags" align="right"><b><%=intl._("Unsigned Build URL")%>:</b></td>
|
</tr><tr><td class= "mediumtags" align="right"><b><%=intl._("Unsigned Build URL")%>:</b></td>
|
||||||
|
@ -158,7 +158,7 @@ ${book.loadBookMessages}
|
|||||||
</td><td class="names">
|
</td><td class="names">
|
||||||
<span class="addrhlpr"><a href="details?h=${addr.name}" title="<%=intl._("More information on this entry")%>"><%=intl._("details")%></a></span>
|
<span class="addrhlpr"><a href="details?h=${addr.name}" title="<%=intl._("More information on this entry")%>"><%=intl._("details")%></a></span>
|
||||||
</td>
|
</td>
|
||||||
<td class="destinations"><textarea rows="1" style="height:3em;whitespace:nowrap" cols="40" readonly="readonly" name="dest_${addr.name}" >${addr.destination}</textarea></td>
|
<td class="destinations"><textarea rows="1" style="height:3em;" wrap="off" cols="40" readonly="readonly" name="dest_${addr.name}" >${addr.destination}</textarea></td>
|
||||||
</tr>
|
</tr>
|
||||||
</c:forEach>
|
</c:forEach>
|
||||||
</table>
|
</table>
|
||||||
@ -190,7 +190,7 @@ ${book.loadBookMessages}
|
|||||||
<table><tr><td>
|
<table><tr><td>
|
||||||
<b><%=intl._("Host Name")%></b></td><td><input type="text" name="hostname" value="${book.hostname}" size="54">
|
<b><%=intl._("Host Name")%></b></td><td><input type="text" name="hostname" value="${book.hostname}" size="54">
|
||||||
</td></tr><tr><td>
|
</td></tr><tr><td>
|
||||||
<b><%=intl._("Destination")%></b></td><td><textarea name="destination" rows="1" style="height:3em;whitespace:nowrap" cols="70" spellcheck="false">${book.destination}</textarea>
|
<b><%=intl._("Destination")%></b></td><td><textarea name="destination" rows="1" style="height:3em" wrap="off" cols="70" spellcheck="false">${book.destination}</textarea>
|
||||||
</td></tr></table>
|
</td></tr></table>
|
||||||
<p class="buttons">
|
<p class="buttons">
|
||||||
<input class="cancel" type="reset" value="<%=intl._("Cancel")%>" >
|
<input class="cancel" type="reset" value="<%=intl._("Cancel")%>" >
|
||||||
|
@ -122,7 +122,7 @@
|
|||||||
<td><%=addr.getNotes()%></td>
|
<td><%=addr.getNotes()%></td>
|
||||||
</tr><tr class="list${book.trClass}">
|
</tr><tr class="list${book.trClass}">
|
||||||
<td><%=intl._("Destination")%></td>
|
<td><%=intl._("Destination")%></td>
|
||||||
<td class="destinations"><textarea rows="1" style="height:3em;whitespace:nowrap" cols="70" readonly="readonly" ><%=addr.getDestination()%></textarea></td>
|
<td class="destinations"><textarea rows="1" style="height:3em;" wrap="off" cols="70" readonly="readonly" ><%=addr.getDestination()%></textarea></td>
|
||||||
</tr></table>
|
</tr></table>
|
||||||
</div>
|
</div>
|
||||||
<div id="buttons">
|
<div id="buttons">
|
||||||
|
@ -781,7 +781,7 @@ public class Blocklist {
|
|||||||
Set<Integer> singles = new TreeSet();
|
Set<Integer> singles = new TreeSet();
|
||||||
singles.addAll(_singleIPBlocklist);
|
singles.addAll(_singleIPBlocklist);
|
||||||
if (!singles.isEmpty()) {
|
if (!singles.isEmpty()) {
|
||||||
out.write("<table><tr><th align=center colspan=2><b>");
|
out.write("<table><tr><th align=\"center\" colspan=\"2\"><b>");
|
||||||
out.write(_("IPs Banned Until Restart"));
|
out.write(_("IPs Banned Until Restart"));
|
||||||
out.write("</b></td></tr>");
|
out.write("</b></td></tr>");
|
||||||
// first 0 - 127
|
// first 0 - 127
|
||||||
@ -789,27 +789,27 @@ public class Blocklist {
|
|||||||
int ip = ii.intValue();
|
int ip = ii.intValue();
|
||||||
if (ip < 0)
|
if (ip < 0)
|
||||||
continue;
|
continue;
|
||||||
out.write("<tr><td align=center width=50%>");
|
out.write("<tr><td align=\"center\" width=\"50%\">");
|
||||||
out.write(toStr(ip));
|
out.write(toStr(ip));
|
||||||
out.write("</td><td width=50%> </td></tr>\n");
|
out.write("</td><td width=\"50%\"> </td></tr>\n");
|
||||||
}
|
}
|
||||||
// then 128 - 255
|
// then 128 - 255
|
||||||
for (Integer ii : singles) {
|
for (Integer ii : singles) {
|
||||||
int ip = ii.intValue();
|
int ip = ii.intValue();
|
||||||
if (ip >= 0)
|
if (ip >= 0)
|
||||||
break;
|
break;
|
||||||
out.write("<tr><td align=center width=50%>");
|
out.write("<tr><td align=\"center\" width=\"50%\">");
|
||||||
out.write(toStr(ip));
|
out.write(toStr(ip));
|
||||||
out.write("</td><td width=50%> </td></tr>\n");
|
out.write("</td><td width=\"50%\"> </td></tr>\n");
|
||||||
}
|
}
|
||||||
out.write("</table>");
|
out.write("</table>");
|
||||||
}
|
}
|
||||||
if (_blocklistSize > 0) {
|
if (_blocklistSize > 0) {
|
||||||
out.write("<table><tr><th align=center colspan=2><b>");
|
out.write("<table><tr><th align=\"center\" colspan=\"2\"><b>");
|
||||||
out.write(_("IPs Permanently Banned"));
|
out.write(_("IPs Permanently Banned"));
|
||||||
out.write("</b></th></tr><tr><td align=center width=50%><b>");
|
out.write("</b></th></tr><tr><td align=\"center\" width=\"50%\"><b>");
|
||||||
out.write(_("From"));
|
out.write(_("From"));
|
||||||
out.write("</b></td><td align=center width=50%><b>");
|
out.write("</b></td><td align=\"center\" width=\"50%\"><b>");
|
||||||
out.write(_("To"));
|
out.write(_("To"));
|
||||||
out.write("</b></td></tr>");
|
out.write("</b></td></tr>");
|
||||||
int max = Math.min(_blocklistSize, MAX_DISPLAY);
|
int max = Math.min(_blocklistSize, MAX_DISPLAY);
|
||||||
@ -819,7 +819,7 @@ public class Blocklist {
|
|||||||
int from = getFrom(_blocklist[i]);
|
int from = getFrom(_blocklist[i]);
|
||||||
if (from < 0)
|
if (from < 0)
|
||||||
continue;
|
continue;
|
||||||
out.write("<tr><td align=center width=50%>"); out.write(toStr(from)); out.write("</td><td align=center width=50%>");
|
out.write("<tr><td align=\"center\" width=\"50%\">"); out.write(toStr(from)); out.write("</td><td align=\"center\" width=\"50%\">");
|
||||||
int to = getTo(_blocklist[i]);
|
int to = getTo(_blocklist[i]);
|
||||||
if (to != from) {
|
if (to != from) {
|
||||||
out.write(toStr(to)); out.write("</td></tr>\n");
|
out.write(toStr(to)); out.write("</td></tr>\n");
|
||||||
@ -832,7 +832,7 @@ public class Blocklist {
|
|||||||
int from = getFrom(_blocklist[i]);
|
int from = getFrom(_blocklist[i]);
|
||||||
if (from >= 0)
|
if (from >= 0)
|
||||||
break;
|
break;
|
||||||
out.write("<tr><td align=center width=50%>"); out.write(toStr(from)); out.write("</td><td align=center width=50%>");
|
out.write("<tr><td align=\"center\" width=\"50%\">"); out.write(toStr(from)); out.write("</td><td align=\"center\" width=\"50%\">");
|
||||||
int to = getTo(_blocklist[i]);
|
int to = getTo(_blocklist[i]);
|
||||||
if (to != from) {
|
if (to != from) {
|
||||||
out.write(toStr(to)); out.write("</td></tr>\n");
|
out.write(toStr(to)); out.write("</td></tr>\n");
|
||||||
|
Reference in New Issue
Block a user