From e45a01ccebf7c9a756e3d27e3fe6abbeb8797a36 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Sat, 9 Aug 2008 14:37:15 +0000 Subject: Rewrite of dhcp to modify existing config file rather than just generate a new one. Still need to add support for hosts, currently only supports globals and subnets. git-svn-id: svn://svn.alpinelinux.org/acf/dhcp/trunk@1373 ab2d0c66-481e-0410-8bed-d214d4d58bed --- dhcp-status-html.lsp | 37 +------------------------------------ 1 file changed, 1 insertion(+), 36 deletions(-) mode change 100644 => 120000 dhcp-status-html.lsp (limited to 'dhcp-status-html.lsp') diff --git a/dhcp-status-html.lsp b/dhcp-status-html.lsp deleted file mode 100644 index e13dcda..0000000 --- a/dhcp-status-html.lsp +++ /dev/null @@ -1,36 +0,0 @@ -<% local form = ... %> - -<% -function displayinfo(myform,tags,viewonly) - for k,v in pairs(tags) do - if (myform[v]) and (myform[v]["value"]) then - local val = myform[v] - io.write("\t" .. val.label .. "\n") - if (viewonly) then - io.write("\t\t
" .. val.value .. "\n") - else - io.write("\t\t
" .. html.form[val.type](val) .. "\n") - end - if (val.descr) and (#val.descr > 0) then io.write("\t\t

" .. string.gsub(val.descr, "\n", "
") .. "

\n") end - if (val.errtxt) then io.write("\t\t

" .. string.gsub(val.errtxt, "\n", "
") .. "

\n") end - io.write("\t\t
\n") - end - end -end -%> - -

SYSTEM INFO

-
-<% -local myform = form.info -local tags = { "status", "version", "autostart", } -displayinfo(myform,tags,"viewonly") -%> -
- - diff --git a/dhcp-status-html.lsp b/dhcp-status-html.lsp new file mode 120000 index 0000000..b2f8480 --- /dev/null +++ b/dhcp-status-html.lsp @@ -0,0 +1 @@ +../status-html.lsp \ No newline at end of file -- cgit v1.2.3