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_100.gif");
}
else if(reason == "aphish")
{
text = "This URL is classified as phishing";
changeDMeter("dm_100.gif");
}
else if(reason == "online"){
if(args[1] == 255)
text = "No information available";
else {
text = "During the last " + numDeclension(args[12]) + " at this address there were detected:
| 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] + " |