2009-07-12 03:21:20 +00:00
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2009-10-22 22:25:53 +00:00
<html><head>
2009-11-21 13:33:57 +00:00
<%@include file="css.jsi" %>
2009-10-23 13:55:44 +00:00
<%=intl.title("config UI")%>
2009-07-12 03:21:20 +00:00
</head><body>
2009-11-21 13:33:57 +00:00
<%@include file="summary.jsi" %>
2009-07-12 03:21:20 +00:00
<jsp:useBean class="net.i2p.router.web.ConfigUIHelper" id="uihelper" scope="request" />
<jsp:setProperty name="uihelper" property="contextId" value="<%=(String)session.getAttribute("i2p.contextId")%>" />
2009-10-22 22:25:53 +00:00
<h1><%=uihelper._("I2P UI Configuration")%></h1>
2009-07-12 03:21:20 +00:00
<div class="main" id="main">
2009-11-21 13:33:57 +00:00
<%@include file="confignav.jsi" %>
2009-08-15 16:08:33 +00:00
2009-07-12 03:21:20 +00:00
<jsp:useBean class="net.i2p.router.web.ConfigUIHandler" id="formhandler" scope="request" />
2010-11-21 20:46:48 +00:00
<% formhandler.storeMethod(request.getMethod()); %>
2009-07-12 03:21:20 +00:00
<jsp:setProperty name="formhandler" property="*" />
<jsp:setProperty name="formhandler" property="contextId" value="<%=(String)session.getAttribute("i2p.contextId")%>" />
<jsp:getProperty name="formhandler" property="allMessages" />
2009-10-23 13:55:44 +00:00
<div class="configure"><div class="topshimten"><h3><%=uihelper._("Router Console Theme")%></h3></div>
2010-11-19 15:23:25 +00:00
<form action="" method="POST">
2011-03-09 17:16:28 +00:00
<%
/** lang setting is done in css.jsi, not in ConfigUIHandler */
String consoleNonce = System.getProperty("router.consoleNonce");
if (consoleNonce == null) {
consoleNonce = Long.toString(new java.util.Random().nextLong());
System.setProperty("router.consoleNonce", consoleNonce);
}
%>
<input type="hidden" name="consoleNonce" value="<%=consoleNonce%>" >
<input type="hidden" name="nonce" value="<jsp:getProperty name="formhandler" property="newNonce" />" >
2009-10-22 22:25:53 +00:00
<input type="hidden" name="action" value="blah" >
<%
String userAgent = request.getHeader("User-Agent");
if (userAgent == null || !userAgent.contains("MSIE")) {
%>
2009-07-12 03:21:20 +00:00
<jsp:getProperty name="uihelper" property="settings" />
2009-07-19 23:59:03 +00:00
<% } else { %>
2009-10-22 22:25:53 +00:00
<%=uihelper._("Theme selection disabled for Internet Explorer, sorry.")%>
<hr>
<%=uihelper._("If you're not using IE, it's likely that your browser is pretending to be IE; please configure your browser (or proxy) to use a different User Agent string if you'd like to access the console themes.")%>
2009-07-19 23:59:03 +00:00
<% } %>
2009-10-22 22:25:53 +00:00
<h3><%=uihelper._("Router Console Language")%></h3>
<jsp:getProperty name="uihelper" property="langSettings" />
2011-11-21 15:28:19 +00:00
<p><%=uihelper._("Please contribute to the router console translation project! Contact the developers in #i2p-dev on IRC to help.")%>
</p><hr><div class="formaction">
2011-11-30 23:23:41 +00:00
<input type="reset" class="cancel" value="<%=intl._("Cancel")%>" >
<input type="submit" name="shouldsave" class="accept" value="<%=intl._("Apply")%>" >
2009-10-22 22:25:53 +00:00
</div></form></div>
2009-08-15 16:08:33 +00:00
</div></body></html>