diff options
author | Alexander Poslavsky <alexander.poslavsky@gmail.com> | 2007-11-02 09:24:27 +0000 |
---|---|---|
committer | Alexander Poslavsky <alexander.poslavsky@gmail.com> | 2007-11-02 09:24:27 +0000 |
commit | ccc6fc77ca7f75294c45f3cd571473488df0042d (patch) | |
tree | 6ae3291364c2a46ea48c176ac0f3f669355fe40d /app/shorewall-stop-html.lsp | |
parent | 1f2bc0676beae8672512edc37fff46a5e76b02a2 (diff) | |
download | acf-shorewall-ccc6fc77ca7f75294c45f3cd571473488df0042d.tar.bz2 acf-shorewall-ccc6fc77ca7f75294c45f3cd571473488df0042d.tar.xz |
trying to get shorewall to install+status indicator, cleanup
git-svn-id: svn://svn.alpinelinux.org/acf/shorewall/trunk@252 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'app/shorewall-stop-html.lsp')
-rw-r--r-- | app/shorewall-stop-html.lsp | 66 |
1 files changed, 0 insertions, 66 deletions
diff --git a/app/shorewall-stop-html.lsp b/app/shorewall-stop-html.lsp deleted file mode 100644 index 2daa4bc..0000000 --- a/app/shorewall-stop-html.lsp +++ /dev/null @@ -1,66 +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><? - -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 : -?> |