-- -- (C) 2013-18 - ntop.org -- dirs = ntop.getDirs() package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path require "lua_utils" local discover = require("discover_utils") sendHTTPContentTypeHeader('text/html') if (group_col == nil) then group_col = "mac" end ntop.dumpFile(dirs.installdir .. "/httpdocs/inc/header.inc") local have_nedge = ntop.isnEdge() active_page = "hosts" dofile(dirs.installdir .. "/scripts/lua/inc/menu.lua") local base_url = ntop.getHttpPrefix() .. "/lua/macs_stats.lua" local page_params = {} local devices_mode = "" local devices_mode_filter = "" local dhcp_macs_only = false if(not isEmptyString(_GET["devices_mode"])) then devices_mode = _GET["devices_mode"] page_params["devices_mode"] = _GET["devices_mode"] devices_mode_filter = '' end local manufacturer = nil local manufacturer_filter = "" if(not isEmptyString(_GET["manufacturer"])) then manufacturer = _GET["manufacturer"] page_params["manufacturer"] = manufacturer manufacturer_filter = '' end local device_type = nil local devtype_filter = "" if(not isEmptyString(_GET["device_type"])) then device_type = tonumber(_GET["device_type"]) page_params["device_type"] = device_type devtype_filter = '' end print [[
]] dofile(dirs.installdir .. "/scripts/lua/inc/footer.lua")