From 05ba1c56a685c78f86bc634b5de9bc66057ad386 Mon Sep 17 00:00:00 2001 From: Mika Havela Date: Mon, 18 Feb 2008 19:52:34 +0000 Subject: Moved password-manager to core git-svn-id: svn://svn.alpinelinux.org/acf/alpine-baselayout/trunk@750 ab2d0c66-481e-0410-8bed-d214d4d58bed --- tmppassword-controller.lua | 47 -------------------------- tmppassword-edit-html.lsp | 72 --------------------------------------- tmppassword-read-html.lsp | 2 -- tmppassword-status-html.lsp | 82 --------------------------------------------- tmppassword.menu | 3 -- 5 files changed, 206 deletions(-) delete mode 100755 tmppassword-controller.lua delete mode 100755 tmppassword-edit-html.lsp delete mode 100755 tmppassword-read-html.lsp delete mode 100755 tmppassword-status-html.lsp delete mode 100755 tmppassword.menu diff --git a/tmppassword-controller.lua b/tmppassword-controller.lua deleted file mode 100755 index c19d6b4..0000000 --- a/tmppassword-controller.lua +++ /dev/null @@ -1,47 +0,0 @@ -module(..., package.seeall) - -local list_redir = function (self) - self.conf.action = "status" - self.conf.type = "redir" - error (self.conf) -end - -mvc = {} -mvc.on_load = function(self, parent) - if (self.worker[self.conf.action] == nil ) or ( self.conf.action == "init" ) then - self.worker[self.conf.action] = list_redir(self) - end -end - -function status(self) - local status=self.model.getstatus(self) - status.cmdnew = cfe ({ - name="cmdnew", - type="submit", - label="Create new account", - value="Create", - disabled="yes", - }) - return { status=status } -end - -function edit(self) - local config=self.model.getsettings(self.clientdata.userid) - config.cmdsave = cfe ({ - name="cmdsave", - type="submit", - label="Save changes", - value="Save", - disabled="yes", - }) - config.cmddelete = cfe ({ - name="cmddelete", - type="submit", - label="Delete this account", - value="Delete", - disabled="yes", - }) - - return { config=config, clientdata=self.clientdata } -end - diff --git a/tmppassword-edit-html.lsp b/tmppassword-edit-html.lsp deleted file mode 100755 index 8b295b5..0000000 --- a/tmppassword-edit-html.lsp +++ /dev/null @@ -1,72 +0,0 @@ - -DEBUGGING

DEBUG INFO: CFE

") -io.write(html.cfe_unpack(form)) -io.write("
") ---]] -?> -") - for k,v in pairs(tags) do - if (myform[v]) and (myform[v]["value"]) then - local val = myform[v] - io.write("\n\t 0) then - val.class = "error" - io.write(" class='error'") - end - io.write(">" .. 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.errtxt > 0) then io.write("\t\t

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

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

CONFIG

-

Settings

- - -") -io.write("\n\t 0) then - myform.class = "error" - io.write(" class='error'") -end -io.write(">" .. myform.label .. "") -io.write("\n\t\t
") -for k,v in pairs(myform.option) do - local checked = "" - if (form.config.userid.roles[v]) then checked = "checked='yes'" end - io.write("\n\t\t\t" ..v .. ": ") -end -if (#myform.errtxt > 0) then io.write("\t\t

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

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

Actions

- - diff --git a/tmppassword-read-html.lsp b/tmppassword-read-html.lsp deleted file mode 100755 index 9ab91bf..0000000 --- a/tmppassword-read-html.lsp +++ /dev/null @@ -1,2 +0,0 @@ - -

The local root password is

diff --git a/tmppassword-status-html.lsp b/tmppassword-status-html.lsp deleted file mode 100755 index 45bed4f..0000000 --- a/tmppassword-status-html.lsp +++ /dev/null @@ -1,82 +0,0 @@ - -DEBUGGING

DEBUG INFO: CFE

") -io.write(html.cfe_unpack(form)) -io.write("
") ---]] -?> - -") - for k,v in pairs(tags) do - if (myform[v]) and (myform[v]["value"]) then - local val = myform[v] - io.write("\t 0) then - val.class = "error" - io.write(" class='error'") - end - io.write(">" .. 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 > 0) then io.write("\t\t

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

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

USER ACCOUNTS

-

Create new account

- - -

Existing account

-") -if (type(myform) == "table") then - for k,v in pairs(myform) do - local myform = myform[k] - io.write("\t 0) then - myform.class = "error" - io.write(" class='error'") - end - io.write("> " .. myform.label .. "\n") - io.write("\t\t
\n\t\t") - io.write("\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t") - io.write("\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t") - io.write("\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t") - io.write("\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t") - io.write("\n\t\t
Account name:" .. myform.value .. "
Description:" .. (myform.descr or "") .. "
Roles:") - io.write(tostring(myform.roles)) - io.write("
Options:[Edit this account]
\n") - if (#myform.errtxt > 0) then io.write("\t\t

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

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

DEBUG INFO: CFE

") -io.write(html.cfe_unpack(form)) -io.write("
") ---]] -?> - diff --git a/tmppassword.menu b/tmppassword.menu deleted file mode 100755 index 3965745..0000000 --- a/tmppassword.menu +++ /dev/null @@ -1,3 +0,0 @@ -#CAT GROUP/DESC TAB ACTION -System 01Password Status status - -- cgit v1.2.3