mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
28 lines
728 B
Lua
28 lines
728 B
Lua
--
|
|
-- (C) 2014-15-15 - ntop.org
|
|
--
|
|
|
|
dirs = ntop.getDirs()
|
|
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
|
|
|
|
require "lua_utils"
|
|
|
|
if(mode ~= "embed") then
|
|
sendHTTPHeader('text/html; charset=iso-8859-1')
|
|
ntop.dumpFile(dirs.installdir .. "/httpdocs/inc/header.inc")
|
|
active_page = "hosts"
|
|
dofile(dirs.installdir .. "/scripts/lua/inc/menu.lua")
|
|
end
|
|
|
|
print [[ <div id="sprobe"></div> ]]
|
|
|
|
|
|
width = 1024
|
|
height = 768
|
|
url = ntop.getHttpPrefix().."/lua/sprobe_data.lua"
|
|
-- url = ntop.getHttpPrefix().."/lua/sprobe_flow_data.lua?flow_key=4261522881"
|
|
dofile(dirs.installdir .. "/scripts/lua/inc/sprobe.lua")
|
|
|
|
if(mode ~= "embed") then
|
|
dofile(dirs.installdir .. "/scripts/lua/inc/footer.lua")
|
|
end
|