2005-03-23 21:13:03 +00:00
|
|
|
<%@page contentType="text/html"%>
|
2012-01-10 13:21:35 +00:00
|
|
|
<%@page trimDirectiveWhitespaces="true"%>
|
2005-03-23 21:13:03 +00:00
|
|
|
<%@page pageEncoding="UTF-8"%>
|
|
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
|
|
|
2009-10-20 12:12:26 +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 update")%>
|
2012-06-05 13:37:10 +00:00
|
|
|
<script src="/js/ajax.js" type="text/javascript"></script>
|
2012-07-17 00:47:08 +00:00
|
|
|
<%@include file="summaryajax.jsi" %>
|
2012-06-05 13:37:10 +00:00
|
|
|
</head><body onload="initAjax()">
|
2005-03-23 21:13:03 +00:00
|
|
|
|
2009-11-21 13:33:57 +00:00
|
|
|
<%@include file="summary.jsi" %>
|
2015-09-25 19:55:36 +00:00
|
|
|
<h1><%=intl._t("I2P Update Configuration")%></h1>
|
2016-05-23 05:41:24 +00:00
|
|
|
<div class="main" id="config_update">
|
2009-11-21 13:33:57 +00:00
|
|
|
<%@include file="confignav.jsi" %>
|
2009-08-15 16:08:33 +00:00
|
|
|
|
2005-03-23 21:13:03 +00:00
|
|
|
<jsp:useBean class="net.i2p.router.web.ConfigUpdateHandler" id="formhandler" scope="request" />
|
2012-10-20 20:52:45 +00:00
|
|
|
<%@include file="formhandler.jsi" %>
|
2005-03-23 21:13:03 +00:00
|
|
|
<jsp:useBean class="net.i2p.router.web.ConfigUpdateHelper" id="updatehelper" scope="request" />
|
2018-07-28 19:03:01 +00:00
|
|
|
<jsp:setProperty name="updatehelper" property="contextId" value="<%=i2pcontextId%>" />
|
2009-07-17 17:33:35 +00:00
|
|
|
<div class="messages">
|
2011-11-09 18:38:39 +00:00
|
|
|
<jsp:getProperty name="updatehelper" property="newsStatus" /></div>
|
2010-11-19 15:23:25 +00:00
|
|
|
<form action="" method="POST">
|
2012-10-20 20:52:45 +00:00
|
|
|
<input type="hidden" name="nonce" value="<%=pageNonce%>" >
|
2010-03-29 21:20:48 +00:00
|
|
|
<% /* set hidden default */ %>
|
|
|
|
<input type="submit" name="action" value="" style="display:none" >
|
2011-06-17 18:13:49 +00:00
|
|
|
<% if (updatehelper.canInstall()) { %>
|
2016-05-23 11:37:49 +00:00
|
|
|
<h3 class="tabletitle"><%=intl._t("Check for I2P and News Updates")%></h3>
|
2016-04-18 04:12:15 +00:00
|
|
|
<table id="i2pupdates" class="configtable" border="0" cellspacing="5">
|
2017-05-14 05:30:13 +00:00
|
|
|
<tr><td align="right"><b><%=intl._t("News & I2P Updates")%>:</b></td>
|
2011-06-17 18:13:49 +00:00
|
|
|
<% } else { %>
|
2015-09-25 19:55:36 +00:00
|
|
|
<h3><%=intl._t("Check for news updates")%></h3>
|
2016-04-18 04:12:15 +00:00
|
|
|
<table id="i2pupdates" class="configtable" border="0" cellspacing="5">
|
2011-06-17 18:13:49 +00:00
|
|
|
<tr><td colspan="2"></tr>
|
2017-05-14 05:30:13 +00:00
|
|
|
<tr><td align="right"><b><%=intl._t("News Updates")%>:</b></td>
|
2011-06-17 18:13:49 +00:00
|
|
|
<% } // if canInstall %>
|
2015-09-25 19:55:36 +00:00
|
|
|
<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")%>" />
|
2009-08-15 16:08:33 +00:00
|
|
|
<% } %></td></tr>
|
2017-05-14 05:30:13 +00:00
|
|
|
<tr><td align="right"><b><%=intl._t("News URL")%>:</b></td>
|
2014-08-03 13:58:51 +00:00
|
|
|
<td><input type="text" size="60" name="newsURL" <% if (!updatehelper.isAdvanced()) { %>readonly="readonly"<% } %> value="<jsp:getProperty name="updatehelper" property="newsURL" />"></td>
|
2017-05-14 05:30:13 +00:00
|
|
|
</tr><tr><td align="right"><b><%=intl._t("Refresh frequency")%>:</b>
|
2010-02-02 15:25:26 +00:00
|
|
|
<td><jsp:getProperty name="updatehelper" property="refreshFrequencySelectBox" /></td></tr>
|
|
|
|
<% if (updatehelper.canInstall()) { %>
|
2017-05-14 05:30:13 +00:00
|
|
|
<tr><td align="right"><b><%=formhandler._t("Update policy")%>:</b></td>
|
2011-05-27 14:58:57 +00:00
|
|
|
<td><jsp:getProperty name="updatehelper" property="updatePolicySelectBox" /></td></tr>
|
|
|
|
<% } // if canInstall %>
|
2018-02-21 12:54:56 +00:00
|
|
|
<% if (updatehelper.isAdvanced()) { %>
|
2017-05-14 05:30:13 +00:00
|
|
|
<tr><td align="right"><label for="newsThroughProxy"><b><%=intl._t("Fetch news through the eepProxy?")%></b></label></td>
|
2013-10-04 20:21:54 +00:00
|
|
|
<td><jsp:getProperty name="updatehelper" property="newsThroughProxy" /></td></tr>
|
2018-02-21 12:54:56 +00:00
|
|
|
<% if (updatehelper.canInstall()) { %>
|
2017-05-14 05:30:13 +00:00
|
|
|
<tr><td align="right"><b><label for="updateThroughProxy"><%=intl._t("Update through the eepProxy?")%></b></label></td>
|
2013-10-04 19:06:39 +00:00
|
|
|
<td><jsp:getProperty name="updatehelper" property="updateThroughProxy" /></td></tr>
|
2018-02-21 12:54:56 +00:00
|
|
|
<% } // if canInstall %>
|
2017-05-14 05:30:13 +00:00
|
|
|
<tr><td align="right"><b><%=intl._t("eepProxy host")%>:</b></td>
|
2009-08-15 16:08:33 +00:00
|
|
|
<td><input type="text" size="10" name="proxyHost" value="<jsp:getProperty name="updatehelper" property="proxyHost" />" /></td>
|
2017-05-14 05:30:13 +00:00
|
|
|
</tr><tr><td align="right"><b><%=intl._t("eepProxy port")%>:</b></td>
|
2012-01-18 16:57:27 +00:00
|
|
|
<td><input type="text" size="10" name="proxyPort" value="<jsp:getProperty name="updatehelper" property="proxyPort" />" /></td></tr>
|
2018-02-21 12:54:56 +00:00
|
|
|
<% } // if isAdvanced %>
|
2011-05-27 14:58:57 +00:00
|
|
|
<% if (updatehelper.canInstall()) { %>
|
2013-10-04 19:06:39 +00:00
|
|
|
<% if (updatehelper.isAdvanced()) { %>
|
2017-05-14 05:30:13 +00:00
|
|
|
<tr><td align="right"><b><%=intl._t("Update URLs")%>:</b></td>
|
2012-03-02 22:32:45 +00:00
|
|
|
<td><textarea cols="60" rows="6" name="updateURL" wrap="off" spellcheck="false"><jsp:getProperty name="updatehelper" property="updateURL" /></textarea></td>
|
2017-05-14 05:30:13 +00:00
|
|
|
</tr><tr><td align="right"><b><%=intl._t("Trusted keys")%>:</b></td>
|
2013-10-04 19:06:39 +00:00
|
|
|
<td><textarea cols="60" rows="6" name="trustedKeys" wrap="off" spellcheck="false"><jsp:getProperty name="updatehelper" property="trustedKeys" /></textarea></td></tr>
|
2017-05-14 05:30:13 +00:00
|
|
|
<tr><td id="devSU3build" align="right"><b><label for="updateDevSU3"><%=intl._t("Update with signed development builds?")%></b></label></td>
|
2015-05-07 13:04:43 +00:00
|
|
|
<td><jsp:getProperty name="updatehelper" property="updateDevSU3" /></td>
|
2017-05-14 05:30:13 +00:00
|
|
|
</tr><tr><td align="right"><b><%=intl._t("Signed Build URL")%>:</b></td>
|
2015-05-07 13:04:43 +00:00
|
|
|
<td><input type="text" size="60" name="devSU3URL" value="<jsp:getProperty name="updatehelper" property="devSU3URL" />"></td></tr>
|
2017-05-14 05:30:13 +00:00
|
|
|
<tr><td id="unsignedbuild" align="right"><b><label for="updateUnsigned"><%=intl._t("Update with unsigned development builds?")%></b></label></td>
|
2009-08-15 16:08:33 +00:00
|
|
|
<td><jsp:getProperty name="updatehelper" property="updateUnsigned" /></td>
|
2017-05-14 05:30:13 +00:00
|
|
|
</tr><tr><td align="right"><b><%=intl._t("Unsigned Build URL")%>:</b></td>
|
2010-02-02 15:25:26 +00:00
|
|
|
<td><input type="text" size="60" name="zipURL" value="<jsp:getProperty name="updatehelper" property="zipURL" />"></td></tr>
|
2014-08-03 13:58:51 +00:00
|
|
|
<% } // if isAdvanced %>
|
2010-02-02 15:25:26 +00:00
|
|
|
<% } else { %>
|
2017-05-14 05:30:13 +00:00
|
|
|
<tr><td align="center" colspan="2"><b><%=intl._t("Updates will be dispatched via your package manager.")%></b></td></tr>
|
2010-02-02 15:25:26 +00:00
|
|
|
<% } // if canInstall %>
|
2016-04-18 04:12:15 +00:00
|
|
|
<tr class="tablefooter"><td colspan="2" class="optionsave">
|
2015-09-25 19:55:36 +00:00
|
|
|
<input type="reset" class="cancel" value="<%=intl._t("Cancel")%>" >
|
|
|
|
<input type="submit" name="action" class="accept" value="<%=intl._t("Save")%>" >
|
2016-04-18 04:12:15 +00:00
|
|
|
</td></tr></table></form></div></body></html>
|