-- -- (C) 2014-19 - ntop.org -- local dirs = ntop.getDirs() package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path local alerts_api = require "alerts_api" local flow_callbacks_utils = {} -- ################################# function flow_callbacks_utils.print_callbacks_config() local tab = _GET["tab"] or "application_detected" local descr = alerts_api.load_flow_check_modules(entity_type) print [[
]] print[[]] print[[]] print[[]] print[[]] print[[]] print('\n') local has_modules = false for _, check_module in pairsByKeys(descr["all"], asc) do if check_module.gui then if not has_modules then has_modules = true end print("") end end if not has_modules then print("") end print[[
]] print(i18n("flow_callbacks.callback")) print[[]] print(i18n("flow_callbacks.callback_config")) print[[
".. i18n(check_module.gui.i18n_title) .."
") print(""..i18n(check_module.gui.i18n_description)..".\n") print("
") print(check_module.gui.input_builder(check_module)) print("
"..i18n("flow_callbacks.no_callbacks_defined")..".
]] if has_modules then print[[]] end print[[]] print[[ ]] print("
" .. i18n("flow_callbacks.notes") .. ":
") end return flow_callbacks_utils