<%@page contentType="text/html" import="net.i2p.i2ptunnel.web.EditBean" %><%@page trimDirectiveWhitespaces="true" %> <% String tun = request.getParameter("tunnel"); int curTunnel = -1; if (tun != null) { try { curTunnel = Integer.parseInt(tun); } catch (NumberFormatException nfe) { curTunnel = -1; } } %> <%=intl._("I2P Tunnel Manager - Edit Server Tunnel")%> <% if (editBean.allowCSS()) { %> <% } %> <% if (editBean.isInitialized()) { %>
<% String tunnelTypeName = ""; String tunnelType = ""; if (curTunnel >= 0) { tunnelTypeName = editBean.getTunnelType(curTunnel); tunnelType = editBean.getInternalType(curTunnel); %>

<%=intl._("Edit server settings")%>

<% } else { tunnelTypeName = editBean.getTypeName(request.getParameter("type")); tunnelType = net.i2p.data.DataHelper.stripHTML(request.getParameter("type")); %>

<%=intl._("New server settings")%>

<% } %>

<%=tunnelTypeName%>
class="tickbox" /> <%=intl._("(Check the Box for 'YES')")%>

<% if ("streamrserver".equals(tunnelType)) { %> <% } else { %> <% } %>
<% if (!"streamrserver".equals(tunnelType)) { %>
<% } /* !streamrserver */ %>
<% if (!"streamrserver".equals(tunnelType)) { %>
class="tickbox" />
<% } /* !streamrserver */ %> <% if ("httpbidirserver".equals(tunnelType)) { %>

<% } /* httpbidirserver */ %> <% if ("httpbidirserver".equals(tunnelType) || "streamrserver".equals(tunnelType)) { %>
<% } /* httpbidirserver || streamrserver */ %>

<% if (("httpserver".equals(tunnelType)) || ("httpbidirserver".equals(tunnelType))) { %>
<%=intl._("(leave blank for outproxies)")%>
<% } %>
<% String b64 = editBean.getDestinationBase64(curTunnel); if (!"".equals(b64)) { String name = editBean.getSpoofedHost(curTunnel); if (name == null || name.equals("")) name = editBean.getTunnelName(curTunnel); if (!"".equals(name)) { %> <%=intl._("Add to local addressbook")%> <% } } %>
<% if (("httpserver".equals(tunnelType)) || ("httpbidirserver".equals(tunnelType))) { %>
<% } %>

<%=intl._("Advanced networking options")%>



<% if (!"streamrserver".equals(tunnelType)) { %>

<% } /* !streamrserver */ %>
readonly="readonly" <% } %> />
readonly="readonly" <% } %> />

class="tickbox" />
<%=intl._("(Tunnel must be stopped first)")%>

class="tickbox" /> class="tickbox" /> class="tickbox" />
<% if (("httpserver".equals(tunnelType)) || ("httpbidirserver".equals(tunnelType))) { %>
class="tickbox" />
<% } // httpserver %>
class="tickbox" />

<% if (("httpserver".equals(tunnelType)) || ("httpbidirserver".equals(tunnelType))) { %>
<% } // httpserver %>

class="tickbox" />

<% /***************** %>
class="tickbox" />
class="tickbox" />
class="tickbox" />
class="tickbox" />
<%=intl._("(Tunnel must be stopped first)")%>
<% **********************/ %> <% if (true /* editBean.isAdvanced() */ ) { %>
class="tickbox" />
<% if (editBean.isSigTypeAvailable(1)) { %>
class="tickbox" />
<% } if (editBean.isSigTypeAvailable(2)) { %>
class="tickbox" />
<% } if (editBean.isSigTypeAvailable(3)) { %>
class="tickbox" />
<% } if (editBean.isSigTypeAvailable(7)) { %>
class="tickbox" />
<% } // isAvailable %>

<% } // isAdvanced %>
<% } else { %>Tunnels are not initialized yet, please reload in two minutes.<% } // isInitialized() %>