mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Reworked flashstart categorization support (work in progress)
This commit is contained in:
parent
d7c452f0a3
commit
b9068886a4
25 changed files with 379 additions and 464 deletions
|
|
@ -762,16 +762,12 @@ local host_categories = {
|
|||
-- #################################################################
|
||||
|
||||
function getCategoryIcon(what, cat)
|
||||
if((cat == "") or (cat == nil)) then
|
||||
if((cat == "") or (cat == nil) or (cat == "???")) then
|
||||
return("")
|
||||
elseif(cat == "safe") then
|
||||
return("<A HREF=http://google.com/safebrowsing/diagnostic?site="..what.."&hl=en-us><font color=green><i class=\'fa fa-check\'></i></font></A>")
|
||||
elseif(cat == "malware") then
|
||||
return("<A HREF=http://google.com/safebrowsing/diagnostic?site="..what.."&hl=en-us><font color=red><i class=\'fa fa-ban\'></i></font></A>")
|
||||
elseif(host_categories[cat] ~= nil) then
|
||||
return(host_categories[cat])
|
||||
return(" <span class='label label-info'>"..host_categories[cat].."</span>")
|
||||
else
|
||||
return(cat)
|
||||
return(" <span class='label label-info'>"..cat.."</span>")
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue