1 | <%@page contentType="text/html"%> |
---|
2 | <%@page pageEncoding="UTF-8"%> |
---|
3 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
---|
4 | <html><head> |
---|
5 | <%@include file="css.jsi" %> |
---|
6 | <%=intl.title("home")%> |
---|
7 | <script src="/js/ajax.js" type="text/javascript"></script> |
---|
8 | <%@include file="summaryajax.jsi" %> |
---|
9 | </head><body onload="initAjax()"> |
---|
10 | <% |
---|
11 | String consoleNonce = net.i2p.router.web.CSSHelper.getNonce(); |
---|
12 | %> |
---|
13 | <jsp:useBean class="net.i2p.router.web.NewsHelper" id="newshelper" scope="request" /> |
---|
14 | <jsp:setProperty name="newshelper" property="contextId" value="<%=i2pcontextId%>" /> |
---|
15 | <% |
---|
16 | java.io.File fpath = new java.io.File(net.i2p.I2PAppContext.getGlobalContext().getRouterDir(), "docs/news.xml"); |
---|
17 | %> |
---|
18 | <jsp:setProperty name="newshelper" property="page" value="<%=fpath.getAbsolutePath()%>" /> |
---|
19 | <jsp:setProperty name="newshelper" property="maxLines" value="300" /> |
---|
20 | <jsp:useBean class="net.i2p.router.web.ConfigUpdateHelper" id="updatehelper" scope="request" /> |
---|
21 | <jsp:setProperty name="updatehelper" property="contextId" value="<%=i2pcontextId%>" /> |
---|
22 | |
---|
23 | <div class="routersummaryouter"> |
---|
24 | <div class="routersummary"> |
---|
25 | <div style="height: 36px;"> |
---|
26 | <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> |
---|
27 | </div> |
---|
28 | <% |
---|
29 | if (!intl.allowIFrame(request.getHeader("User-Agent"))) { |
---|
30 | %> |
---|
31 | <a href="/summaryframe"><%=intl._t("Summary Bar")%></a> |
---|
32 | <% |
---|
33 | } |
---|
34 | %> |
---|
35 | <div id="xhr"> |
---|
36 | <!-- for non-script --> |
---|
37 | <%@include file="xhr1.jsi" %> |
---|
38 | </div> |
---|
39 | </div> |
---|
40 | </div> |
---|
41 | |
---|
42 | <h1><%=intl._t("I2P Router Console")%></h1> |
---|
43 | |
---|
44 | <% |
---|
45 | if (newshelper.shouldShowNews()) { |
---|
46 | %> |
---|
47 | <div class="news" id="news"> |
---|
48 | <jsp:getProperty name="newshelper" property="content" /> |
---|
49 | <hr> |
---|
50 | <jsp:getProperty name="updatehelper" property="newsStatus" /><br> |
---|
51 | </div> |
---|
52 | <% |
---|
53 | } // shouldShowNews() |
---|
54 | %> |
---|
55 | |
---|
56 | <div class="main" id="home"> |
---|
57 | <jsp:useBean class="net.i2p.router.web.helpers.HomeHelper" id="homehelper" scope="request" /> |
---|
58 | <jsp:setProperty name="homehelper" property="contextId" value="<%=i2pcontextId%>" /> |
---|
59 | <% if (homehelper.shouldShowWelcome()) { %> |
---|
60 | <div class="welcome" title="<%=intl._t("Click a flag to select a language. Click 'Configure UI' below to change it later.")%>"> |
---|
61 | <div class="langbox" id="langbox"> |
---|
62 | <a href="/home?lang=en&consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=us" title="English" alt="English"></a> |
---|
63 | <a href="/home?lang=ar&consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=lang_ar" title="Arabic عربية" alt="Arabic عربية"></a> |
---|
64 | <a href="/home?lang=az&consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=az" title="Azerbaijani" alt="Azerbaijani"></a> |
---|
65 | <a href="/home?lang=cs&consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=cz" title="Čeština" alt="Čeština"></a> |
---|
66 | <a href="/home?lang=zh&consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=cn" title="Chinese 中文" alt="Chinese 中文"></a> |
---|
67 | <a href="/home?lang=zh_TW&consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=tw" title="Chinese 中文 (Taiwan)" alt="Chinese 中文 (Taiwan)"></a> |
---|
68 | <a href="/home?lang=da&consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=dk" title="Dansk" alt="Dansk"></a> |
---|
69 | <a href="/home?lang=de&consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=de" title="Deutsch" alt="Deutsch"></a> |
---|
70 | <a href="/home?lang=et&consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=ee" title="Eesti" alt="Eesti"></a> |
---|
71 | <a href="/home?lang=es&consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=es" title="Español" alt="Español"></a> |
---|
72 | <a href="/home?lang=fr&consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=fr" title="Français" alt="Français"></a> |
---|
73 | <a href="/home?lang=gl&consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=lang_gl" title="Galician" alt="Galician"></a> |
---|
74 | <a href="/home?lang=el&consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=gr" title="Greek ελληνικά" alt="Greek ελληνικά"></a> |
---|
75 | <a href="/home?lang=in&consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=id" title="bahasa Indonesia" alt="bahasa Indonesia"></a> |
---|
76 | <a href="/home?lang=it&consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=it" title="Italiano" alt="Italiano"></a> |
---|
77 | <a href="/home?lang=ja&consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=jp" title="Japanese 日本語" alt="Japanese 日本語"></a> |
---|
78 | <br> |
---|
79 | <a href="/home?lang=ko&consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=kr" title="Korean 한국어" alt="Korean 한국어"></a> |
---|
80 | <a href="/home?lang=mg&consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=mg" title="Malagasy" alt="Malagasy"></a> |
---|
81 | <a href="/home?lang=hu&consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=hu" title="Magyar" alt="Magyar"></a> |
---|
82 | <a href="/home?lang=nb&consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=no" title="Norsk (bokmål)" alt="Norsk (bokmål)"></a> |
---|
83 | <a href="/home?lang=nl&consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=nl" title="Nederlands" alt="Nederlands"></a> |
---|
84 | <a href="/home?lang=pl&consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=pl" title="Polski" alt="Polski"></a> |
---|
85 | <a href="/home?lang=pt&consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=pt" title="Português" alt="Português"></a> |
---|
86 | <a href="/home?lang=pt_BR&consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=br" title="Português brasileiro" alt="Português brasileiro"></a> |
---|
87 | <a href="/home?lang=ro&consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=ro" title="Română" alt="Română"></a> |
---|
88 | <a href="/home?lang=ru&consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=ru" title="Russian Русский" alt="Russian Русский"></a> |
---|
89 | <a href="/home?lang=sk&consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=sk" title="Slovenčina" alt="Slovenčina"></a> |
---|
90 | <a href="/home?lang=fi&consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=fi" title="Suomi" alt="Suomi"></a> |
---|
91 | <a href="/home?lang=sv&consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=se" title="Svenska" alt="Svenska"></a> |
---|
92 | <a href="/home?lang=tr&consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=tr" title="Türkçe" alt="Türkçe"></a> |
---|
93 | <a href="/home?lang=uk&consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=ua" title="Ukrainian Українська" alt="Ukrainian Українська"></a> |
---|
94 | <a href="/home?lang=vi&consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=vn" title="Vietnamese Tiếng Việt" alt="Vietnamese Tiếng Việt"></a> |
---|
95 | </div> |
---|
96 | <h2><%=intl._t("Welcome to I2P")%></h2> |
---|
97 | </div> |
---|
98 | <% } // shouldShowWelcome %> |
---|
99 | |
---|
100 | <div id="homepanel"> |
---|
101 | <% |
---|
102 | if (homehelper.shouldShowSearch()) { |
---|
103 | %> |
---|
104 | <div class="search"> |
---|
105 | <form action="/search.jsp" target="_blank" method="POST"> |
---|
106 | <table class="search"><tr><td align="right"> |
---|
107 | <input size="40" type="text" class="search" name="query" /> |
---|
108 | </td><td align="left"> |
---|
109 | <button type="submit" value="search" class="search"><%=intl._t("Search")%></button> |
---|
110 | </td><td align="left"> |
---|
111 | <jsp:useBean class="net.i2p.router.web.helpers.SearchHelper" id="searchhelper" scope="request" /> |
---|
112 | <jsp:setProperty name="searchhelper" property="contextId" value="<%=i2pcontextId%>" /> |
---|
113 | <jsp:getProperty name="searchhelper" property="selector" /> |
---|
114 | </td></tr></table> |
---|
115 | </form> |
---|
116 | </div> |
---|
117 | <% |
---|
118 | } // shouldShowSearch() |
---|
119 | %> |
---|
120 | <div class="ag2"> |
---|
121 | <h4 class="app2"><%=intl._t("Hidden Services of Interest")%></h4> |
---|
122 | <jsp:getProperty name="homehelper" property="favorites" /><br> |
---|
123 | <div class="clearer"> </div> |
---|
124 | </div> |
---|
125 | <div class="ag2"> |
---|
126 | <h4 class="app"><%=intl._t("Applications and Configuration")%></h4> |
---|
127 | <jsp:getProperty name="homehelper" property="services" /><br> |
---|
128 | <div class="clearer"> </div> |
---|
129 | </div> |
---|
130 | </div> |
---|
131 | </div> |
---|
132 | </body></html> |
---|