Author: toad
Date: 2006-08-10 18:00:39 +0000 (Thu, 10 Aug 2006)
New Revision: 10030
Modified:
trunk/freenet/src/freenet/clients/http/WelcomeToadlet.java
Log:
comments
Modified: trunk/freenet/src/freenet/clients/http/WelcomeToadlet.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/WelcomeToadlet.java 2006-08-10
17:58:06 UTC (rev 10029)
+++ trunk/freenet/src/freenet/clients/http/WelcomeToadlet.java 2006-08-10
18:00:39 UTC (rev 10030)
@@ -46,12 +46,14 @@
if(request==null) return;
if (request.getParam("shutdownconfirm").length() > 0) {
+ // Do the actual shutdown
MultiValueTable headers = new MultiValueTable();
headers.put("Location",
".?shutdownconfirm="+node.formPassword.hashCode());
ctx.sendReplyHeaders(302, "Found", headers, null, 0);
this.node.exit();
return;
}else if(request.getParam("restartconfirm").length() > 0){
+ // Do the actual restart
MultiValueTable headers = new MultiValueTable();
headers.put("Location",
".?restartconfirm="+node.formPassword.hashCode());
ctx.sendReplyHeaders(302, "Found", headers, null, 0);
@@ -253,6 +255,7 @@
this.writeReply(ctx, 200, "text/html", "OK",
pageNode.generate());
return;
}else if (request.getParam("shutdownconfirm").length() > 0) {
+ // Tell the user that the node is shutting down
if(request.getIntParam("shutdownconfirm") !=
node.formPassword.hashCode()){
MultiValueTable headers = new MultiValueTable();
headers.put("Location", "/");
@@ -267,6 +270,7 @@
writeReply(ctx, 200, "text/html; charset=utf-8", "OK",
pageNode.generate());
return;
}else if(request.getParam("restartconfirm").length() > 0){
+ // Tell the user that the node is restarting
if(request.getIntParam("restartconfirm") !=
node.formPassword.hashCode()){
MultiValueTable headers = new MultiValueTable();
headers.put("Location", "/");