-- -- (C) 2013-15 - ntop.org -- dirs = ntop.getDirs() package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path require "lua_utils" sendHTTPHeader('text/html; charset=iso-8859-1') ntop.dumpFile(dirs.installdir .. "/httpdocs/inc/header.inc") active_page = "about" dofile(dirs.installdir .. "/scripts/lua/inc/menu.lua") if(_GET["ntopng_license"] ~= nil) then ntop.setCache('ntopng.license', _GET["ntopng_license"]) ntop.checkLicense() end info = ntop.getInfo() print("

About "..info["product"].."

") print("\n") print("\n") print("") vers = string.split(info["version.git"], ":") if((vers ~= nil) and (vers[2] ~= nil)) then ntopng_git_url = ""..info["version"].."" else ntopng_git_url = info["version"] end print("\n") print("\n") if((info["OS"] ~= nil) and (info["OS"] ~= "")) then print("\n") end print("\n") print("\n") print("\n") ndpi_ver = info["version.ndpi"] if (ndpi_ver ~= nil) then v = string.split(ndpi_ver, " ") if (v ~= nil) then ndpi_vers = v[1] v_all = string.sub(v[2], 2, -2) vers = string.split(v_all, ":") ndpi_hash = vers[1] ndpi_date = vers[2] print("\n") else print("\n") end end print("\n") print("\n") print("\n") print("\n") print("\n") print("\n") print("\n") if(info["version.geoip"] ~= nil) then print("\n") end print("\n") print("
Copyright"..info["copyright"].."
License") info["ntopng.license"] = ntop.getCache('ntopng.license') if(info["pro.release"] == false) then print("".. info["license"] .."") else print("EULA") end if(info["pro.systemid"] and (info["pro.systemid"] ~= "")) then v = split(info["version"], " ") print(" [ SystemId: ".. info["pro.systemid"] .." ]") print [[
Click on the above URL to generate your professional version license, or
purchase a license at e-shop. If you are no-profit, research or an education
institution please read this.

]] print('

') if(isAdministrator()) then if(info["pro.use_redis_license"] or (info["pro.license"] == "")) then print('\n') print('  
]] else if(info["pro.license"]) then print("License: ".. info["pro.license"] .."\n") end end end end print("
Version"..ntopng_git_url) if(info["pro.release"] == false) then print(" - Community") else print(" - Professional") end if(info["version.embedded_edition"] == true) then print("/Embedded") end print(" Edition
Platform"..info["platform"].." - "..info["bits"] .." bit
Built on"..info["OS"].."
Currently Logged User ".._SESSION["user"].." [") if(isAdministrator()) then print("Administrator") else print("Unprivileged User") end print("]
Uptime "..secondsToTime(info["uptime"]).."
 
nDPI "..ndpi_date.."
nDPI "..ndpi_ver.."
Twitter Bootstrap3.x
Font Awesome4.x
RRDtool"..info["version.rrd"].."
Redis Server"..info["version.redis"].."
Mongoose web server"..info["version.httpd"].."
LuaJIT"..info["version.luajit"].."
ØMQ"..info["version.zmq"].."
GeoIP"..info["version.geoip"]) print [[
 
This product includes GeoLite data created by MaxMind. ]] print("
Data-Driven Documents (d3js)2.9.1 / 3.0
\n") dofile(dirs.installdir .. "/scripts/lua/inc/footer.lua")