Added logic to report dropbox sharing information

This commit is contained in:
Luca 2019-02-26 22:16:28 +01:00
parent 486f7af810
commit b775657f59
8 changed files with 108 additions and 25 deletions

View file

@ -229,6 +229,10 @@ for _key, _value in pairsByKeys(vals, funct) do
if value["childSafe"] then column_ip = column_ip .. getSafeChildIcon() end
local host = interface.getHostInfo(hosts_stats[key].ip, hosts_stats[key].vlan)
if((host ~= nil) and (host.has_dropbox_shares == true)) then
column_ip = column_ip .."<i class='fa fa-dropbox'></i>"
end
if((host ~= nil) and (host.country ~= nil) and (host.country ~= "")) then
column_ip = column_ip .."&nbsp;<a href='".. ntop.getHttpPrefix() .. "/lua/hosts_stats.lua?country="..host.country.."'><img src='".. ntop.getHttpPrefix() .. "/img/blank.gif' class='flag flag-".. string.lower(host.country) .."'></a> "
end