source: apps/susidns/src/jsp/subscriptions.jsp @ f902a63

Last change on this file since f902a63 was f902a63, checked in by zzz <zzz@…>, 4 years ago

Console: Add Referrer-Policy header

  • Property mode set to 100644
File size: 4.0 KB
Line 
1<%
2/*
3 * Created on Sep 02, 2005
4 *
5 *  This file is part of susidns project, see http://susi.i2p/
6 * 
7 *  Copyright (C) 2005 <susi23@mail.i2p>
8 *
9 *  This program is free software; you can redistribute it and/or modify
10 *  it under the terms of the GNU General Public License as published by
11 *  the Free Software Foundation; either version 2 of the License, or
12 *  (at your option) any later version.
13 *
14 *  This program is distributed in the hope that it will be useful,
15 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
16 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 *  GNU General Public License for more details.
18 *
19 *  You should have received a copy of the GNU General Public License
20 *  along with this program; if not, write to the Free Software
21 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
22 * 
23 * $Revision: 1.2 $
24 */
25
26    // http://www.crazysquirrel.com/computing/general/form-encoding.jspx
27    if (request.getCharacterEncoding() == null)
28        request.setCharacterEncoding("UTF-8");
29
30    response.setHeader("X-Frame-Options", "SAMEORIGIN");
31    response.setHeader("Content-Security-Policy", "default-src 'self'; style-src 'self' 'unsafe-inline'");
32    response.setHeader("X-XSS-Protection", "1; mode=block");
33    response.setHeader("X-Content-Type-Options", "nosniff");
34    response.setHeader("Referrer-Policy", "no-referrer");
35
36%>
37<%@page pageEncoding="UTF-8"%>
38<%@ page contentType="text/html"%>
39<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
40<jsp:useBean id="version" class="i2p.susi.dns.VersionBean" scope="application" />
41<jsp:useBean id="subs" class="i2p.susi.dns.SubscriptionsBean" scope="session" />
42<jsp:useBean id="intl" class="i2p.susi.dns.Messages" scope="application" />
43<jsp:setProperty name="subs" property="*" />
44<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
45<html>
46<head>
47<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
48<title><%=intl._t("subscriptions")%> - susidns</title>
49<link rel="stylesheet" type="text/css" href="<%=subs.getTheme()%>susidns.css?<%=net.i2p.CoreVersion.VERSION%>">
50</head>
51<body>
52<div class="page">
53<div id="logo">
54<a href="index"><img src="<%=subs.getTheme()%>images/logo.png" alt="" title="<%=intl._t("Overview")%>" border="0"/></a>
55</div><hr>
56<div id="navi">
57<p>
58<%=intl._t("Address books")%>:
59<a href="addressbook?book=private"><%=intl._t("private")%></a> |
60<a href="addressbook?book=master"><%=intl._t("master")%></a> |
61<a href="addressbook?book=router"><%=intl._t("router")%></a> |
62<a href="addressbook?book=published"><%=intl._t("published")%></a> *
63<%=intl._t("Subscriptions")%> *
64<a href="config"><%=intl._t("Configuration")%></a> *
65<a href="index"><%=intl._t("Overview")%></a>
66</p>
67</div><hr>
68<div id="headline">
69<h3>${subs.fileName}</h3>
70</div>
71<div id="messages">${subs.messages}</div>
72<form method="POST" action="subscriptions">
73<div id="content">
74<input type="hidden" name="serial" value="${subs.serial}" >
75<textarea name="content" rows="10" cols="80">${subs.content}</textarea>
76</div>
77<div id="buttons">
78<input class="reload" type="submit" name="action" value="<%=intl._t("Reload")%>" >
79<input class="accept" type="submit" name="action" value="<%=intl._t("Save")%>" >
80</div>
81</form>
82<div id="help">
83<p class="help">
84<%=intl._t("The subscription file contains a list of i2p URLs.")%>
85<%=intl._t("The addressbook application regularly checks this list for new eepsites.")%>
86<%=intl._t("Those URLs refer to published hosts.txt files.")%>
87<%=intl._t("The default subscription is the hosts.txt from {0}, which is updated infrequently.", "i2p-projekt.i2p")%>
88<%=intl._t("So it is a good idea to add additional subscriptions to sites that have the latest addresses.")%>
89<a href="http://i2p-projekt.i2p/faq.html#subscriptions" target="_top"><%=intl._t("See the FAQ for a list of subscription URLs.")%></a>
90</p>
91</div>
92<div id="footer">
93<hr>
94<p class="footer">susidns v${version.version} &copy; <a href="${version.url}" target="_top">susi</a> 2005</p>
95</div>
96</div>
97</body>
98</html>
Note: See TracBrowser for help on using the repository browser.