2004-07-31 02:34:24 +00:00
|
|
|
<%@page contentType="text/html" %>
|
2012-01-10 13:21:35 +00:00
|
|
|
<%@page trimDirectiveWhitespaces="true"%>
|
2009-10-24 06:10:40 +00:00
|
|
|
<%@page pageEncoding="UTF-8"%>
|
2004-07-24 02:06:07 +00:00
|
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
|
|
|
|
|
|
<html><head>
|
2009-11-21 13:33:57 +00:00
|
|
|
<%@include file="css.jsi" %>
|
2011-11-30 23:23:41 +00:00
|
|
|
<%=intl.title("configure bandwidth")%>
|
2012-06-05 13:37:10 +00:00
|
|
|
<script src="/js/ajax.js" type="text/javascript"></script>
|
2012-07-17 00:47:08 +00:00
|
|
|
<%@include file="summaryajax.jsi" %>
|
2012-06-05 13:37:10 +00:00
|
|
|
</head><body onload="initAjax()">
|
2004-07-24 02:06:07 +00:00
|
|
|
|
2009-11-21 13:33:57 +00:00
|
|
|
<%@include file="summary.jsi" %>
|
2004-07-24 02:06:07 +00:00
|
|
|
|
|
|
|
<jsp:useBean class="net.i2p.router.web.ConfigNetHelper" id="nethelper" scope="request" />
|
2011-12-25 22:37:30 +00:00
|
|
|
<jsp:setProperty name="nethelper" property="contextId" value="<%=(String)session.getAttribute(\"i2p.contextId\")%>" />
|
2011-11-30 23:23:41 +00:00
|
|
|
<h1><%=intl._("I2P Bandwidth Configuration")%></h1>
|
2004-07-24 02:06:07 +00:00
|
|
|
<div class="main" id="main">
|
2009-11-21 13:33:57 +00:00
|
|
|
<%@include file="confignav.jsi" %>
|
2009-08-15 16:08:33 +00:00
|
|
|
|
2004-07-31 02:34:24 +00:00
|
|
|
<jsp:useBean class="net.i2p.router.web.ConfigNetHandler" id="formhandler" scope="request" />
|
2010-11-21 20:46:48 +00:00
|
|
|
<% formhandler.storeMethod(request.getMethod()); %>
|
2004-07-31 02:34:24 +00:00
|
|
|
<jsp:setProperty name="formhandler" property="*" />
|
2011-12-25 22:37:30 +00:00
|
|
|
<jsp:setProperty name="formhandler" property="contextId" value="<%=(String)session.getAttribute(\"i2p.contextId\")%>" />
|
2009-05-26 20:04:20 +00:00
|
|
|
<jsp:getProperty name="formhandler" property="allMessages" />
|
2009-07-17 17:33:35 +00:00
|
|
|
<div class="configure">
|
2010-11-19 15:23:25 +00:00
|
|
|
<form action="" method="POST">
|
2011-03-09 17:16:28 +00:00
|
|
|
<input type="hidden" name="nonce" value="<jsp:getProperty name="formhandler" property="newNonce" />" >
|
2010-04-05 13:34:45 +00:00
|
|
|
<input type="hidden" name="action" value="blah" >
|
2011-11-30 23:23:41 +00:00
|
|
|
<input type="hidden" name="ratesOnly" value="1" >
|
2009-10-24 06:10:40 +00:00
|
|
|
<h3><%=intl._("Bandwidth limiter")%></h3><p>
|
2011-11-30 23:23:41 +00:00
|
|
|
<img src="/themes/console/images/itoopie_xsm.png" alt="">
|
2009-10-24 06:10:40 +00:00
|
|
|
<b><%=intl._("I2P will work best if you configure your rates to match the speed of your internet connection.")%></b>
|
2009-10-03 14:24:28 +00:00
|
|
|
</p>
|
2012-01-16 02:39:14 +00:00
|
|
|
<div class="wideload"><table><tr><td><input style="text-align: right; width: 5em;" name="inboundrate" type="text" size="5" maxlength="5" value="<jsp:getProperty name="nethelper" property="inboundRate" />" >
|
2009-10-24 06:10:40 +00:00
|
|
|
<%=intl._("KBps In")%>
|
2009-08-15 16:08:33 +00:00
|
|
|
</td><td>(<jsp:getProperty name="nethelper" property="inboundRateBits" />)</td>
|
2009-11-29 18:47:34 +00:00
|
|
|
<% /********
|
2009-05-01 15:26:49 +00:00
|
|
|
<!-- let's keep this simple...
|
2009-08-15 16:08:33 +00:00
|
|
|
bursting up to
|
2009-05-01 15:26:49 +00:00
|
|
|
<input name="inboundburstrate" type="text" size="5" value="<jsp:getProperty name="nethelper" property="inboundBurstRate" />" /> KBps for
|
2009-08-15 16:08:33 +00:00
|
|
|
<jsp:getProperty name="nethelper" property="inboundBurstFactorBox" /><br>
|
2009-05-01 15:26:49 +00:00
|
|
|
-->
|
2009-11-29 18:47:34 +00:00
|
|
|
*********/ %>
|
2009-08-15 16:08:33 +00:00
|
|
|
</tr><tr>
|
2010-04-05 13:34:45 +00:00
|
|
|
<td><input style="text-align: right; width: 5em;" name="outboundrate" type="text" size="5" maxlength="5" value="<jsp:getProperty name="nethelper" property="outboundRate" />" >
|
2009-10-24 06:10:40 +00:00
|
|
|
<%=intl._("KBps Out")%>
|
2009-08-15 16:08:33 +00:00
|
|
|
</td><td>(<jsp:getProperty name="nethelper" property="outboundRateBits" />)</td>
|
2009-11-29 18:47:34 +00:00
|
|
|
<% /********
|
2009-05-01 15:26:49 +00:00
|
|
|
<!-- let's keep this simple...
|
2009-08-15 16:08:33 +00:00
|
|
|
bursting up to
|
2005-09-17 23:01:44 +00:00
|
|
|
<input name="outboundburstrate" type="text" size="2" value="<jsp:getProperty name="nethelper" property="outboundBurstRate" />" /> KBps for
|
2009-08-15 16:08:33 +00:00
|
|
|
<jsp:getProperty name="nethelper" property="outboundBurstFactorBox" /><br>
|
|
|
|
<i>KBps = kilobytes per second = 1024 bytes per second = 8192 bits per second.<br>
|
|
|
|
A negative rate sets the default.</i><br>
|
2009-05-01 15:26:49 +00:00
|
|
|
-->
|
2009-11-29 18:47:34 +00:00
|
|
|
*********/ %>
|
2009-08-15 16:08:33 +00:00
|
|
|
</tr><tr>
|
2009-10-24 06:10:40 +00:00
|
|
|
<td><jsp:getProperty name="nethelper" property="sharePercentageBox" /> <%=intl._("Share")%></td>
|
2009-08-15 16:08:33 +00:00
|
|
|
<td>(<jsp:getProperty name="nethelper" property="shareRateBits" />)
|
2012-01-16 02:39:14 +00:00
|
|
|
</td></tr></table></div>
|
|
|
|
<p><% int share = nethelper.getShareBandwidth();
|
2007-08-06 03:35:42 +00:00
|
|
|
if (share < 12) {
|
2011-11-30 23:23:41 +00:00
|
|
|
out.print("<b>");
|
2009-10-26 21:48:46 +00:00
|
|
|
out.print(intl._("NOTE"));
|
|
|
|
out.print("</b>: ");
|
|
|
|
out.print(intl._("You have configured I2P to share only {0} KBps.", share));
|
|
|
|
out.print("\n");
|
|
|
|
|
2009-10-24 06:10:40 +00:00
|
|
|
out.print(intl._("I2P requires at least 12KBps to enable sharing. "));
|
|
|
|
out.print(intl._("Please enable sharing (participating in tunnels) by configuring more bandwidth. "));
|
2011-11-30 23:23:41 +00:00
|
|
|
out.print(intl._("It improves your anonymity by creating cover traffic, and helps the network."));
|
2007-07-04 22:58:48 +00:00
|
|
|
} else {
|
2009-10-26 21:48:46 +00:00
|
|
|
out.print(intl._("You have configured I2P to share {0} KBps.", share));
|
|
|
|
out.print("\n");
|
|
|
|
|
2011-11-30 23:23:41 +00:00
|
|
|
out.print(intl._("The higher the share bandwidth the more you improve your anonymity and help the network."));
|
2007-07-04 22:58:48 +00:00
|
|
|
}
|
2012-01-16 02:39:14 +00:00
|
|
|
%></p>
|
2011-11-30 23:23:41 +00:00
|
|
|
<p><a href="confignet"><%=intl._("Advanced network configuration page")%></a></p><hr>
|
2009-10-09 00:45:33 +00:00
|
|
|
<div class="formaction">
|
2011-11-30 23:23:41 +00:00
|
|
|
<input type="reset" class="cancel" value="<%=intl._("Cancel")%>" >
|
|
|
|
<input type="submit" class="accept" name="save" value="<%=intl._("Save changes")%>" >
|
2010-04-05 13:34:45 +00:00
|
|
|
</div>
|
2012-01-16 02:39:14 +00:00
|
|
|
</form>
|
2011-11-30 23:23:41 +00:00
|
|
|
</div></div></body></html>
|