mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-06 03:45:26 +00:00
fix for system view
This commit is contained in:
parent
3052e1370d
commit
ce0e3d2d11
97 changed files with 152 additions and 187 deletions
|
|
@ -11,7 +11,7 @@ require "flow_utils"
|
|||
local page_utils = require("page_utils")
|
||||
|
||||
sendHTTPContentTypeHeader('text/html')
|
||||
page_utils.manage_system_interface()
|
||||
|
||||
|
||||
page_utils.print_header()
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ require "flow_utils"
|
|||
local page_utils = require("page_utils")
|
||||
|
||||
sendHTTPContentTypeHeader('text/html')
|
||||
page_utils.manage_system_interface()
|
||||
|
||||
|
||||
page_utils.print_header()
|
||||
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ local labelKey = host_info["host"].."@"..host_info["vlan"]
|
|||
|
||||
if((host_name == nil) or (host_ip == nil)) then
|
||||
sendHTTPContentTypeHeader('text/html')
|
||||
page_utils.manage_system_interface()
|
||||
|
||||
ntop.dumpFile(dirs.installdir .. "/httpdocs/inc/header.inc")
|
||||
dofile(dirs.installdir .. "/scripts/lua/inc/menu.lua")
|
||||
print("<div class=\"alert alert alert-danger\"><img src=".. ntop.getHttpPrefix() .. "/img/warning.png> Host parameter is missing (internal error ?)</div>")
|
||||
|
|
@ -106,7 +106,7 @@ if(host == nil) then
|
|||
page = "historical"
|
||||
only_historical = true
|
||||
sendHTTPContentTypeHeader('text/html')
|
||||
page_utils.manage_system_interface()
|
||||
|
||||
ntop.dumpFile(dirs.installdir .. "/httpdocs/inc/header.inc")
|
||||
dofile(dirs.installdir .. "/scripts/lua/inc/menu.lua")
|
||||
print [[
|
||||
|
|
@ -127,7 +127,7 @@ page_utils.manage_system_interface()
|
|||
-- We need to check if this is an aggregated host
|
||||
if(not(restoreFailed) and (host_info ~= nil) and (host_info["host"] ~= nil)) then json = ntop.getCache(host_info["host"].. "." .. ifId .. ".json") end
|
||||
sendHTTPContentTypeHeader('text/html')
|
||||
page_utils.manage_system_interface()
|
||||
|
||||
ntop.dumpFile(dirs.installdir .. "/httpdocs/inc/header.inc")
|
||||
if page == "alerts" then
|
||||
print('<script>window.location.href = "')
|
||||
|
|
@ -155,7 +155,7 @@ page_utils.manage_system_interface()
|
|||
end
|
||||
else
|
||||
sendHTTPContentTypeHeader('text/html')
|
||||
page_utils.manage_system_interface()
|
||||
|
||||
ntop.dumpFile(dirs.installdir .. "/httpdocs/inc/header.inc")
|
||||
print("<link href=\""..ntop.getHttpPrefix().."/css/tablesorted.css\" rel=\"stylesheet\">\n")
|
||||
dofile(dirs.installdir .. "/scripts/lua/inc/menu.lua")
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ show_aggregation = true
|
|||
|
||||
active_page = "hosts"
|
||||
sendHTTPContentTypeHeader('text/html')
|
||||
page_utils.manage_system_interface()
|
||||
|
||||
|
||||
page_utils.print_header()
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ local page_utils = require("page_utils")
|
|||
|
||||
if(mode ~= "embed") then
|
||||
sendHTTPContentTypeHeader('text/html')
|
||||
page_utils.manage_system_interface()
|
||||
|
||||
ntop.dumpFile(dirs.installdir .. "/httpdocs/inc/header.inc")
|
||||
active_page = "hosts"
|
||||
dofile(dirs.installdir .. "/scripts/lua/inc/menu.lua")
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ local page_utils = require("page_utils")
|
|||
|
||||
if(mode ~= "embed") then
|
||||
sendHTTPContentTypeHeader('text/html')
|
||||
page_utils.manage_system_interface()
|
||||
|
||||
page_utils.print_header()
|
||||
active_page = "hosts"
|
||||
dofile(dirs.installdir .. "/scripts/lua/inc/menu.lua")
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ require "lua_utils"
|
|||
local page_utils = require("page_utils")
|
||||
|
||||
sendHTTPContentTypeHeader('text/html')
|
||||
page_utils.manage_system_interface()
|
||||
|
||||
|
||||
page_utils.print_header()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue