i2ptunnel: Enhance registration authentication page

- Enable form
- Switch to multipart form for getting old private key file
- Add advanced authentications
PrivateKeyFile: Add InputStream constructor for i2ptunnel
This commit is contained in:
zzz
2016-04-24 21:03:10 +00:00
parent 2a34d1c44a
commit 0ac83bd7c1
4 changed files with 206 additions and 24 deletions

View File

@@ -270,6 +270,8 @@
<pathelement location="build/i2ptunnel.jar" />
<pathelement location="build/temp-beans.jar" />
<pathelement location="../../../core/java/build/i2p.jar" />
<!-- required for multipart form handling in register.jsp -->
<pathelement location="../../jetty/jettylib/jetty-i2p.jar" />
</classpath>
<arg value="-d" />
<arg value="../jsp/WEB-INF/classes" />
@@ -299,6 +301,8 @@
<pathelement location="build/i2ptunnel.jar" />
<pathelement location="build/temp-beans.jar" />
<pathelement location="../../../core/java/build/i2p.jar" />
<!-- required for multipart form handling in register.jsp -->
<pathelement location="../../jetty/jettylib/jetty-i2p.jar" />
</classpath>
</javac>
<copy file="../jsp/web.xml" tofile="../jsp/web-out.xml" />

View File

@@ -40,6 +40,11 @@ public class Messages {
return Translate.getString(s, o, _context, BUNDLE_NAME);
}
/** @since 0.9.26 */
public String _t(String s, Object o1, Object o2) {
return Translate.getString(s, o1, o2, _context, BUNDLE_NAME);
}
/** translate (ngettext)
* @since 0.9.7
*/