-- -- (C) 2013-18 - ntop.org -- local dirs = ntop.getDirs() package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path require "lua_utils" local template = require "template_utils" local page = _GET["page"] or _POST["page"] sendHTTPContentTypeHeader('text/html') ntop.dumpFile(dirs.installdir .. "/httpdocs/inc/header.inc") dofile(dirs.installdir .. "/scripts/lua/inc/menu.lua") if _POST and table.len(_POST) > 0 then local err_msg = "not_implemented" page = "restore" -- Note: restore happens at boot, we can manually place the tarball -- in the expected location, or write the upload code here if we -- decide to add multipart upload support in mongoose. if isEmptyString(err_msg) then print('