peachy/assets/open.lua

10 lines
258 B
Lua
Raw Permalink Normal View History

2024-08-06 04:46:43 +00:00
local r = fm.getRequest()
if GetMethod() == "POST" then
local filename = r.params.filename
if filename == "" then filename = nil end
r.session.filename = filename
end
local filename = r.session.filename or ""
fm.render("opendb", { filename = filename })