forked from I2P_Developers/i2p.i2p
Console: Drop old proof page
This commit is contained in:
@@ -1,38 +0,0 @@
|
||||
package net.i2p.router.web.helpers;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
import net.i2p.data.DataHelper;
|
||||
import net.i2p.data.router.RouterAddress;
|
||||
import net.i2p.data.router.RouterInfo;
|
||||
import net.i2p.data.Signature;
|
||||
import net.i2p.router.web.HelperBase;
|
||||
|
||||
/**
|
||||
* Sign a statement about this router.
|
||||
* @since 0.9.8
|
||||
*/
|
||||
public class ProofHelper extends HelperBase {
|
||||
|
||||
public String getProof() {
|
||||
StringBuilder buf = new StringBuilder(512);
|
||||
RouterInfo us = _context.router().getRouterInfo();
|
||||
buf.append("Hash: ").append(us.getIdentity().calculateHash().toBase64()).append('\n');
|
||||
//buf.append("Ident: ").append(us.getIdentity().toBase64()).append('\n');
|
||||
for (RouterAddress addr : us.getAddresses()) {
|
||||
buf.append(addr.getTransportStyle()).append(": ").append(addr.getHost()).append('\n');
|
||||
}
|
||||
buf.append("Caps: ").append(us.getCapabilities()).append('\n');
|
||||
buf.append("Date: ").append(new Date()); // no trailing newline
|
||||
String msg = buf.toString();
|
||||
byte[] data = DataHelper.getUTF8(msg);
|
||||
Signature sig = _context.dsa().sign(data, _context.keyManager().getSigningPrivateKey());
|
||||
buf.setLength(0);
|
||||
buf.append("---BEGIN I2P SIGNED MESSAGE---\n");
|
||||
buf.append(msg);
|
||||
buf.append("\n---BEGIN I2P SIGNATURE---\n");
|
||||
buf.append(sig.toBase64());
|
||||
buf.append("\n---END I2P SIGNATURE---");
|
||||
return buf.toString();
|
||||
}
|
||||
}
|
@@ -531,15 +531,6 @@ class SummaryBarRenderer {
|
||||
.append("</a>\n");
|
||||
svcs.put(tx, rbuf.toString());
|
||||
|
||||
tx = _t("Proof");
|
||||
rbuf.setLength(0);
|
||||
rbuf.append("<a title=\"")
|
||||
.append(_t("Signed proof of ownership of this router"))
|
||||
.append("\" href=\"/proof\" target=\"_top\">")
|
||||
.append(nbsp(tx))
|
||||
.append("</a>\n");
|
||||
svcs.put(tx, rbuf.toString());
|
||||
|
||||
tx = _t("Stats");
|
||||
rbuf.setLength(0);
|
||||
rbuf.append("<a href=\"/stats\" target=\"_top\" title=\"")
|
||||
|
@@ -1,14 +0,0 @@
|
||||
<%@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("Proof")%>
|
||||
<%@include file="summaryajax.jsi" %>
|
||||
</head><body>
|
||||
<%@include file="summary.jsi" %><h1>Proof of Ownership</h1>
|
||||
<div class="main" id="proof"><p>
|
||||
<jsp:useBean class="net.i2p.router.web.helpers.ProofHelper" id="proofHelper" scope="request" />
|
||||
<jsp:setProperty name="proofHelper" property="contextId" value="<%=i2pcontextId%>" />
|
||||
<textarea cols="70" rows="15" wrap="off" readonly="readonly" spellcheck="false"><jsp:getProperty name="proofHelper" property="proof" /></textarea>
|
||||
</p></div></body></html>
|
@@ -4994,30 +4994,6 @@ ul#banlist + hr {
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
#proof p {
|
||||
margin: 15px;
|
||||
padding: 30px 5px 0;
|
||||
border: 1px solid #000;
|
||||
border-radius: 2px;
|
||||
box-shadow: inset 0 0 0 1px #020, 0 0 1px #000;
|
||||
background: url(/themes/console/images/info/rosette.png) right 8px top 8px no-repeat #001900;
|
||||
background: url(/themes/console/images/info/rosette.png) right 8px top 8px no-repeat rgba(0,32,0,0.4);
|
||||
background-blend-mode: color-burn;
|
||||
}
|
||||
|
||||
#proof textarea {
|
||||
line-height: 160%;
|
||||
font-size: 9pt;
|
||||
overflow: hidden;
|
||||
word-break: break-all;
|
||||
white-space: pre-wrap;
|
||||
height: 200px;
|
||||
}
|
||||
|
||||
#proof textarea:focus {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
#oldconsole p {
|
||||
margin: 15px 0 10px;
|
||||
padding: 10px 20px;
|
||||
@@ -5445,21 +5421,6 @@ table#leasesetdebug th a:hover, table#leasesetsummary th a:hover {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.main#proof {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.main#proof textarea, .main#proof textarea:focus {
|
||||
padding: 5px 20px;
|
||||
margin: 0;
|
||||
width: 100%;
|
||||
border: none;
|
||||
background: none !important;
|
||||
box-shadow: none;
|
||||
color: #e6e6e7 !important;
|
||||
filter: none;
|
||||
}
|
||||
|
||||
#leasesetdebug, #leasesetsummary {
|
||||
margin-bottom: 14px;
|
||||
}
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 1.1 KiB |
@@ -1270,7 +1270,7 @@ p:empty + .sb_notice {
|
||||
box-shadow: inset 0 0 0 1px #dee2e6;
|
||||
}
|
||||
|
||||
.news, .main#news, .main#proof, .main#oldconsole, #warning2 {
|
||||
.news, .main#news, .main#oldconsole, #warning2 {
|
||||
background: #f6f6fa;
|
||||
background-size: 100% 100%, auto 160px, 100% 100% !important;
|
||||
}
|
||||
@@ -1292,7 +1292,7 @@ p:empty + .sb_notice {
|
||||
min-width: 546px;
|
||||
}
|
||||
|
||||
.main#proof, .main#oldconsole {
|
||||
.main#oldconsole {
|
||||
background-size: 100% 100%, auto 70%, 100% 100% !important;
|
||||
}
|
||||
|
||||
@@ -6423,7 +6423,7 @@ h3#ntcpcon, h3#udpcon {
|
||||
margin-bottom: 1px;
|
||||
}
|
||||
|
||||
#oldconsole p, #proof p {
|
||||
#oldconsole p {
|
||||
margin: 20px 5px 10px;
|
||||
padding: 10px 0;
|
||||
line-height: 180%;
|
||||
@@ -6441,39 +6441,6 @@ h3#ntcpcon, h3#udpcon {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
#proof textarea, #proof textarea:focus, #proof p {
|
||||
margin: 0 !important;
|
||||
padding: 0 !important;
|
||||
}
|
||||
|
||||
#proof p {
|
||||
margin: 15px 0 5px !important;
|
||||
padding: 15px 0 0 20px !important;
|
||||
width: calc(100% - 22px);
|
||||
}
|
||||
|
||||
#proof p::before {
|
||||
content: "";
|
||||
display: inline-block;
|
||||
background: url(/themes/console/images/info/rosette.png) right 5px top no-repeat !important;
|
||||
background-size: 24px 24px;
|
||||
height: 32px;
|
||||
width: 100%;
|
||||
margin: -8px 0 -10px;
|
||||
opacity: 0.7;
|
||||
}
|
||||
|
||||
#proof textarea, #proof textarea:focus {
|
||||
background: none;
|
||||
border: none;
|
||||
box-shadow: none;
|
||||
color: #33333f !important;
|
||||
filter: none;
|
||||
outline: none;
|
||||
line-height: 160%;
|
||||
height: 200px;
|
||||
}
|
||||
|
||||
.homelinkedit th:first-child, #sidebarconf th:first-child, #consolepass th:first-child {
|
||||
text-align: center;
|
||||
background: #f6f6ff url(/themes/console/images/buttons/delete.png) center center no-repeat !important;
|
||||
@@ -7429,17 +7396,6 @@ input[name="pluginURL"] {
|
||||
padding-left: 8px;
|
||||
}
|
||||
|
||||
.main#proof {
|
||||
padding: 0;
|
||||
min-width: 576px;
|
||||
}
|
||||
|
||||
.main#proof textarea {
|
||||
margin: -5px 10px !important;
|
||||
word-break: break-all;
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
|
||||
.cells {
|
||||
padding: 3px 2px !important;
|
||||
}
|
||||
@@ -7502,20 +7458,6 @@ input[name="pluginURL"] {
|
||||
width: 100px;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
#proof p {
|
||||
border: none;
|
||||
box-shadow: none;
|
||||
background: none;
|
||||
}
|
||||
|
||||
#proof p::before {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
#proof textarea {
|
||||
padding-right: 15px !important;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 1500px) {
|
||||
|
@@ -10,7 +10,7 @@ pre {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
#help pre, #logs li, #proof textarea {
|
||||
#help pre, #logs li {
|
||||
text-align: left;
|
||||
direction: ltr;
|
||||
}
|
||||
|
Reference in New Issue
Block a user