From 5e1d9734d9dc849c21e84a45913fb2d22b7dfdf0 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Mon, 21 Apr 2008 20:55:44 +0000 Subject: Ted's Logon/permissions changes git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1030 ab2d0c66-481e-0410-8bed-d214d4d58bed --- app/template-html.lsp | 54 +++++++++++++++++++-------------------------------- 1 file changed, 20 insertions(+), 34 deletions(-) (limited to 'app/template-html.lsp') diff --git a/app/template-html.lsp b/app/template-html.lsp index 473674a..cbb5c29 100644 --- a/app/template-html.lsp +++ b/app/template-html.lsp @@ -1,6 +1,5 @@ - + Status: 200 OK Content-Type: text/html Log in\n", ctlr .. "logon" ) ) + if session.userinfo and session.userinfo.userid then + io.write ( string.format("\t\t\t\t\t\tLog out as '" .. session.userinfo.userid .. "'\n", ctlr .. "logout" ) ) else - io.write ( string.format("\t\t\t\t\t\tLog out as '" .. sname .. "'\n", ctlr .. "logout" ) ) + io.write ( string.format("\t\t\t\t\t\tLog in\n", ctlr .. "logon" ) ) end ?> | home | @@ -61,37 +59,25 @@ Content-Type: text/html ") - - local cat, group - local class - for k,v in ipairs(mainmenu) do - if v.cat ~= cat then - if not (cat == nil) and not (cat == "") then - io.write ("\t\t\t\t\t") - end - cat = v.cat - if (cat ~= "") then -- Filter out empty categories - io.write (string.format("\n\t\t\t\t
  • %s\n\t\t\t\t\t + io.write ( "\t\t\t\t\t" ) + end + io.write ( "\n\t\t\t\t
  • \n\t\t\t\n") + ?>
    @@ -116,13 +102,13 @@ Content-Type: text/html - %s\n',class,submenu[k]["action"],submenu[k]["tab"] )) + io.write (string.format('\t\t\t%s\n',class,tab.action,tab.name )) end ?> -- cgit v1.2.3