<%= curcat %> > <%= curgroup %>
<% else %>Session expired, please login...
<% end %>
<% pageinfo.viewfunc(viewtable, viewlibrary, pageinfo, session) %>
% local viewtable, viewlibrary, pageinfo, session = ... html=require("acf.html") posix = require("posix") %> Status: 200 OK Content-Type: text/html <% if (session.id) then io.write( html.cookie.set("sessionid", session.id) ) else io.write (html.cookie.unset("sessionid")) end %>
<% local hostname = "" if viewlibrary and viewlibrary.dispatch_component then local result = viewlibrary.dispatch_component("alpine-baselayout/hostname/read", nil, true) if result and result.value then hostname = result.value end end local class local tabs for x,cat in ipairs(session.menu.cats) do for y,group in ipairs(cat.groups) do class="" if not tabs and group.controllers[pageinfo.prefix .. pageinfo.controller] then class="class='selected'" tabs = group.tabs curcat = html.html_escape(cat.name) curgroup = html.html_escape(group.name) end end end %>