X-Git-Url: https://git.hcoop.net/bpt/portal.git/blobdiff_plain/3d2ed222004f3cf2066af19faa55151ab48951cb..62b0bade1cb05b41e62f68a2f74f8406193c64f3:/sec.mlt
diff --git a/sec.mlt b/sec.mlt
index 8885eaa..1c5a008 100644
--- a/sec.mlt
+++ b/sec.mlt
@@ -72,14 +72,26 @@ elseif $"cmd" = "ftp2" then
elseif $"cmd" = "rule" then
showNormal := false;
val rule = $"rule";
- %>Are you sure you want to request the firewall rule <% Web.html uname %> <% Web.html rule %> on <% Web.html nodeName %>?
+
+ if Sec.validRule rule then
+ %>Are you sure you want to request the firewall rule <% Web.html uname %> <% Web.html rule %> on <% Web.html nodeName %>?
">Yes, place the request!<%
+ else
+ %>"<% Web.html rule %>" is not a valid firewall rule! Please reread the instructions, and remember to leave off the initial username portion.<%
+ end
+
elseif $"cmd" = "rule2" then
- val id = Sec.Req.add {usr = you, node = nodeNum, data = String.concat ["Add firewall rule \"", uname, " ", $"rule", "\""], msg = $"msg"};
- if not (Sec.Req.notifyNew id) then
- %>
You need to request socket permissions before you are able to open any network connections. While you will be limited by firewall rules even then, any requests for firewall rules you enter in the "Reason" blank here will be ignored. Please use the separate form at the bottom of this page for that. There is no need to wait until a request for socket permissions has been granted before starting to request firewall rules.
+ +Keep in mind that, if your request is granted, it will never apply to existing log-in sessions. Close them and re-connect to take advantage of your new privileges.
+