mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
22 lines
450 B
Lua
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))
|