function numDeclension(num)
{
return (num == 1) ? ("day") : ("" + num + " days");
}
function setLocalContent(args)
{
if(args.length < 1)
return;
var reason = args[0];
var text = "";
if(reason == "loading")
text = " Loading...";
else if(reason == "wmuf")
{
text = "This URL is classified as suspicious";
changeDMeter("dm_3.gif");
}
else if(reason == "aphish")
{
text = "This URL is classified as phishing";
changeDMeter("dm_3.gif");
}
else if(reason == "online"){
if(args[1] == 255)
text = "No information available";
else {
if(args[12] == -1 && args [13] != undefined && args [14] != undefined)
text = "From " + args [13] + " to " + args [14] + " at this address there were detected:";
else if(args [12] >= 0)
text = "During the last " + numDeclension(args[12]) + " at this address there were detected:";
text = text + "
URLs to suspicious hosts: | " + args[5] + " |
---|---|
Malware download attempts: | " + args[6] + " |
Riskware download attempts: | " + args[7] + " |
Files containing malware: | " + args[8] + " |
Files containing riskware: | " + args[9] + " |