diff options
Diffstat (limited to 'squid-authentication-html.lsp')
-rw-r--r-- | squid-authentication-html.lsp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/squid-authentication-html.lsp b/squid-authentication-html.lsp index a9e9280..3071134 100644 --- a/squid-authentication-html.lsp +++ b/squid-authentication-html.lsp @@ -1,4 +1,4 @@ -<? +<% require("viewfunctions") local form = ... @@ -19,15 +19,15 @@ require("viewfunctions") end end -?> +%> <H1>SYSTEM INFO</H1> <DL> -<? +<% local myform = form.info local tags = { "status", "version", "autostart", } displayinfo(myform,tags,"viewonly") -?> +%> </DL> <h1>Configuration</h1> @@ -37,7 +37,7 @@ displayinfo(myform,tags,"viewonly") Choose the desired authentication mechanisms and their order. </p> -<input type="hidden" name="authmethod" value="<? io.write( config.authmethod.value ) ?>"> +<input type="hidden" name="authmethod" value="<% io.write( config.authmethod.value ) %>"> <table style="width:100px;"> <tr> <td valign="middle"> @@ -51,7 +51,7 @@ Choose the desired authentication mechanisms and their order. </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 @@ -66,7 +66,7 @@ Choose the desired authentication mechanisms and their order. lap = lap + 1 end end - ?> + %> </select> </td><td> <table><tr><td> @@ -77,7 +77,7 @@ Choose the desired authentication mechanisms and their order. </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 @@ -87,7 +87,7 @@ Choose the desired authentication mechanisms and their order. if string.match( config.authmethod.value, "B" ) == nil then io.write( "<option value=\"B\">Basic</option>\n" ) end -?> +%> </select> </td> </tr> @@ -103,9 +103,9 @@ the changes will not be <i>applied</i> until you restart the service.</dd> <h1>MANAGEMENT</h1> <form action="" method="POST"> <dl> -<DT>Daemon control</DT><dd><input class="submit" type="submit" name="srvcmd" value="start" <? io.write( srv1fill ) ?>> -<input class="submit" type="submit" name="srvcmd" value="stop" <? io.write( srv2fill ) ?>> -<input class="submit" type="submit" name="srvcmd" value="restart" <? io.write( srv2fill ) ?>> -<? if (service.message) and (service.message.descr) and (#service.message.descr > 0) then ?><pre><? io.write( service.message.descr ) ?></pre><? end ?></dd> +<DT>Daemon control</DT><dd><input class="submit" type="submit" name="srvcmd" value="start" <% io.write( srv1fill ) %>> +<input class="submit" type="submit" name="srvcmd" value="stop" <% io.write( srv2fill ) %>> +<input class="submit" type="submit" name="srvcmd" value="restart" <% io.write( srv2fill ) %>> +<% if (service.message) and (service.message.descr) and (#service.message.descr > 0) then %><pre><% io.write( service.message.descr ) %></pre><% end %></dd> </dl> </form> |