-- -- (C) 2013-18 - ntop.org -- dirs = ntop.getDirs() package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path if(ntop.isPro()) then package.path = dirs.installdir .. "/pro/scripts/lua/modules/?.lua;" .. package.path require "snmp_utils" end require "lua_utils" require "graph_utils" local info = ntop.getInfo(false) local vlan_id = _GET["vlan"] local page = "historical" -- only historical for now _GET["page"] local rrdfile = "bytes.rrd" if(_GET["rrd_file"] ~= nil) then rrdfile=_GET["rrd_file"] end interface.select(ifname) ifId = getInterfaceId(ifname) sendHTTPContentTypeHeader('text/html') ntop.dumpFile(dirs.installdir .. "/httpdocs/inc/header.inc") dofile(dirs.installdir .. "/scripts/lua/inc/menu.lua") if vlan_id == nil or tonumber(vlan_id) == nil or tonumber(vlan_id) == 0 then print("