-- -- (C) 2013-17 - ntop.org -- dirs = ntop.getDirs() package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path require "lua_utils" local host_pools_utils = require "host_pools_utils" sendHTTPContentTypeHeader('text/html') ntop.dumpFile(dirs.installdir .. "/httpdocs/inc/header.inc") protocol = _GET["protocol"] asn = _GET["asn"] vlan = _GET["vlan"] network = _GET["network"] country = _GET["country"] mac = _GET["mac"] os_ = _GET["os"] community = _GET["community"] pool = _GET["pool"] ipversion = _GET["version"] local base_url = ntop.getHttpPrefix() .. "/lua/hosts_stats.lua" local page_params = {} mode = _GET["mode"] if isEmptyString(mode) then mode = "all" else page_params["mode"] = mode end hosts_filter = '' if ((mode ~= "all") or (not isEmptyString(pool))) then hosts_filter = '' end active_page = "hosts" dofile(dirs.installdir .. "/scripts/lua/inc/menu.lua") prefs = ntop.getPrefs() ifstats = interface.getStats() if (_GET["page"] ~= "historical") then if(asn ~= nil) then print [[