mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 07:59:35 +00:00
23 lines
674 B
Lua
23 lines
674 B
Lua
--
|
|
-- (C) 2013-18 - ntop.org
|
|
--
|
|
|
|
local dirs = ntop.getDirs()
|
|
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
|
|
local json = require("dkjson")
|
|
local recording_utils = require "recording_utils"
|
|
|
|
if _POST then
|
|
local ifid = tonumber(_POST["ifid"])
|
|
local dismiss_external_providers_reminder = _POST["dismiss_external_providers_reminder"]
|
|
|
|
if ifid ~= nil and not isEmptyString(dismiss_external_providers_reminder) then
|
|
if dismiss_external_providers_reminder == "true" then
|
|
recording_utils.dismissExternalProvidersReminder(ifid)
|
|
end
|
|
end
|
|
end
|
|
|
|
sendHTTPContentTypeHeader('application/json')
|
|
|
|
print(json.encode({status = "OK"}))
|