Files
i2p.i2p/apps/routerconsole/jsp/welcomexhr1.jsp
zzz aa11211e5e Wizard: Improve ajax
Drop unused test wrapper
Enable first run detection
Spelling fix
2018-11-16 14:34:11 +00:00

18 lines
740 B
Plaintext

<%@page contentType="text/html"%><%@page pageEncoding="UTF-8"%><jsp:useBean class="net.i2p.router.web.helpers.WizardHelper" id="wizhelper" scope="session" /><%
String i2pcontextId = request.getParameter("i2p.contextId");
try {
if (i2pcontextId != null) {
session.setAttribute("i2p.contextId", i2pcontextId);
} else {
i2pcontextId = (String) session.getAttribute("i2p.contextId");
}
} catch (IllegalStateException ise) {}
wizhelper.setContextId(i2pcontextId);
// output 1 for complete, 0 + status string for in progress
if (wizhelper.isNDTComplete()) {
%>1<%
} else {
%>0<%=wizhelper.getTestStatus()%><%
}
%>