2012-01-25 02:38:49 +00:00
|
|
|
<%@page contentType="text/html"%>
|
|
|
|
<%@page pageEncoding="UTF-8"%>
|
|
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
|
|
<html><head>
|
|
|
|
<%@include file="css.jsi" %>
|
|
|
|
<%=intl.title("home")%>
|
2012-07-17 00:47:08 +00:00
|
|
|
<%@include file="summaryajax.jsi" %>
|
2019-12-25 12:18:00 +00:00
|
|
|
</head><body>
|
2012-01-25 02:38:49 +00:00
|
|
|
<%
|
2015-10-17 17:38:57 +00:00
|
|
|
String consoleNonce = net.i2p.router.web.CSSHelper.getNonce();
|
2012-01-25 02:38:49 +00:00
|
|
|
%>
|
2012-03-16 12:08:43 +00:00
|
|
|
<jsp:useBean class="net.i2p.router.web.NewsHelper" id="newshelper" scope="request" />
|
2018-07-28 19:03:01 +00:00
|
|
|
<jsp:setProperty name="newshelper" property="contextId" value="<%=i2pcontextId%>" />
|
2012-05-31 09:30:30 +00:00
|
|
|
<%
|
|
|
|
java.io.File fpath = new java.io.File(net.i2p.I2PAppContext.getGlobalContext().getRouterDir(), "docs/news.xml");
|
|
|
|
%>
|
|
|
|
<jsp:setProperty name="newshelper" property="page" value="<%=fpath.getAbsolutePath()%>" />
|
|
|
|
<jsp:setProperty name="newshelper" property="maxLines" value="300" />
|
2012-03-16 12:08:43 +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%>" />
|
2012-03-16 12:08:43 +00:00
|
|
|
|
2012-05-25 00:43:29 +00:00
|
|
|
<div class="routersummaryouter">
|
2012-01-25 02:38:49 +00:00
|
|
|
<div class="routersummary">
|
2020-01-24 00:27:40 +00:00
|
|
|
<div>
|
2015-09-25 19:55:36 +00:00
|
|
|
<a href="/console"><img src="<%=intl.getTheme(request.getHeader("User-Agent"))%>images/i2plogo.png" alt="<%=intl._t("I2P Router Console")%>" title="<%=intl._t("I2P Router Console")%>"></a>
|
2012-01-25 02:38:49 +00:00
|
|
|
</div>
|
2013-01-21 08:38:00 +00:00
|
|
|
<%
|
|
|
|
if (!intl.allowIFrame(request.getHeader("User-Agent"))) {
|
|
|
|
%>
|
2019-07-19 20:30:22 +00:00
|
|
|
<a href="/summaryframe"><%=intl._t("Sidebar")%></a>
|
2013-01-21 08:38:00 +00:00
|
|
|
<%
|
|
|
|
}
|
|
|
|
%>
|
2012-01-25 02:38:49 +00:00
|
|
|
<div id="xhr">
|
|
|
|
<!-- for non-script -->
|
|
|
|
<%@include file="xhr1.jsi" %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2015-09-25 19:55:36 +00:00
|
|
|
<h1><%=intl._t("I2P Router Console")%></h1>
|
2012-05-25 00:43:29 +00:00
|
|
|
|
|
|
|
<%
|
|
|
|
if (newshelper.shouldShowNews()) {
|
|
|
|
%>
|
|
|
|
<div class="news" id="news">
|
|
|
|
<jsp:getProperty name="newshelper" property="content" />
|
|
|
|
<hr>
|
|
|
|
<jsp:getProperty name="updatehelper" property="newsStatus" /><br>
|
|
|
|
</div>
|
|
|
|
<%
|
|
|
|
} // shouldShowNews()
|
|
|
|
%>
|
|
|
|
|
2017-01-07 17:42:07 +00:00
|
|
|
<div class="main" id="home">
|
2017-12-01 14:07:29 +00:00
|
|
|
<jsp:useBean class="net.i2p.router.web.helpers.HomeHelper" id="homehelper" scope="request" />
|
2018-07-28 19:03:01 +00:00
|
|
|
<jsp:setProperty name="homehelper" property="contextId" value="<%=i2pcontextId%>" />
|
2012-03-12 14:30:38 +00:00
|
|
|
<% if (homehelper.shouldShowWelcome()) { %>
|
2019-10-09 17:31:44 +00:00
|
|
|
<div class="welcome" >
|
2019-10-09 18:53:00 +00:00
|
|
|
<div class="langbox" title="<%=intl._t("Configure Language")%>">
|
|
|
|
<a href="/configui#langheading"><img src="/themes/console/images/info/control.png" alt="<%=intl._t("Configure Language")%>"></a>
|
2012-01-25 02:38:49 +00:00
|
|
|
</div>
|
2015-09-25 19:55:36 +00:00
|
|
|
<h2><%=intl._t("Welcome to I2P")%></h2>
|
2012-01-25 02:38:49 +00:00
|
|
|
</div>
|
2012-03-12 14:30:38 +00:00
|
|
|
<% } // shouldShowWelcome %>
|
2012-01-25 02:38:49 +00:00
|
|
|
|
2017-05-14 05:30:13 +00:00
|
|
|
<div id="homepanel">
|
2012-04-20 13:25:29 +00:00
|
|
|
<%
|
|
|
|
if (homehelper.shouldShowSearch()) {
|
|
|
|
%>
|
2012-01-25 02:38:49 +00:00
|
|
|
<div class="search">
|
2016-05-23 11:02:10 +00:00
|
|
|
<form action="/search.jsp" target="_blank" method="POST">
|
2012-03-03 20:17:02 +00:00
|
|
|
<table class="search"><tr><td align="right">
|
2012-03-12 14:30:38 +00:00
|
|
|
<input size="40" type="text" class="search" name="query" />
|
2012-01-25 02:38:49 +00:00
|
|
|
</td><td align="left">
|
2016-05-23 11:37:49 +00:00
|
|
|
<button type="submit" value="search" class="search"><%=intl._t("Search")%></button>
|
2012-01-25 02:38:49 +00:00
|
|
|
</td><td align="left">
|
2017-12-01 14:07:29 +00:00
|
|
|
<jsp:useBean class="net.i2p.router.web.helpers.SearchHelper" id="searchhelper" scope="request" />
|
2018-07-28 19:03:01 +00:00
|
|
|
<jsp:setProperty name="searchhelper" property="contextId" value="<%=i2pcontextId%>" />
|
2012-01-25 02:38:49 +00:00
|
|
|
<jsp:getProperty name="searchhelper" property="selector" />
|
|
|
|
</td></tr></table>
|
|
|
|
</form>
|
|
|
|
</div>
|
2012-04-20 13:25:29 +00:00
|
|
|
<%
|
|
|
|
} // shouldShowSearch()
|
|
|
|
%>
|
2012-01-25 02:38:49 +00:00
|
|
|
<div class="ag2">
|
2019-11-11 00:49:26 +00:00
|
|
|
<h4 class="app"><%=intl._t("Applications")%></h4>
|
|
|
|
<div class="homeapps">
|
|
|
|
<jsp:getProperty name="homehelper" property="services" /><br>
|
|
|
|
<div class="clearer"> </div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="ag2">
|
2019-11-23 18:41:42 +00:00
|
|
|
<h4 class="app2"><%=intl._t("Websites Inside I2P")%></h4>
|
2019-11-08 17:42:53 +00:00
|
|
|
<div class="homesites">
|
|
|
|
<jsp:getProperty name="homehelper" property="favorites" /><br>
|
2018-09-29 08:48:31 +00:00
|
|
|
<div class="clearer"> </div>
|
2019-11-08 17:42:53 +00:00
|
|
|
</div>
|
2018-09-26 22:59:55 +00:00
|
|
|
</div>
|
|
|
|
<div class="ag2">
|
2019-11-11 00:49:26 +00:00
|
|
|
<h4 class="app"><%=intl._t("Configuration")%></h4>
|
|
|
|
<div class="homeconfig">
|
|
|
|
<jsp:getProperty name="homehelper" property="config" /><br>
|
|
|
|
<div class="clearer"> </div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="ag2">
|
2019-11-23 18:41:42 +00:00
|
|
|
<h4 class="app"><%=intl._t("Developer Information")%></h4>
|
2019-11-11 00:49:26 +00:00
|
|
|
<div class="homedevs">
|
|
|
|
<jsp:getProperty name="homehelper" property="monitoring" /><br>
|
2012-05-25 00:43:29 +00:00
|
|
|
<div class="clearer"> </div>
|
2019-11-08 17:42:53 +00:00
|
|
|
</div>
|
2012-01-25 02:38:49 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2012-03-22 19:49:48 +00:00
|
|
|
</div>
|
2012-01-25 02:38:49 +00:00
|
|
|
</body></html>
|