10 lines
258 B
Lua
10 lines
258 B
Lua
|
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 })
|