opt
/
kaspersky
/
kav4fs
/
share
/
wmconsole
/
html
/
proto
/
js
➕ New
📤 Upload
✎ Editing:
data.js
← Back
var isLoadSummary = false; function getServerDate(){ var currentTime = new Date() return currentTime.toLocaleString() } function getConsolidateStatus(){ var status = 2 var status_style = "" var status_str = "" switch (status) { case 2: case STATUS_SERVER_PROTECTED: status_style = "green" status_str = "STATUS_SERVER_PROTECTED" break; case STATUS_SERVER_NO_PROTECTED: status_style = "red" status_str = "STATUS_SERVER_NO_PROTECTED" break; } $("#consolidateStatus_bg").get(0).className = status_style setText("consolidateStatus_text",Resource[status_str]) //setTimeout("getConsolidateStatus()", 5000); } function StatusRTP(status_rtp,count_files,count_threats){ this.status_rtp = status_rtp this.count_files = count_files this.count_threats = count_threats } function getStatusRTP(){ testStatusRTP = new StatusRTP( Math.floor(Math.random()*9), testStatusRTP.count_files+5, testStatusRTP.count_threats+5) return testStatusRTP } function StatusUpdate(status_update,last_update,data_bases){ this.status_update = status_update // from Update_Enum this.last_update = last_update // long - server time //this.ago_last_update = last_ago // int hours this.data_bases = data_bases // long //this.ago_data_bases = data_bases // } function getStatusUpdate(){ var m = new Date() return new StatusUpdate(Math.floor(Math.random()*3),m.getTime(),m.getTime()) } function StatusLicence(status_licence,expires,days){ this.status_licence = status_licence this.expires = expires this.days = days } function getStatusLicense(){ var m = new Date(9,5,25) m.setYear(2009) return new StatusLicence(Math.floor(Math.random()*3),m.getTime(),140) } function StatusQuarantine(status_quarantine,count_objects,count_new,size){ this.status_quarantine = status_quarantine this.count_objects = count_objects this.count_new = count_new this.size = size } function getStatusQuarantine(){ return new StatusQuarantine(Math.floor(Math.random()*3),25,Math.floor(Math.random()*4),368) } function TaskList(type,list_task,list_controlTasks){ this.type = type this.list_task = list_task this.list_controlTasks = list_controlTasks } function Task(name,stat,schedule){ this.name = name this.stat = stat this.schedule = schedule } function Stat(status,info,count_check,count_infected,count_susp){ this.status = status this.info = info // % | date this.count_check = count_check this.count_infected = count_infected this.count_susp = count_susp } function Schedule(type){ this.type = type } function getTasks(type){ switch (type){ case TASK_RTP: return new TaskList(TASK_RTP, [ new Task("RTP",new Stat(STATUS_RTP_STARTED,10,0,0,0),new Schedule(false)) ], [0,1,2,3]) break; case TASK_ODS: return new TaskList(TASK_ODS, [ new Task("Check All",new Stat(STATUS_RTP_STARTED,50,120,15,1),new Schedule(true)), new Task("Check 1",new Stat(STATUS_RTP_STOPPING,74,120,15,1),new Schedule(true)), new Task("Check Samba",new Stat(STATUS_RTP_STOPPED,"29.09.2008 12:23:34",120,15,1),new Schedule(true)) ], [0,1,2,3]) break; case TASK_UPDATE: return new TaskList(TASK_UPDATE, [ new Task("Internet",new Stat(STATUS_RTP_STARTING,20),new Schedule(true)), ], [0,1,2,3]) break; } } var updateSettings = ic.create_UpdateSettings(); /* { "CommonSettings": { "ConnectionTimeout":10, "CustomSources":[], "PreferredCountry":"default", "ProxyAuthPassword":"", "ProxyAuthType":0, "ProxyAuthUser":"", "ProxyBypassLocalAddresses":true, "ProxyPort":3128, "ProxyServer":"", "SourceType":2, "UseFtpPassiveMode":true, "UseKLServersWhenUnavailable":true, "UseProxyForCustomSources":false, "UseProxyForKLServers":false, "__VersionInfo":"1 0" }, "RetranslateUpdatesSettings": { "RetranslationComponents":[], "RetranslationFolder":"", "__VersionInfo":"1 0" }, "UpdateComponentsSettings": { "Action":2, "__VersionInfo":"1 0" }, "UpdateType":1, "__VersionInfo":"1 0" } */ updateSettings.UpdateType = UPDATE_TYPE_ALL_BASES updateSettings.CommonSettings ={ SourceType: UPDATE_SOURCE_TYPE_CUSTOM, CustomSources: [ {url:"url1",enable:true},{url:"url2",enable:false}], UseKLServersWhenUnavailable : true, UseProxyForKLServers: true, UseProxyForCustomSources: true, PreferredCountry : "preferred_country", ProxyServer :"proxy_server", ProxyPort : 25, ProxyBypassLocalAddresses : true, ProxyAuthType : PROXY_AUTH_TYPE_NTLM_WITH_CREDENIALS, ProxyAuthUser : "user", ProxyAuthPassword : "password", UseFtpPassiveMode : true, ConnectionTimeout : 5 } updateSettings.RetranslateUpdatesSettings = { RetranslationFolder : "retranslation_folder", RetranslationComponents : ["retranslation_components1","retranslation_components2"] }
💾 Save Changes
Cancel
📤 Upload File
×
Select File
Upload
Cancel
➕ Create New
×
Type
📄 File
📁 Folder
Name
Create
Cancel
✎ Rename Item
×
Current Name
New Name
Rename
Cancel
🔐 Change Permissions
×
Target File
Permission (e.g., 0755, 0644)
0755
0644
0777
Apply
Cancel