<% // NOTE: Do the header carefully so there is no whitespace before the <%@page pageEncoding="UTF-8" %><%@page contentType="text/html" import="net.i2p.i2ptunnel.web.WizardBean" %> <% String pageStr = request.getParameter("page"); int curPage = 1; if (pageStr != null) { try { curPage = Integer.parseInt(pageStr); if (curPage > 7 || curPage <= 0) { curPage = 1; } } catch (NumberFormatException nfe) { curPage = 1; } } boolean tunnelIsClient = wizardBean.getIsClient(); String tunnelType = wizardBean.getType(); %> <%=intl._("I2P Tunnel Manager - Tunnel Creation Wizard")%> <% if (wizardBean.allowCSS()) { %> <% } %>
">
<% if (curPage == 1) { %>

<%=intl._("Server or client tunnel?")%>

<% } else if (curPage == 2) { %>

<%=intl._("Tunnel type")%>

<% } else if (curPage == 3) { %>

<%=intl._("Tunnel name and description")%>

<% } else if (curPage == 4 && tunnelIsClient) { %>

<%=intl._("Tunnel destination")%>

<% } else if (curPage == 5) { %>

<%=intl._("Binding address and port")%>

<% } else if (curPage == 6) { %>

<%=intl._("Tunnel auto-start")%>

<% } else if (curPage == 7) { %>

<%=intl._("Wizard completed")%>

<% } %> " />

<% /* Page 1 - Whether to make a client or server tunnel */ if (curPage == 1) { %>
<% } else { %><% } /* curPage 1 */ /* End page 1 */ %> <% /* Page 2 - Tunnel type */ if (curPage == 2) { %>
<% if (tunnelIsClient) { %><% } else { %><% } /* tunnelIsClient */ %>
<% } else { %><% } /* curPage 2 */ /* End page 2 */ %> <% /* Page 3 - Name and description */ if (curPage == 3) { %>
<% } else { %> <% } /* curPage 3 */ /* End page 3 */ %> <% /* Page 4 - Target destination or proxy list */ if (tunnelIsClient) { if ("httpclient".equals(tunnelType) || "connectclient".equals(tunnelType) || "sockstunnel".equals(tunnelType) || "socksirctunnel".equals(tunnelType)) { if (curPage == 4) { %>
<% } else { %><% } /* curPage 4 */ } else if ("client".equals(tunnelType) || "ircclient".equals(tunnelType) || "streamrclient".equals(tunnelType)) { if (curPage == 4) { %>
(<%=intl._("name or destination")%>; <%=intl._("b32 not recommended")%>)
<% } else { %><% } /* curPage 4 */ } } /* tunnelIsClient */ /* End page 4 */ %> <% /* Page 5 - Binding ports and addresses*/ if ((tunnelIsClient && "streamrclient".equals(tunnelType)) || !"streamrserver".equals(tunnelType)) { if (curPage == 5) { %>
<% } else { %><% } /* curPage 5 */ } /* streamrclient or !streamrserver */ %> <% if (!tunnelIsClient) { if (curPage == 5) { %>
<% } else { %><% } /* curPage 5 */ } /* !tunnelIsClient */ %> <% if (tunnelIsClient || "httpbidirserver".equals(tunnelType)) { if (curPage == 5) { %>
<% } else { %><% } /* curPage 5 */ } /* tunnelIsClient or httpbidirserver */ %> <% if ((tunnelIsClient && !"streamrclient".equals(tunnelType)) || "httpbidirserver".equals(tunnelType) || "streamrserver".equals(tunnelType)) { if (curPage == 5) { %>
<% } else { %><% } /* curPage 5 */ } /* (tunnelIsClient && !streamrclient) || httpbidirserver || streamrserver */ /* End page 5 */ %>