<% if _SESSION["logined"] ~= nil then local file = _POST["file"] or "" local result = "0" local CanChangedir = true if _SESSION["admin_basefolder"] ~= nil and _SESSION["admin_basefolder"] ~= "" then if string.len(file) < string.len(_SESSION["admin_basefolder"]) then CanChangedir = false else if string.find(file, _SESSION["admin_basefolder"]) == nil then CanChangedir = false end end end if file ~= nil and file ~= "" and CanChangedir == true then if c_FileExist(file) == true then result = "1" end end print(result) end %>