summaryrefslogtreecommitdiffstats
path: root/squid-authentication-html.lsp
diff options
context:
space:
mode:
authorMika Havela <mika.havela@gmail.com>2008-05-05 15:44:37 +0000
committerMika Havela <mika.havela@gmail.com>2008-05-05 15:44:37 +0000
commit1b8bad95d1204e4f3f90bfe4f212870d09c44918 (patch)
tree67fc5130f8dae4d489876f444ad682e7cffe6eca /squid-authentication-html.lsp
parentea937c7c3628041c298289c3859a95a63ba09f47 (diff)
downloadacf-squid-1b8bad95d1204e4f3f90bfe4f212870d09c44918.tar.bz2
acf-squid-1b8bad95d1204e4f3f90bfe4f212870d09c44918.tar.xz
Moved around the information on the view-files to reflect the same layout as other ACF's.
Added information on autostart sequence. Fetch programversion the same way as other acf's do (apk_version -v). git-svn-id: svn://svn.alpinelinux.org/acf/squid/trunk@1102 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'squid-authentication-html.lsp')
-rw-r--r--squid-authentication-html.lsp53
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>