
* Added some basic guards to prevent multiple instances from running. Specifically, a file "router.ping" in the install directory which is written to once a minute - if that file exists and has been modified within the last minute, refuse to start up. In turn, adjust the service wrapper to wait a minute before restarting a crashed JVM. * Create a "work" directory in the I2P install dir which Jetty will use for all of its temporary files. * Tell the browser not to cache most of the router console's pages.
28 lines
1.1 KiB
Plaintext
28 lines
1.1 KiB
Plaintext
<% response.setHeader("Pragma", "no-cache");
|
|
response.setHeader("Cache-Control","no-cache");
|
|
response.setDateHeader("Expires", 0);
|
|
// the above will b0rk if the servlet engine has already flushed
|
|
// the response prior to including nav.jsp, so nav should be
|
|
// near the top
|
|
|
|
if (request.getParameter("i2p.contextId") != null) {
|
|
session.setAttribute("i2p.contextId", request.getParameter("i2p.contextId"));
|
|
}%>
|
|
|
|
<div class="logo">
|
|
<a href="index.jsp"><img src="i2plogo.png" alt="Router Console" width="187" height="35" /></a><br />
|
|
[<a href="config.jsp">configuration</a> | <a href="help.jsp">help</a>]
|
|
</div>
|
|
|
|
<h4>
|
|
<a href="profiles.jsp">Profiles</a> |
|
|
<a href="netdb.jsp">Network Database</a> |
|
|
<a href="logs.jsp">Logs</a> |
|
|
<a href="oldconsole.jsp">Old console</a> |
|
|
<a href="oldstats.jsp">Stats</a> |
|
|
<a href="i2ptunnel/" target="_blank">I2PTunnel</a>
|
|
<jsp:useBean class="net.i2p.router.web.NavHelper" id="navhelper" scope="request" />
|
|
<jsp:setProperty name="navhelper" property="contextId" value="<%=(String)session.getAttribute("i2p.contextId")%>" />
|
|
<jsp:getProperty name="navhelper" property="clientAppLinks" />
|
|
</h4>
|