diff options
Diffstat (limited to 'tinydns-config-html.lsp')
-rwxr-xr-x | tinydns-config-html.lsp | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/tinydns-config-html.lsp b/tinydns-config-html.lsp index 49cfa8c..f0628e9 100755 --- a/tinydns-config-html.lsp +++ b/tinydns-config-html.lsp @@ -39,17 +39,18 @@ local tags = { "status", "version", } displayinfo(myform,tags,"viewonly") ?> +<form name="cmd" action="<?= form.option.link ?>/<?= form.option.action ?>" method="POST"> <H1>CONFIG</H1> <H2>General settings</H2> <? local myform = form.config -local tags = { "listen","cmdeditlisten", } +local tags = { "listen","listen_cmd", } displayinfo(myform,tags) ?> <H2>Locations</H2> <? -local tags = { "locations","cmdeditlocations", "cmdnewlocations", } +local tags = { "locations","locations_cmd", "cmdnewlocations", } displayinfo(myform,tags) ?> @@ -57,58 +58,60 @@ displayinfo(myform,tags) <H2>Records</H2> <H3><? io.write(tostring(form.config.nsourdomain.label) or "NS record") ?></H3> <? -local tags = { "nsourdomain","cmdeditnsourdomain", } +local tags = { "nsourdomain","nsourdomain_cmd", } displayinfo(myform,tags) ?> <H3><? io.write(tostring(form.config.nsdomain.label) or "NS record") ?></H3> <? -local tags = { "nsdomain","cmdeditnsdomain", } +local tags = { "nsdomain","nsdomain_cmd", } displayinfo(myform,tags) ?> <H3><? io.write(tostring(form.config.host.label) or "Hosts record") ?></H3> <? -local tags = { "host","cmdedithost", } +local tags = { "host","host_cmd", } displayinfo(myform,tags) ?> <H3><? io.write(tostring(form.config.alias.label) or "Alias record") ?></H3> <? -local tags = { "alias","cmdeditalias", } +local tags = { "alias","alias_cmd", } displayinfo(myform,tags) ?> <H3><? io.write(tostring(form.config.mx.label) or "MX record") ?></H3> <? -local tags = { "mx","cmdeditmx", } +local tags = { "mx","mx_cmd", } displayinfo(myform,tags) ?> <H3><? io.write(tostring(form.config.ptr.label) or "PTR record") ?></H3> <? -local tags = { "ptr","cmdeditptr", } +local tags = { "ptr","ptr_cmd", } displayinfo(myform,tags) ?> <H3><? io.write(tostring(form.config.cname.label) or "CNAME record") ?></H3> <? -local tags = { "cname","cmdeditcname", } +local tags = { "cname","cname_cmd", } displayinfo(myform,tags) ?> <H3><? io.write(tostring(form.config.soa.label) or "SOA record") ?></H3> <? -local tags = { "soa","cmdeditsoa", } +local tags = { "soa","soa_cmd", } displayinfo(myform,tags) ?> <H3><? io.write(tostring(form.config.generic.label) or "GENERIC record") ?></H3> <? -local tags = { "generic","cmdeditgeneric", } +local tags = { "generic","generic_cmd", } displayinfo(myform,tags) ?> +</form> + <? --[[ ?> <H1>DEGUGGING</H1> <? |