source: apps/routerconsole/jsp/configui.jsp

Last change on this file was b8437cd, checked in by zzz <zzz@…>, 3 years ago

Console: Catch ISE in get/setAttribute() (ticket #1529)

  • Property mode set to 100644
File size: 3.4 KB
Line 
1<%@page contentType="text/html"%>
2<%@page trimDirectiveWhitespaces="true"%>
3<%@page pageEncoding="UTF-8"%>
4<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
5
6<html><head>
7<%@include file="css.jsi" %>
8<%=intl.title("config UI")%>
9<style type='text/css'>
10input.default {
11    width: 1px;
12    height: 1px;
13    visibility: hidden;
14}
15</style>
16<script src="/js/ajax.js" type="text/javascript"></script>
17<%@include file="summaryajax.jsi" %>
18</head><body onload="initAjax()">
19
20<%@include file="summary.jsi" %>
21
22<jsp:useBean class="net.i2p.router.web.helpers.ConfigUIHelper" id="uihelper" scope="request" />
23<jsp:setProperty name="uihelper" property="contextId" value="<%=i2pcontextId%>" />
24
25<h1><%=uihelper._t("I2P UI Configuration")%></h1>
26<div class="main" id="config_ui">
27
28 <%@include file="confignav.jsi" %>
29
30 <jsp:useBean class="net.i2p.router.web.helpers.ConfigUIHandler" id="formhandler" scope="request" />
31<%@include file="formhandler.jsi" %>
32<h3 id="themeheading"><%=uihelper._t("Router Console Theme")%></h3>
33 <form action="" method="POST">
34 <input type="hidden" name="consoleNonce" value="<%=net.i2p.router.web.CSSHelper.getNonce()%>" >
35 <input type="hidden" name="nonce" value="<%=pageNonce%>" >
36 <input type="hidden" name="action" value="blah" >
37<div id ="themesettings">
38<%
39 String userAgent = request.getHeader("User-Agent");
40 if (userAgent == null || userAgent.contains("Trident/6") || !userAgent.contains("MSIE")) {
41%>
42 <jsp:getProperty name="uihelper" property="settings" />
43<% } else { %>
44<%=uihelper._t("Theme selection disabled for Internet Explorer, sorry.")%>
45<hr>
46<%=uihelper._t("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.")%>
47<% } %>
48 <jsp:getProperty name="uihelper" property="forceMobileConsole" />
49<hr><div class="formaction" id="themeui">
50<input type="reset" class="cancel" value="<%=intl._t("Cancel")%>" >
51<input type="submit" name="shouldsave" class="accept" value="<%=intl._t("Apply")%>" >
52</div></div></form>
53<h3 id="langheading"><%=uihelper._t("Router Console Language")%></h3>
54 <form action="" method="POST">
55 <input type="hidden" name="consoleNonce" value="<%=net.i2p.router.web.CSSHelper.getNonce()%>" >
56 <input type="hidden" name="nonce" value="<%=pageNonce%>" >
57 <input type="hidden" name="action" value="blah" >
58<div id="langsettings">
59<jsp:getProperty name="uihelper" property="langSettings" />
60<p id="helptranslate"><%=uihelper._t("Please contribute to the router console translation project! Contact the developers in #i2p-dev on IRC to help.")%>
61</p><hr><div class="formaction" id="langui">
62<input type="reset" class="cancel" value="<%=intl._t("Cancel")%>" >
63<input type="submit" name="shouldsave" class="accept" value="<%=intl._t("Apply")%>" >
64</div></div></form>
65
66<h3 id="passwordheading"><%=uihelper._t("Router Console Password")%></h3>
67<form action="" method="POST">
68 <input type="hidden" name="nonce" value="<%=pageNonce%>" >
69 <jsp:getProperty name="uihelper" property="passwordForm" />
70 <div class="formaction" id="consolepass">
71  <input type="submit" name="action" class="default" value="<%=intl._t("Add user")%>" >
72  <input type="submit" name="action" class="delete" value="<%=intl._t("Delete selected")%>" >
73  <input type="reset" class="cancel" value="<%=intl._t("Cancel")%>" >
74  <input type="submit" name="action" class="add" value="<%=intl._t("Add user")%>" >
75 </div>
76</form>
77</div></body></html>
Note: See TracBrowser for help on using the repository browser.