<% // NOTE: Do the header carefully so there is no whitespace before the <%@page pageEncoding="UTF-8" %><%@page trimDirectiveWhitespaces="true" %><%@page contentType="text/html" import="net.i2p.i2ptunnel.web.EditBean" %><% boolean __isClient = false; boolean __invalid = false; int curTunnel = -1; String tun = request.getParameter("tunnel"); if (tun != null) { try { curTunnel = Integer.parseInt(tun); __isClient = EditBean.staticIsClient(curTunnel); } catch (NumberFormatException nfe) { __invalid = true; } } else { String type = request.getParameter("type"); __isClient = EditBean.isClient(type); } %> <%=intl._t("Hidden Services Manager")%> - <%=(__isClient ? intl._t("Edit Client Tunnel") : intl._t("Edit Hidden Service"))%> <% if (__invalid) { %>Invalid tunnel parameter<% } else { if (editBean.isInitialized()) { %>
<% if (__isClient) { %><%@include file="editClient.jsi" %><% } else { %><%@include file="editServer.jsi" %><% } %>
<% } else { %>
<%=intl._t("Tunnels not initialized yet; please retry in a few moments.")%>
<% } // isInitialized() } %>