1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
--
-- (C) 2013-22 - ntop.org
--
local dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
local json = require("dkjson")
require "lua_utils"
if _POST and isAdministrator() then
local dismiss_missing_geoip_reminder = _POST["dismiss_missing_geoip_reminder"]
if not isEmptyString(dismiss_missing_geoip_reminder) then
if dismiss_missing_geoip_reminder == "true" then
ntop.setPref("ntopng.prefs.geoip.reminder_dismissed", "true")
end
end
end
sendHTTPContentTypeHeader('application/json')
print(json.encode({status = "OK"}))
|