diff options
Diffstat (limited to 'squid-authentication-html.lsp')
-rw-r--r-- | squid-authentication-html.lsp | 85 |
1 files changed, 0 insertions, 85 deletions
diff --git a/squid-authentication-html.lsp b/squid-authentication-html.lsp deleted file mode 100644 index 7e662a7..0000000 --- a/squid-authentication-html.lsp +++ /dev/null @@ -1,85 +0,0 @@ -<% -require("viewfunctions") - - local form, viewlibrary = ... - local config = form.service.config - -%> - -<% if viewlibrary and viewlibrary.dispatch_component then - viewlibrary.dispatch_component("status") -end %> - -<h1>Configuration</h1> -<h2>Authentication Scheme</h2> -<form action="" method="POST"> -<p> -Choose the desired authentication mechanisms and their order. -</p> - -<input type="hidden" name="authmethod" value="<% io.write( config.authmethod.value ) %>"> -<table style="width:100px;"> -<tr> - <td valign="middle"> - <table> - <tr> - <td><input class="submit" type="submit" value="^"></td> - </tr><tr> - <td><input class="submit" type="submit" value="v"></td> - </tr> - </table> - </td><td> - <b>Active</b><br> - <select class="select" name="tmpauth" size="5" style="width:150px;"> - <% - local lap = 1 - local method = config.authmethod.value - if #config.authmethod.value > 0 then - while lap <= #config.authmethod.value do - if string.sub( method, lap, lap ) == "D" then - io.write( "<option value=\"D\">Digest</option>\n" ) - elseif string.sub( method, lap, lap ) == "N" then - io.write( "<option value=\"N\">NTLM</option>\n" ) - elseif string.sub( method, lap, lap ) == "B" then - io.write( "<option value=\"B\">Basic</option>\n" ) - end - lap = lap + 1 - end - end - %> - </select> - </td><td> - <table><tr><td> - <input class="submit" type="submit" name="inout" value=" << "> - </td></tr><tr><td> - <input class="submit" type="submit" name="inout" value=" >> "> - </td></tr></table> - </td><td> - <b>Selectable</b><br> - <select name="tmpempty" size="5" style="width:150px;"> -<% - if string.match( config.authmethod.value, "D" ) == nil then - io.write( "<option value=\"D\">Digest</option>\n" ) - end - if string.match( config.authmethod.value, "N" ) == nil then - io.write( "<option value=\"N\">NTLM</option>\n" ) - end - if string.match( config.authmethod.value, "B" ) == nil then - io.write( "<option value=\"B\">Basic</option>\n" ) - end -%> - </select> - </td> -</tr> -</table> -<h2>Information</h2> -<DL> -<dt>Process information</dt><dd>This process runs as a service. When you make -and save changes, the configuration files for the service are changed. However, -the changes will not be <i>applied</i> until you restart the service.</dd> -</DL> -</form> - -<% if viewlibrary and viewlibrary.dispatch_component then - viewlibrary.dispatch_component("startstop") -end %> |