ntopng/scripts/lua/update_ts_prefs.lua
2019-02-27 18:17:18 +01:00

22 lines
450 B
Lua

--
-- (C) 2013-18 - ntop.org
--
local dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
require "lua_utils"
local json = require "dkjson"
local res = {success = false}
sendHTTPHeader('application/json')
if isAdministrator() then
if _POST["action"] == "disable" then
ntop.setPref("ntopng.prefs.disable_ts_migration_message", "1")
res.success = true
end
end
print(json.encode(res))