<% local form, viewlibrary, page_info, session = ... %> <% htmlviewfunctions = require("htmlviewfunctions") %> <% html = require("acf.html") %> <% htmlviewfunctions.displaycommandresults({"editfile"}, session) %>

Edit MAC Authentication File

<% htmlviewfunctions.displayitem(form.value.filename) htmlviewfunctions.displayitem(form.value.filesize) htmlviewfunctions.displayitem(form.value.mtime) %>

Entries

<% htmlviewfunctions.displayformstart(form, page_info) form.value.filename.type = "hidden" htmlviewfunctions.displayformitem(form.value.filename, "filename") form.value.filecontent.type = "hidden" htmlviewfunctions.displayformitem(form.value.filecontent, "filecontent") %> <% if not form.value.filename.errtxt then %> <% for line in string.gmatch(html.html_escape(form.value.filecontent.value), "([^\n]*)\n?") do %> <% end %>
<%= line %>
<% if form.descr then io.write('

' .. string.gsub(html.html_escape(form.descr), "\n", "
") .. '

') end if form.errtxt then io.write('

' .. string.gsub(html.html_escape(form.errtxt), "\n", "
") .. '

') end htmlviewfunctions.displayformend(form) %>
<% end %> <% if not form.value.filename.errtxt and viewlibrary and viewlibrary.dispatch_component and viewlibrary.check_permission("editfile") then %>

Expert

<% end %>