-- -- (C) 2013-17 - ntop.org -- dirs = ntop.getDirs() package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path require "lua_utils" require "graph_utils" sendHTTPHeader('text/html; charset=iso-8859-1') ntop.dumpFile(dirs.installdir .. "/httpdocs/inc/header.inc") active_page = "flows" dofile(dirs.installdir .. "/scripts/lua/inc/menu.lua") application = _GET["application"] application_filter = "" hosts = _GET["hosts"] key = _GET["key"] host = _GET["host"] vhost = _GET["vhost"] network_id=_GET["network_id"] network_name=_GET["network_name"] prefs = ntop.getPrefs() interface.select(ifname) ifstats = interface.getStats() ndpistats = interface.getnDPIStats() if (network_id ~= nil) then url = ntop.getHttpPrefix()..'/lua/flows_stats.lua?network_id='..network_id.."&network_name="..network_name print [[ ]] end if (page == "flows" or page == nil) then num_param = 0 print [[