I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit d6820634 authored by z3d's avatar z3d
Browse files

Further enhancements to the configuration pages.

parent 95dd7446
No related branches found
No related tags found
No related merge requests found
Showing
with 71 additions and 58 deletions
...@@ -62,10 +62,9 @@ ...@@ -62,10 +62,9 @@
out.print("The higher the share bandwidth the more you improve your anonymity and help the network.<hr />"); out.print("The higher the share bandwidth the more you improve your anonymity and help the network.<hr />");
} }
%> %>
</p><p> </p><div class="formaction">
<input type="submit" name="save" value="Save changes" /> <input type="reset" value="Cancel" /><br /> <input type="submit" name="save" value="Save changes" /> <input type="reset" value="Cancel" /></div>
</p> <!--
<!--
<b>Enable load testing: </b> <b>Enable load testing: </b>
<input type="checkbox" class="optbox" name="enableloadtesting" value="true" <jsp:getProperty name="nethelper" property="enableLoadTesting" /> /> <input type="checkbox" class="optbox" name="enableloadtesting" value="true" <jsp:getProperty name="nethelper" property="enableLoadTesting" /> />
<p>If enabled, your router will periodically anonymously probe some of your peers <p>If enabled, your router will periodically anonymously probe some of your peers
...@@ -148,9 +147,10 @@ ...@@ -148,9 +147,10 @@
Specify Port: Specify Port:
<input name ="ntcpport" type="text" size="5" maxlength="5" value="<jsp:getProperty name="nethelper" property="ntcpport" />" /><br /> <input name ="ntcpport" type="text" size="5" maxlength="5" value="<jsp:getProperty name="nethelper" property="ntcpport" />" /><br />
</p><p><b>Note: Changing these settings will restart your router.</b> </p><p><b>Note: Changing these settings will restart your router.</b>
</p><hr> </p><hr><div class="formaction">
<input type="submit" name="save" value="Save changes" /> <input type="reset" value="Cancel" /> <input type="submit" name="save" value="Save changes" /> <input type="reset" value="Cancel" />
</div> </div>
</div>
<h3><a name="chelp">Configuration Help:</a></h3> <h3><a name="chelp">Configuration Help:</a></h3>
<div align="justify"> <div align="justify">
<p> <p>
......
...@@ -30,13 +30,11 @@ ...@@ -30,13 +30,11 @@
<input type="hidden" name="action" value="blah" /> <input type="hidden" name="action" value="blah" />
<h3>Advanced I2P Configuration</h3> <h3>Advanced I2P Configuration</h3>
<textarea rows="32" cols="60" name="config" wrap="off"><jsp:getProperty name="advancedhelper" property="settings" /></textarea><br /><hr> <textarea rows="32" cols="60" name="config" wrap="off"><jsp:getProperty name="advancedhelper" property="settings" /></textarea><br /><hr>
<p align="right"> <div class="formaction">
<input type="submit" name="shouldsave" value="Apply" /> <input type="submit" name="shouldsave" value="Apply" />
<input type="reset" value="Cancel" /> <input type="reset" value="Cancel" /><br />
</p> <b>NOTE:</b> Some changes may require a restart to take effect.
<p> </div>
NOTE: Some changes may require a restart to take effect.
</p>
</form> </form>
</div> </div>
</div> </div>
......
...@@ -39,10 +39,9 @@ button span.hide{ ...@@ -39,10 +39,9 @@ button span.hide{
<jsp:getProperty name="clientshelper" property="form1" /> <jsp:getProperty name="clientshelper" property="form1" />
</p><p> </p><p>
<i>All changes require restart to take effect. To change other client options, edit the clients.config file.</i> <i>All changes require restart to take effect. To change other client options, edit the clients.config file.</i>
</p> <hr /><p> </p> <hr /><div class="formaction">
<input type="submit" name="action" value="Save Client Configuration" /> <input type="submit" name="action" value="Save Client Configuration" />
</p> </div>
<hr />
<h3>WebApp Configuration</h3> <h3>WebApp Configuration</h3>
<p> <p>
The Java web applications listed below are started by the webConsole client and run in the same JVM as the router. The Java web applications listed below are started by the webConsole client and run in the same JVM as the router.
...@@ -56,11 +55,13 @@ button span.hide{ ...@@ -56,11 +55,13 @@ button span.hide{
so disabling the web app here is the preferred method. so disabling the web app here is the preferred method.
</p><p> </p><p>
<jsp:getProperty name="clientshelper" property="form2" /> <jsp:getProperty name="clientshelper" property="form2" />
</p><p><hr> </p>
<input type="submit" name="action" value="Save WebApp Configuration" /> <p>
</p><hr><p>
<i>All changes require restart to take effect. To change other webapp options, edit the webapps.config file.</i> <i>All changes require restart to take effect. To change other webapp options, edit the webapps.config file.</i>
</p> </p>
<hr><div class="formaction">
<input type="submit" name="action" value="Save WebApp Configuration" />
</div>
</form> </form>
</div> </div>
</div> </div>
......
...@@ -41,14 +41,15 @@ ...@@ -41,14 +41,15 @@
<input type="text" size="55" name="peer" value="<%=peer%>" /> <input type="text" size="55" name="peer" value="<%=peer%>" />
<h3>Manually Shitlist / Unshitlist a Router</h3> <h3>Manually Shitlist / Unshitlist a Router</h3>
Shitlisting will prevent the participation of this peer in tunnels you create. Shitlisting will prevent the participation of this peer in tunnels you create.
<p> <hr />
<div class="formaction">
<input type="submit" name="action" value="Shitlist peer until restart" /> <input type="submit" name="action" value="Shitlist peer until restart" />
<input type="submit" name="action" value="Unshitlist peer" /> <input type="submit" name="action" value="Unshitlist peer" />
<% if (! "".equals(peer)) { %> <% if (! "".equals(peer)) { %>
<font color="blue">&lt;---- click to verify action</font> <!-- <font color="blue">&lt;---- click to verify action</font> -->
<% } %> <% } %>
</p> </div>
<hr />
<h3>Adjust Profile Bonuses</h3> <h3>Adjust Profile Bonuses</h3>
Bonuses may be positive or negative, and affect the peer's inclusion in Fast Bonuses may be positive or negative, and affect the peer's inclusion in Fast
and High Capacity tiers. Fast peers are used for client tunnels, and High and High Capacity tiers. Fast peers are used for client tunnels, and High
...@@ -59,7 +60,8 @@ ...@@ -59,7 +60,8 @@
if (! "".equals(peer)) { if (! "".equals(peer)) {
// get existing bonus values? // get existing bonus values?
} }
%> %>
<hr />
Speed: Speed:
<input type="text" size="8" name="speed" value="<%=speed%>" /> <input type="text" size="8" name="speed" value="<%=speed%>" />
Capacity: Capacity:
...@@ -68,7 +70,6 @@ ...@@ -68,7 +70,6 @@
</p> </p>
</form> </form>
<hr />
<a name="shitlist"> </a> <a name="shitlist"> </a>
<jsp:useBean class="net.i2p.router.web.ProfilesHelper" id="profilesHelper" scope="request" /> <jsp:useBean class="net.i2p.router.web.ProfilesHelper" id="profilesHelper" scope="request" />
<jsp:setProperty name="profilesHelper" property="contextId" value="<%=(String)session.getAttribute("i2p.contextId")%>" /> <jsp:setProperty name="profilesHelper" property="contextId" value="<%=(String)session.getAttribute("i2p.contextId")%>" />
......
...@@ -26,11 +26,11 @@ ...@@ -26,11 +26,11 @@
<p>Graceful shutdown lets the router satisfy the agreements it has already made <p>Graceful shutdown lets the router satisfy the agreements it has already made
before shutting down, but may take a few minutes. If you need to kill the before shutting down, but may take a few minutes. If you need to kill the
router immediately, that option is available as well.</p> router immediately, that option is available as well.</p>
<hr><div class="formaction">
<input type="submit" name="action" value="Shutdown gracefully" /> <input type="submit" name="action" value="Shutdown gracefully" />
<input type="submit" name="action" value="Shutdown immediately" /> <input type="submit" name="action" value="Shutdown immediately" />
<input type="submit" name="action" value="Cancel graceful shutdown" /> <input type="submit" name="action" value="Cancel graceful shutdown" />
<hr> </div>
<% if (System.getProperty("wrapper.version") != null) { %> <% if (System.getProperty("wrapper.version") != null) { %>
<p>If you want the router to restart itself after shutting down, you can choose one of <p>If you want the router to restart itself after shutting down, you can choose one of
the following. This is useful in some situations - for example, if you changed the following. This is useful in some situations - for example, if you changed
...@@ -38,30 +38,32 @@ ...@@ -38,30 +38,32 @@
or the interface it listens on. A graceful restart will take a few minutes (but your peers or the interface it listens on. A graceful restart will take a few minutes (but your peers
will appreciate your patience), while a hard restart does so immediately. After tearing down will appreciate your patience), while a hard restart does so immediately. After tearing down
the router, it will wait 1 minute before starting back up again.</p> the router, it will wait 1 minute before starting back up again.</p>
<hr><div class="formaction">
<input type="submit" name="action" value="Graceful restart" /> <input type="submit" name="action" value="Graceful restart" />
<input type="submit" name="action" value="Hard restart" /> <input type="submit" name="action" value="Hard restart" />
<% } %> <% } %></div>
<hr>
<% if ( (System.getProperty("os.name") != null) && (System.getProperty("os.name").startsWith("Win")) ) { %> <% if ( (System.getProperty("os.name") != null) && (System.getProperty("os.name").startsWith("Win")) ) { %>
<h3>Systray integration</h3> <h3>Systray integration</h3>
<p>On the windows platform, there is a small application to sit in the system <p>On the windows platform, there is a small application to sit in the system
tray, allowing you to view the router's status (later on, I2P client applications tray, allowing you to view the router's status (later on, I2P client applications
will be able to integrate their own functionality into the system tray as well). will be able to integrate their own functionality into the system tray as well).
If you are on windows, you can either enable or disable that icon here.</p> If you are on windows, you can either enable or disable that icon here.</p>
<hr><div class="formaction">
<input type="submit" name="action" value="Show systray icon" /> <input type="submit" name="action" value="Show systray icon" />
<input type="submit" name="action" value="Hide systray icon" /> <input type="submit" name="action" value="Hide systray icon" />
<hr> </div>
<h3>Run on startup</h3> <h3>Run on startup</h3>
<p>You can control whether I2P is run on startup or not by selecting one of the <p>You can control whether I2P is run on startup or not by selecting one of the
following options - I2P will install (or remove) a service accordingly. You can following options - I2P will install (or remove) a service accordingly. You can
also run the <code>install_i2p_service_winnt.bat</code> (or also run the <code>install_i2p_service_winnt.bat</code> (or
<code>uninstall_i2p_service_winnt.bat</code>) from the command line, if you prefer.</p> <code>uninstall_i2p_service_winnt.bat</code>) from the command line, if you prefer.</p>
<hr><div class="formaction">
<input type="submit" name="action" value="Run I2P on startup" /> <input type="submit" name="action" value="Run I2P on startup" />
<input type="submit" name="action" value="Don't run I2P on startup" /><br /> <input type="submit" name="action" value="Don't run I2P on startup" /></div>
<p><b>Note:</b> If you are running I2P as service right now, removing it will shut <p><b>Note:</b> If you are running I2P as service right now, removing it will shut
down your router immediately. You may want to consider shutting down gracefully, as down your router immediately. You may want to consider shutting down gracefully, as
above, then running uninstall_i2p_service_winnt.bat.</p><hr> above, then running uninstall_i2p_service_winnt.bat.</p>
<% } %> <% } %>
<% if (System.getProperty("wrapper.version") != null) { %> <% if (System.getProperty("wrapper.version") != null) { %>
...@@ -69,17 +71,19 @@ ...@@ -69,17 +71,19 @@
<p>At times, it may be helpful to debug I2P by getting a thread dump. To do so, <p>At times, it may be helpful to debug I2P by getting a thread dump. To do so,
please select the following option and review the thread dumped to please select the following option and review the thread dumped to
<a href="logs.jsp#servicelogs">wrapper.log</a>.</p> <a href="logs.jsp#servicelogs">wrapper.log</a>.</p>
<hr><div class="formaction">
<input type="submit" name="action" value="Dump threads" /> <input type="submit" name="action" value="Dump threads" />
<% } %><hr> <% } %></div>
<h3>Launch browser on router startup?</h3> <h3>Launch browser on router startup?</h3>
<p>I2P's main configuration interface is this web console, so for your convenience <p>I2P's main configuration interface is this web console, so for your convenience
I2P can launch a web browser pointing at I2P can launch a web browser pointing at
<a href="http://127.0.0.1:7657/index.jsp">http://127.0.0.1:7657/index.jsp</a> whenever <a href="http://127.0.0.1:7657/index.jsp">http://127.0.0.1:7657/index.jsp</a> whenever
the router starts up.</p> the router starts up.</p>
<hr><div class="formaction">
<input type="submit" name="action" value="View console on startup" /> <input type="submit" name="action" value="View console on startup" />
<input type="submit" name="action" value="Do not view console on startup" /> <input type="submit" name="action" value="Do not view console on startup" />
</form><hr> </form></div>
</div> </div>
</div> </div>
</body> </body>
......
...@@ -101,9 +101,7 @@ function toggleAll(category) ...@@ -101,9 +101,7 @@ function toggleAll(category)
<tr><td align="center"><input type="checkbox" class="optbox" name="explicitFilter" /></td> <tr><td align="center"><input type="checkbox" class="optbox" name="explicitFilter" /></td>
<td colspan="2">Advanced filter: <td colspan="2">Advanced filter:
<input type="text" name="explicitFilterValue" value="<%=statshelper.getExplicitFilter()%>" size="40" /></td></tr> <input type="text" name="explicitFilterValue" value="<%=statshelper.getExplicitFilter()%>" size="40" /></td></tr>
<tr><td colspan="3"></td></tr> <tr class="tablefooter"><td colspan="3" align="right"><input type="submit" name="shouldsave" value="Save changes" /><input type="reset" value="Cancel" /></td></tr></form>
<tr class="tablefooter"><td><input type="submit" name="shouldsave" value="Save changes" /> </td>
<td><input type="reset" value="Cancel" /></td><td></td></tr></form>
</table> </table>
</div> </div>
</div> </div>
......
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
<i>Note - Exploratory tunnel setting changes are stored in the router.config file.</i></br> <i>Note - Exploratory tunnel setting changes are stored in the router.config file.</i></br>
<i>Client tunnel changes are temporary and are not saved.</i><br> <i>Client tunnel changes are temporary and are not saved.</i><br>
<i>To make permanent client tunnel changes see the </i><a href="i2ptunnel/index.jsp">i2ptunnel page</a>.<br> <i>To make permanent client tunnel changes see the </i><a href="i2ptunnel/index.jsp">i2ptunnel page</a>.<br>
<hr /> <input type="submit" name="shouldsave" value="Save changes" /> <input type="reset" value="Cancel" /> <hr /><div class="formaction><input type="submit" name="shouldsave" value="Save changes" /> <input type="reset" value="Cancel" /></div>
</form> </form>
</div> </div>
</div> </div>
......
...@@ -34,9 +34,9 @@ ...@@ -34,9 +34,9 @@
<input type="hidden" name="nonce" value="<%=System.getProperty("net.i2p.router.web.ConfigUIHandler.nonce")%>" /> <input type="hidden" name="nonce" value="<%=System.getProperty("net.i2p.router.web.ConfigUIHandler.nonce")%>" />
<input type="hidden" name="action" value="blah" /> <input type="hidden" name="action" value="blah" />
<jsp:getProperty name="uihelper" property="settings" /> <jsp:getProperty name="uihelper" property="settings" />
<hr> <hr><div class="formaction>
<input type="submit" name="shouldsave" value="Apply" /> <input type="reset" value="Cancel" /> <input type="submit" name="shouldsave" value="Apply" /> <input type="reset" value="Cancel" />
</form> </form></div>
<% } else { %> <% } else { %>
Theme selection disabled for Internet Explorer, sorry.<hr>If you're not using IE, it's likely that Theme selection disabled for Internet Explorer, sorry.<hr>If you're not using IE, it's likely that
your browser is pretending to be IE; please configure your browser (or proxy) to use a different User Agent string if you'd like to access the console themes. your browser is pretending to be IE; please configure your browser (or proxy) to use a different User Agent string if you'd like to access the console themes.
......
...@@ -32,44 +32,40 @@ ...@@ -32,44 +32,40 @@
<tr> <tr>
<td colspan="2"></tr> <td colspan="2"></tr>
<tr> <tr>
<td><b>News:</b></td> <td class= "mediumtags" align="right"><b>News:</b></td>
<td> <% if ("true".equals(System.getProperty("net.i2p.router.web.UpdateHandler.updateInProgress", "false"))) { %> <i>Update In Progress</i><br /> <% } else { %> <input type="submit" name="action" value="Check for update now" /> <td> <% if ("true".equals(System.getProperty("net.i2p.router.web.UpdateHandler.updateInProgress", "false"))) { %> <i>Update In Progress</i><br /> <% } else { %> <input type="submit" name="action" value="Check for update now" />
<% } %></tr> <% } %></tr>
<tr> <tr>
<td colspan="2"><hr /></td> <td colspan="2"><hr /></td>
</tr> </tr>
<tr> <tr>
<td><b>News URL:</b></td> <td class= "mediumtags" align="right"><b>News URL:</b></td>
<td><input type="text" size="60" name="newsURL" value="<jsp:getProperty name="updatehelper" property="newsURL" />"></td> <td><input type="text" size="60" name="newsURL" value="<jsp:getProperty name="updatehelper" property="newsURL" />"></td>
</tr> </tr>
<tr> <tr>
<td><b>Refresh frequency:</b> <td class= "mediumtags" align="right"><b>Refresh frequency:</b>
<td><jsp:getProperty name="updatehelper" property="refreshFrequencySelectBox" /> <td><jsp:getProperty name="updatehelper" property="refreshFrequencySelectBox" />
<tr> <tr>
<td><b>Update policy:</b> <td class= "mediumtags" align="right"><b>Update policy:</b>
<td><jsp:getProperty name="updatehelper" property="updatePolicySelectBox" /> <td><jsp:getProperty name="updatehelper" property="updatePolicySelectBox" />
<tr> <tr>
<td><b>Update through the eepProxy?</b> <td class= "mediumtags" align="right"><b>Update through the eepProxy?</b>
<td><jsp:getProperty name="updatehelper" property="updateThroughProxy" /> <td><jsp:getProperty name="updatehelper" property="updateThroughProxy" />
<tr> <tr>
<td><b>eepProxy host:</b> <td class= "mediumtags" align="right"><b>eepProxy host:</b>
<td><input type="text" size="10" name="proxyHost" value="<jsp:getProperty name="updatehelper" property="proxyHost" />" /> <td><input type="text" size="10" name="proxyHost" value="<jsp:getProperty name="updatehelper" property="proxyHost" />" />
<tr> <tr>
<td><b>eepProxy port:</b> <td class= "mediumtags" align="right"><b>eepProxy port:</b>
<td><input type="text" size="4" name="proxyPort" value="<jsp:getProperty name="updatehelper" property="proxyPort" />" /> <td><input type="text" size="4" name="proxyPort" value="<jsp:getProperty name="updatehelper" property="proxyPort" />" />
<tr> <tr>
<td><b>Update URLs:</b> <td class= "mediumtags" align="right"><b>Update URLs:</b>
<td><textarea name="updateURL" wrap="off"><jsp:getProperty name="updatehelper" property="updateURL" /></textarea> <td><textarea name="updateURL" wrap="off"><jsp:getProperty name="updatehelper" property="updateURL" /></textarea>
<tr> <tr>
<td><b>Trusted keys:</b> <td class= "mediumtags" align="right"><b>Trusted keys:</b>
<td><textarea name="trustedKeys" wrap="off"><jsp:getProperty name="updatehelper" property="trustedKeys" /></textarea> <td><textarea name="trustedKeys" wrap="off"><jsp:getProperty name="updatehelper" property="trustedKeys" /></textarea>
<tr>
<tr>
<td colspan="2"><hr />
<tr>
<tr> <tr>
<td> <td>
<td><div align="right"> <td><div class="formaction">
<input type="submit" name="action" value="Save" /> <input type="submit" name="action" value="Save" />
<input type="reset" value="Cancel" /> <input type="reset" value="Cancel" />
</div> </div>
......
...@@ -536,6 +536,11 @@ input[type=text]:active, input[type=text]:hover { ...@@ -536,6 +536,11 @@ input[type=text]:active, input[type=text]:hover {
background: #001; background: #001;
} }
fieldset {
overflow: hidden;
position: relative;
}
select { select {
background: #002; background: #002;
color: #eef; color: #eef;
...@@ -636,6 +641,8 @@ form {} ...@@ -636,6 +641,8 @@ form {}
border: 0; border: 0;
margin: 5px 5px 5px 10px; margin: 5px 5px 5px 10px;
padding: 2px; padding: 2px;
overflow: hidden;
position: relative;
} }
.optbox:hover { .optbox:hover {
...@@ -662,4 +669,8 @@ form {} ...@@ -662,4 +669,8 @@ form {}
border-bottom: 1px solid #99f !important; border-bottom: 1px solid #99f !important;
font-size: 7pt; font-size: 7pt;
line-height: 110%; line-height: 110%;
}
.formaction {
text-align: right;
} }
\ No newline at end of file
...@@ -716,4 +716,8 @@ form {} ...@@ -716,4 +716,8 @@ form {}
padding: 8px 2px !important; padding: 8px 2px !important;
font-size: 7pt; font-size: 7pt;
line-height: 110%; line-height: 110%;
}
.formaction {
text-align: right;
} }
\ No newline at end of file
...@@ -767,10 +767,10 @@ public class Blocklist { ...@@ -767,10 +767,10 @@ public class Blocklist {
out.write("</table>"); out.write("</table>");
} }
if (_blocklistSize > 0) { if (_blocklistSize > 0) {
out.write("<table><tr><td align=center colspan=2><b>IPs from Blocklist File</b></td></tr><tr><td align=center><b>From</b></td><td align=center><b>To</b></td></tr>"); out.write("<table><tr><th align=center colspan=2><b>IPs from Blocklist File</b></th></tr><tr><td align=center width=50%><b>From:</b></td><td align=center width=50%><b>To:</b></td></tr>");
for (int i = 0; i < _blocklistSize; i++) { for (int i = 0; i < _blocklistSize; i++) {
int from = getFrom(_blocklist[i]); int from = getFrom(_blocklist[i]);
out.write("<tr><td align=right>"); out.write(toStr(from)); out.write("</td><td align=right>"); out.write("<tr><td align=center width=50%>"); out.write(toStr(from)); out.write("</td><td align=center width=50%>");
int to = getTo(_blocklist[i]); int to = getTo(_blocklist[i]);
if (to != from) { if (to != from) {
out.write(toStr(to)); out.write("</td></tr>\n"); out.write(toStr(to)); out.write("</td></tr>\n");
...@@ -779,7 +779,7 @@ public class Blocklist { ...@@ -779,7 +779,7 @@ public class Blocklist {
} }
out.write("</table>"); out.write("</table>");
} else { } else {
out.write("<br>No blocklist file entries"); out.write("<br><i>No blocklist file entries.</i>");
} }
out.flush(); out.flush();
} }
......
...@@ -18,9 +18,9 @@ public class RouterVersion { ...@@ -18,9 +18,9 @@ public class RouterVersion {
/** deprecated */ /** deprecated */
public final static String ID = "Monotone"; public final static String ID = "Monotone";
public final static String VERSION = CoreVersion.VERSION; public final static String VERSION = CoreVersion.VERSION;
public final static long BUILD = 02; public final static long BUILD = 03;
/** for example "-test" */ /** for example "-test" */
public final static String EXTRA = "-zed"; public final static String EXTRA = "";
public final static String FULL_VERSION = VERSION + "-" + BUILD + EXTRA; public final static String FULL_VERSION = VERSION + "-" + BUILD + EXTRA;
public static void main(String args[]) { public static void main(String args[]) {
System.out.println("I2P Router version: " + FULL_VERSION); System.out.println("I2P Router version: " + FULL_VERSION);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment