diff options
author | Mika Havela <mika.havela@gmail.com> | 2007-12-01 08:20:31 +0000 |
---|---|---|
committer | Mika Havela <mika.havela@gmail.com> | 2007-12-01 08:20:31 +0000 |
commit | e9e411f1c5a15b6bf0854ae50176de4941e87ca4 (patch) | |
tree | 7467f15d3c729115bf8d4a2e980a05c925c304ba | |
parent | 7cd319e88461c9ef700d4925b236b5091aef00a1 (diff) | |
download | acf-shorewall-e9e411f1c5a15b6bf0854ae50176de4941e87ca4.tar.bz2 acf-shorewall-e9e411f1c5a15b6bf0854ae50176de4941e87ca4.tar.xz |
Cleaning up dir
git-svn-id: svn://svn.alpinelinux.org/acf/shorewall/trunk@398 ab2d0c66-481e-0410-8bed-d214d4d58bed
-rw-r--r-- | firewall.srv | 5 | ||||
-rw-r--r-- | shorewall-start-html.lsp | 71 |
2 files changed, 0 insertions, 76 deletions
diff --git a/firewall.srv b/firewall.srv deleted file mode 100644 index 0a3d456..0000000 --- a/firewall.srv +++ /dev/null @@ -1,5 +0,0 @@ -{ app="firewall", name="shorewall", initd="shorewall", - status="initd", start="initd", stop="initd" }, - --- vim: set filetype=lua : - diff --git a/shorewall-start-html.lsp b/shorewall-start-html.lsp deleted file mode 100644 index 53d81b7..0000000 --- a/shorewall-start-html.lsp +++ /dev/null @@ -1,71 +0,0 @@ -<? -local view = ... - -local function packURL(script, prefix, controller, action, extra) - ret = script .. "/" .. prefix .. controller .. "/" .. action - sep = '?' - for k,v in pairs(extra) do - ret = ret .. sep .. k .. '=' .. v - sep = '&' - end - return ret -end - ---[[ -view - script, prefix, controller - action[] - name, script, prefix, controller - section - id - label - disabled - active - id - action - title - text[] - label - content ---]] -?><h1><?= view.title -?></h1><? - ---Status Block - for i,item in ipairs(view.note or {}) do - ?><p class='error'><?= item.content ?></p><? - end - -local section = "" -for i,item in ipairs(view.action) do - if section ~= item.section then - section = item.section - ?><h2><?= section ?></h2><? - end - if item.disabled then - ?><i><?= item.label or item.name ?></i><? - else - ?><?= html.form.start { - method="POST", - action = packURL(item.script or view.script, - item.prefix or view.prefix, - item.controller or view.controller, - item.name, {}) - } ?><?= html.form.hidden { name="id", value=item.id } ?><? - local label = (item.label or item.name) - if item.id == view.active.id and item.name == view.active.action then - label = '['..label..']' - end - ?><?= html.form.submit { - name = item.name, value = label - } ?><?= html.form.stop() ?><? - end -end -for i,item in ipairs(view.text) do - if item.label then - ?><h2><?= item.label ?></h2><? - end - ?><pre><?= item.content ?></pre><? -end --- vim: set filetype=lua : -?> |