Changeset 8bbcb0b
- Timestamp:
- Mar 9, 2011 3:56:23 PM (10 years ago)
- Branches:
- master
- Children:
- 6b6aaab8
- Parents:
- a1032ab
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
apps/routerconsole/jsp/configclients.jsp
ra1032ab r8bbcb0b 28 28 <jsp:setProperty name="formhandler" property="settings" value="<%=request.getParameterMap()%>" /> 29 29 <jsp:getProperty name="formhandler" property="allMessages" /> 30 <div class="configure"> <form action="" method="POST">30 <div class="configure"> 31 31 <% String prev = System.getProperty("net.i2p.router.web.ConfigClientsHandler.nonce"); 32 32 if (prev != null) System.setProperty("net.i2p.router.web.ConfigClientsHandler.noncePrev", prev); 33 System.setProperty("net.i2p.router.web.ConfigClientsHandler.nonce", new java.util.Random().nextLong()+""); %> 34 <input type="hidden" name="nonce" value="<%=System.getProperty("net.i2p.router.web.ConfigClientsHandler.nonce")%>" > 35 <% /* set hidden default */ %> 36 <button type="submit" name="action" value="" style="display:none" >Cancel</button> 33 String pageNonce = Long.toString(new java.util.Random().nextLong()); 34 System.setProperty("net.i2p.router.web.ConfigClientsHandler.nonce", pageNonce); %> 37 35 <h3><%=intl._("Client Configuration")%></h3><p> 38 36 <%=intl._("The Java clients listed below are started by the router and run in the same JVM.")%> 39 37 </p><div class="wideload"> 40 <p><jsp:getProperty name="clientshelper" property="form1" /> 41 </p><p><i><%=intl._("To change other client options, edit the file")%> 38 <form action="" method="POST"> 39 <input type="hidden" name="nonce" value="<%=pageNonce%>" > 40 <jsp:getProperty name="clientshelper" property="form1" /> 41 <p><i><%=intl._("To change other client options, edit the file")%> 42 42 <%=net.i2p.router.startup.ClientAppConfig.configFile(net.i2p.I2PAppContext.getGlobalContext()).getAbsolutePath()%>. 43 43 <%=intl._("All changes require restart to take effect.")%></i> … … 48 48 <% } %> 49 49 <input type="submit" name="action" value="<%=intl._("Save Client Configuration")%>" /> 50 </div></ div>50 </div></form></div> 51 51 52 <h3><a name="i2cp"></a><%=intl._("Advanced Client Interface Configuration")%></h3><p> 52 <h3><a name="i2cp"></a><%=intl._("Advanced Client Interface Configuration")%></h3> 53 <form action="" method="POST"> 54 <input type="hidden" name="nonce" value="<%=pageNonce%>" > 55 <p> 53 56 <b><%=intl._("External I2CP (I2P Client Protocol) Interface Configuration")%></b><br> 54 57 <input type="radio" class="optbox" name="mode" value="1" <%=clientshelper.i2cpModeChecked(1) %> > … … 90 93 <input type="submit" name="foo" value="<%=intl._("Cancel")%>" /> 91 94 <input type="submit" name="action" value="<%=intl._("Save Interface Configuration")%>" /> 92 </div> 95 </div></form> 93 96 94 97 <h3><a name="webapp"></a><%=intl._("WebApp Configuration")%></h3><p> … … 96 99 </p><p> 97 100 <%=intl._("A web app may also be disabled by removing the .war file from the webapps directory; however the .war file and web app will reappear when you update your router to a newer version, so disabling the web app here is the preferred method.")%> 98 </p><div class="wideload"><p> 101 </p><div class="wideload"> 102 <form action="" method="POST"> 103 <input type="hidden" name="nonce" value="<%=pageNonce%>" > 99 104 <jsp:getProperty name="clientshelper" property="form2" /> 100 </p><p> 101 <i><%=intl._("All changes require restart to take effect.")%></i> 105 <p><i><%=intl._("All changes require restart to take effect.")%></i> 102 106 </p><hr><div class="formaction"> 103 107 <input type="submit" name="action" value="<%=intl._("Save WebApp Configuration")%>" /> 104 </div></div> 108 </div></form></div> 109 105 110 <% if (clientshelper.showPlugins()) { %> 106 111 <h3><a name="pconfig"></a><%=intl._("Plugin Configuration")%></h3><p> 107 112 <%=intl._("The plugins listed below are started by the webConsole client.")%> 108 </p><div class="wideload"><p> 113 </p><div class="wideload"> 114 <form action="" method="POST"> 115 <input type="hidden" name="nonce" value="<%=pageNonce%>" > 109 116 <jsp:getProperty name="clientshelper" property="form3" /> 110 </p><hr><div class="formaction">117 <hr><div class="formaction"> 111 118 <input type="submit" name="action" value="<%=intl._("Save Plugin Configuration")%>" /> 112 </div></div><h3><a name="plugin"></a><%=intl._("Plugin Installation")%></h3><p> 119 </div></form></div> 120 121 <h3><a name="plugin"></a><%=intl._("Plugin Installation")%></h3><p> 113 122 <%=intl._("To install a plugin, enter the download URL:")%> 114 </p><div class="wideload"><p> 123 </p><div class="wideload"> 124 <form action="" method="POST"> 125 <input type="hidden" name="nonce" value="<%=pageNonce%>" > 126 <p> 115 127 <input type="text" size="60" name="pluginURL" > 116 128 </p><hr><div class="formaction"> 117 129 <input type="submit" name="action" value="<%=intl._("Install Plugin")%>" /> 118 </div></ div>130 </div></form></div> 119 131 <% } %> 120 </ form></div></div></body></html>132 </div></div></body></html>
Note: See TracChangeset
for help on using the changeset viewer.