diff options
Diffstat (limited to 'squid-authentication-html.lsp')
-rw-r--r-- | squid-authentication-html.lsp | 53 |
1 files changed, 31 insertions, 22 deletions
diff --git a/squid-authentication-html.lsp b/squid-authentication-html.lsp index fcf8164..e3eac32 100644 --- a/squid-authentication-html.lsp +++ b/squid-authentication-html.lsp @@ -1,4 +1,6 @@ <? +require("viewfunctions") + local form = ... local data = form.option local service = form.service @@ -18,7 +20,16 @@ end ?> -<h1>Web Proxy</h1> + +<H1>SYSTEM INFO</H1> +<DL> +<? +local myform = form.info +local tags = { "status", "version", "autostart", } +displayinfo(myform,tags,"viewonly") +?> +</DL> + <h2>General Information</h2> <p> Squid is a web proxy server. It makes web requests in behalf of the client, and @@ -31,27 +42,9 @@ such as DansGuardian. This page lets you modify the authentication scheme of squid. </p> -<h2>Status</h2> -<dt>Program version</dt><dd><? io.write( form.info.version.value ) ?></dd> -<dt>Process status</dt><dd><? io.write( form.info.status.value ) ?></dd> -<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> -<form action="" method="POST"> -<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 ) ?>></dd> -</form> - -<p> -<pre class="attention"><? io.write( service.message ) ?></pre> -</p> - +<h1>Configuration</h1> +<h2>Authentication Scheme</h2> <form action="" method="POST"> -<h2>Configuration</h2> - -<h3>Authentication Scheme</h3> <p> Choose the desired authentication mechanisms and their order. </p> @@ -110,6 +103,22 @@ Choose the desired authentication mechanisms and their order. </select> </td> </tr> -</table><br> +</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> +<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 ) ?>> +<pre class="attention"><? io.write( service.message ) ?></pre></dd> +</dl> +</form> |