<%@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._t("Hidden Services Manager")%> - <%=intl._t("Edit Hidden Service")%> <% if (editBean.allowCSS()) { %> <% } %> <% if (editBean.isInitialized()) { %>
<% String tunnelTypeName; String tunnelType; if (curTunnel >= 0) { tunnelTypeName = editBean.getTunnelType(curTunnel); tunnelType = editBean.getInternalType(curTunnel); %>

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

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

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

<% } %> <% // these are four keys that are generated automatically on first save, // and we want to persist in i2ptunnel.config, but don't want to // show clogging up the custom options form. String key = editBean.getKey1(curTunnel); if (key != null && key.length() > 0) { %> <% } key = editBean.getKey2(curTunnel); if (key != null && key.length() > 0) { %> <% } key = editBean.getKey3(curTunnel); if (key != null && key.length() > 0) { %> <% } key = editBean.getKey4(curTunnel); if (key != null && key.length() > 0) { %> <% } %>

<%=tunnelTypeName%>
class="tickbox" /> <%=intl._t("(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._t("(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._t("Add to local addressbook")%> <% } } %>
<% if (("httpserver".equals(tunnelType)) || ("httpbidirserver".equals(tunnelType))) { %>
<% } %>

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



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

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

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

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

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

class="tickbox" />

<% /***************** %>
class="tickbox" />
class="tickbox" />
class="tickbox" />
class="tickbox" />
<%=intl._t("(Tunnel must be stopped first)")%>
<% **********************/ %> <% if (true /* editBean.isAdvanced() */ ) { int currentSigType = editBean.getSigType(curTunnel, tunnelType); %>
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() %>