mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Rework user script working sets (a single configset is supported now)
This commit is contained in:
parent
03512b963f
commit
fa311e3ade
45 changed files with 259 additions and 1077 deletions
|
|
@ -21,7 +21,6 @@ local dirs = ntop.getDirs()
|
|||
|
||||
sendHTTPContentTypeHeader('application/json')
|
||||
|
||||
local confset_id = tonumber(_GET["confset_id"]) or user_scripts.DEFAULT_CONFIGSET_ID
|
||||
local subdir = _GET["script_subdir"]
|
||||
|
||||
if(subdir == nil) then
|
||||
|
|
@ -36,17 +35,7 @@ if(script_type == nil) then
|
|||
return
|
||||
end
|
||||
|
||||
if(confset_id == nil) then
|
||||
traceError(TRACE_ERROR, TRACE_CONSOLE, "Missing 'confset_id' paramter")
|
||||
return
|
||||
end
|
||||
|
||||
local config_set = user_scripts.getConfigsets()[confset_id]
|
||||
|
||||
if(config_set == nil) then
|
||||
traceError(TRACE_ERROR, TRACE_CONSOLE, "Unknown configset ID: " .. confset_id)
|
||||
return
|
||||
end
|
||||
local config_set = user_scripts.getConfigset()
|
||||
|
||||
-- ################################################
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue