
Components.utils.import("resource://avg/Preferences.js");var EXPORTED_SYMBOLS=["Domains_avg","LogAddonMsgs_avg"];var Domains_avg={ExtensionName:"avg",PartnerID:"avg",ThirdPartyPartner:"avg",IsInstall:false,BaseDomain:"avg.com",SubDomain:"toolbar",DisplayName:"AVG Security Toolbar",InstallDirPath:null,ToolbarURLSMandatoryparams:{"ProductID":"pid","SearchGroup":"sg","ClientID":"cid","MachineID":"mid","DistributionSource":"ds","CoBrand":"coid","Version":"v","Language":"lang","InstallDate":"d","Profile":"pr"},STATSURLSMandatoryparams:{"ProductID":"pid","SearchGroup":"sg","ClientID":"ClientID","MachineID":"MachineID","DistributionSource":"DistributionSource","CoBrand":"CoBrand","Version":"Version","Language":"Language","InstallDate":"InstallDate","Profile":"Profile"},PreferencesSubRoots:{"Install":"install","User":"userPreferences"},IE_REG_USER_CHOICES_PATH:"SOFTWARE\\AVG Secure Search",FF_REG_USER_CONFIGURATION_PATH:"SOFTWARE\\AVG Secure Search\\FF",OTHER_USER:"SOFTWARE\\AVG Secure Search\\Initialize\\General",IE_REG_KEYS:{"PID":"pid","SG":"sg","HP":"hp","SP":"sp","NT":"NT","NT_ACTIVE":"NT_ACTIVE","REWARDS":"RewardsApproved","FinishURL":"FinishURL","Profile":"Profile","MachineID":"MachineID","MachineIDEnc":"MachineIDEnc","ClientID":"cid","LOCAlE":"lang","Version":"v","DistributionSource":"DistributionSource","CoBrand":"CoBrand","InstallDate":"InstallDate","TrackingCode":"TrackingCode","LPCK":"lpck","EnableFFCampaign":"enable_ff_campaign","IgearedInstalled":"_igeared_was_installed_tt","IgearedMigrationCompleteState":"_igeared_was_installed_tbstate_tt","LastInstallationMode":"LastInstallation","OTHER_USER":"OTHER_USER","INSTALL_USER":"InstallUser"},IE_HOMEPAGE:"SOFTWARE\\Microsoft\\Internet Explorer\\Main",CLIENT_JS_HTTP_SRC:"",CLIENT_JS_HTTPS_SRC:"",LoadedPreferenceKeys:{},dumpLogDataEnabled:true,dumpLogData:""};var _LogEnabled_avg=null;var LogAddonMsgs_avg={DumpToLog_avg:function(msg){if(_LogEnabled_avg==null)_LogEnabled_avg=Preferences.get(Domains_avg.ExtensionName+".install.enableLog",false);if(!_LogEnabled_avg)return;var aConsoleService=Components.classes["@mozilla.org/consoleservice;1"].getService(Components.interfaces.nsIConsoleService);aConsoleService.logStringMessage(msg);},CreateDumpLogString:function(data){Domains_avg.dumpLogData+=_Utils_avg.ConvertJSDateToSQLDate()+"|"+data+"|\r\n";}};var _Utils_avg={ConvertJSDateToSQLDate:function(){var d=new Date();var m=d.getMonth();m=m+1;if(m==12)m="01";else{if(m<10)m=("0"+m).toString();}
var hh,mm,ss
hh=d.getHours();mm=d.getMinutes();ss=d.getSeconds();hh=hh<10?"0"+hh:hh;mm=mm<10?"0"+mm:mm;ss=ss<10?"0"+ss:ss;var sqlDate=d.getFullYear()+'-'+m+'-'+d.getDate()+' '+hh+':'+mm+':'+ss;return sqlDate;}};