source: apps/routerconsole/jsp/configupdate.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: 5.6 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 update")%>
9<script src="/js/ajax.js" type="text/javascript"></script>
10<%@include file="summaryajax.jsi" %>
11</head><body onload="initAjax()">
12
13<%@include file="summary.jsi" %>
14<h1><%=intl._t("I2P Update Configuration")%></h1>
15<div class="main" id="config_update">
16 <%@include file="confignav.jsi" %>
17
18 <jsp:useBean class="net.i2p.router.web.ConfigUpdateHandler" id="formhandler" scope="request" />
19<%@include file="formhandler.jsi" %>
20 <jsp:useBean class="net.i2p.router.web.ConfigUpdateHelper" id="updatehelper" scope="request" />
21 <jsp:setProperty name="updatehelper" property="contextId" value="<%=i2pcontextId%>" />
22<div class="messages">
23 <jsp:getProperty name="updatehelper" property="newsStatus" /></div>
24 <form action="" method="POST">
25 <input type="hidden" name="nonce" value="<%=pageNonce%>" >
26 <% /* set hidden default */ %>
27 <input type="submit" name="action" value="" style="display:none" >
28    <% if (updatehelper.canInstall()) { %>
29      <h3 class="tabletitle"><%=intl._t("Check for I2P and News Updates")%></h3>
30      <table id="i2pupdates" class="configtable" border="0" cellspacing="5">
31      <tr><td align="right"><b><%=intl._t("News &amp; I2P Updates")%>:</b></td>
32     <% } else { %>
33      <h3><%=intl._t("Check for news updates")%></h3>
34      <table id="i2pupdates" class="configtable" border="0" cellspacing="5">
35        <tr><td colspan="2"></tr>
36        <tr><td align="right"><b><%=intl._t("News Updates")%>:</b></td>
37     <% }   // if canInstall %>
38          <td> <% if ("true".equals(System.getProperty("net.i2p.router.web.UpdateHandler.updateInProgress", "false"))) { %> <i><%=intl._t("Update In Progress")%></i><br> <% } else { %> <input type="submit" name="action" class="check" value="<%=intl._t("Check for updates")%>" />
39            <% } %></td></tr>
40        <tr><td align="right"><b><%=intl._t("News URL")%>:</b></td>
41          <td><input type="text" size="60" name="newsURL" <% if (!updatehelper.isAdvanced()) { %>readonly="readonly"<% } %> value="<jsp:getProperty name="updatehelper" property="newsURL" />"></td>
42        </tr><tr><td align="right"><b><%=intl._t("Refresh frequency")%>:</b>
43          <td><jsp:getProperty name="updatehelper" property="refreshFrequencySelectBox" /></td></tr>
44    <% if (updatehelper.canInstall()) { %>
45        <tr><td align="right"><b><%=formhandler._t("Update policy")%>:</b></td>
46          <td><jsp:getProperty name="updatehelper" property="updatePolicySelectBox" /></td></tr>
47    <% }   // if canInstall %>
48    <% if (updatehelper.isAdvanced()) { %>
49        <tr><td align="right"><label for="newsThroughProxy"><b><%=intl._t("Fetch news through the eepProxy?")%></b></label></td>
50          <td><jsp:getProperty name="updatehelper" property="newsThroughProxy" /></td></tr>
51      <% if (updatehelper.canInstall()) { %>
52        <tr><td align="right"><b><label for="updateThroughProxy"><%=intl._t("Update through the eepProxy?")%></b></label></td>
53          <td><jsp:getProperty name="updatehelper" property="updateThroughProxy" /></td></tr>
54      <% }   // if canInstall %>
55        <tr><td align="right"><b><%=intl._t("eepProxy host")%>:</b></td>
56          <td><input type="text" size="10" name="proxyHost" value="<jsp:getProperty name="updatehelper" property="proxyHost" />" /></td>
57        </tr><tr><td align="right"><b><%=intl._t("eepProxy port")%>:</b></td>
58          <td><input type="text" size="10" name="proxyPort" value="<jsp:getProperty name="updatehelper" property="proxyPort" />" /></td></tr>
59    <% }   // if isAdvanced %>
60    <% if (updatehelper.canInstall()) { %>
61      <% if (updatehelper.isAdvanced()) { %>
62        <tr><td align="right"><b><%=intl._t("Update URLs")%>:</b></td>
63          <td><textarea cols="60" rows="6" name="updateURL" wrap="off" spellcheck="false"><jsp:getProperty name="updatehelper" property="updateURL" /></textarea></td>
64        </tr><tr><td align="right"><b><%=intl._t("Trusted keys")%>:</b></td>
65          <td><textarea cols="60" rows="6" name="trustedKeys" wrap="off" spellcheck="false"><jsp:getProperty name="updatehelper" property="trustedKeys" /></textarea></td></tr>
66        <tr><td id="devSU3build" align="right"><b><label for="updateDevSU3"><%=intl._t("Update with signed development builds?")%></b></label></td>
67          <td><jsp:getProperty name="updatehelper" property="updateDevSU3" /></td>
68        </tr><tr><td align="right"><b><%=intl._t("Signed Build URL")%>:</b></td>
69          <td><input type="text" size="60" name="devSU3URL" value="<jsp:getProperty name="updatehelper" property="devSU3URL" />"></td></tr>
70        <tr><td id="unsignedbuild" align="right"><b><label for="updateUnsigned"><%=intl._t("Update with unsigned development builds?")%></b></label></td>
71          <td><jsp:getProperty name="updatehelper" property="updateUnsigned" /></td>
72        </tr><tr><td align="right"><b><%=intl._t("Unsigned Build URL")%>:</b></td>
73          <td><input type="text" size="60" name="zipURL" value="<jsp:getProperty name="updatehelper" property="zipURL" />"></td></tr>
74      <% }   // if isAdvanced %>
75    <% } else { %>
76        <tr><td align="center" colspan="2"><b><%=intl._t("Updates will be dispatched via your package manager.")%></b></td></tr>
77    <% }   // if canInstall %>
78        <tr class="tablefooter"><td colspan="2" class="optionsave">
79            <input type="reset" class="cancel" value="<%=intl._t("Cancel")%>" >
80            <input type="submit" name="action" class="accept" value="<%=intl._t("Save")%>" >
81        </td></tr></table></form></div></body></html>
Note: See TracBrowser for help on using the repository browser.