<% local data, viewlibrary, page_info, session = ... require("viewfunctions") %> <% --[[ DEBUG INFORMATION io.write("

DEBUGGING

DEBUG INFO: CFE

") io.write(html.cfe_unpack(data)) io.write("
") --]] %> <% displaycommandresults({"deletefile", "expert", "startstop", "rebuilddatabases"}, session) %> <% displaycommandresults({"createfile"}, session, true) %> <% if viewlibrary and viewlibrary.dispatch_component then viewlibrary.dispatch_component("status") end %>

<%= html.html_escape(data.label) %>

<% for i,file in ipairs(data.value) do %> <% end %>
Action File Size Last Modified
<%= html.link{value = "expert?filename=" .. file.filename.."&redir="..page_info.orig_action, label="Edit "} %> <% if file.filename ~= "/etc/mail/aliases" then %><%= html.link{value = "deletefile?filename=" .. file.filename, label="Delete "} %><% end %> <%= html.html_escape(file.filename) %> <%= html.html_escape(file.filesize) %> <%= html.html_escape(file.mtime) %>
">
Rebuild Databases
<% if viewlibrary and viewlibrary.dispatch_component and session.permissions[page_info.controller].createfile then local newfileform = viewlibrary.dispatch_component("createfile", nil, true) %>

Create new file

<% newfileform.action = page_info.script .. page_info.prefix .. page_info.controller .. "/createfile" displayform(newfileform) end %> <% if viewlibrary and viewlibrary.dispatch_component then viewlibrary.dispatch_component("startstop") end %>