- if $"kind" = "cert" then
- if $"req" <> "" then
- %><h3>You filled data in next to a textbox but didn't check the radio button next to it.</h3><%
- elseif $"cert" = "" then
- %><h3>Please fill in a path to a certificate.</h3><%
- else
- val cert = $"cert";
- val msg = $"msg";
-
- %>Are you sure you want to ask for permissions on an SSL certificate at <% cert %>?<br><br>
- <a href="cert?cmd=request&req=Certificate+<% cert %>&msg=<% Web.urlEncode msg %>">Yes, I want to request that.</a><%
- end
- else
- if $"cert" <> "" then
- %><h3>You filled data in next to a textbox but didn't check the radio button next to it.</h3><%
- elseif $"req" = "" then
- %><h3>Please fill in a path to an OpenSSL request.</h3><%
- else
- val req = $"req";
- val msg = $"msg";
-
- %>Are you sure you want to ask for permissions on an SSL certificate to be created from an OpenSSL request at <% req %>?<br><br>
- <a href="cert?cmd=request&req=OpenSSL+request+<% req %>&msg=<% Web.urlEncode msg %>">Yes, I want to request that.</a><%
- end
- end
-
+ val cert = $"cert";
+ val domain = $"domain";
+ val msg = $"msg";
+
+ if cert = "" then
+ %><h3>Please fill in a path to a certificate.</h3><%
+ elseif not (ChooseDomain.yourDomain {user = Init.getUserName (), domain = domain}) then
+ %><h3>You don't have permissions on domain <tt><% Web.html domain %></tt>.</h3><%
+ else
+ %>Are you sure you want to ask for permissions on an SSL certificate
+ <li> at <tt><% Web.html cert %></tt>,</li>
+ <li> for domain <tt><% domain %></tt>?</li>
+ <a href="?cmd=request&cert=<% Web.html cert %>&domain=<% Web.html domain %>&msg=<% Web.urlEncode msg %>">Yes, I want to request that.</a><%
+ end