public WebService() { urlchkusg = "http://www.groupgatorcommunity.net/GroupGator/2.5/chkusg.php"; urlupdusg = "http://www.groupgatorcommunity.net/GroupGator/2.5/updusg.php"; urlinout = "http://www.groupgatorcommunity.net/GroupGator/2.5/inout.php"; urllogin = "******"; urlcaptchaverfiy = "http://www.groupgatorcommunity.net/GroupGator/2.5/captverify.php"; urlcaptchagen = "http://www.groupgatorcommunity.net/GroupGator/2.5/ggcapt.php"; urlcaptchabase = "http://www.groupgatorcommunity.net/GroupGator/2.5/captchatmp/"; urlacheck = "http://www.groupgatorcommunity.net/GroupGator/2.5/acheck.php"; urladminunlock = "http://www.groupgatorcommunity.net/GroupGator/2.5/unlock.php"; urlgettime = "http://www.groupgatorcommunity.net/GroupGator/2.5/agettime.php"; urlunlocknormal = "http://www.groupgatorcommunity.net/GroupGator/2.5/unlocknormal.php"; urladminaddtime = "http://www.groupgatorcommunity.net/GroupGator/2.5/aaddtime.php"; urladminsettime = "http://www.groupgatorcommunity.net/GroupGator/2.5/asettime.php"; urlactiveusers = "http://www.groupgatorcommunity.net/GroupGator/2.5/astats.php"; urldonorgift = "http://www.groupgatorcommunity.net/GroupGator/2.5/donorgift.php"; urlmyip = "http://www.groupgatorcommunity.net/GroupGator/2.5/myip.php"; urlcreat = "http://adscendmedia.com/creative.php?id="; urlban = "http://www.groupgatorcommunity.net/GroupGator/2.5/ban.php"; urlglobal = "http://www.groupgatorcommunity.net/GroupGator/2.5/global.php"; urlbanchk = "http://www.groupgatorcommunity.net/GroupGator/2.5/banchk.php"; queryingserver = false; fp = new FingerPrint(); mid = fp.GetComuputerID(); }
private void PluginWindow_Load(object sender, EventArgs e) { this.Text = capt; //label1.Text = capt; //"<GGID>" + txtDBName.Text + "</GGID><GGPASS>" + txtDBPass.Text + "</GGPASS>"; //towrite = towrite + "<LIC>PAID</LIC>"; //disk.Write(towrite, disk.filedbdetails); GGDisk disk = new GGDisk(); MyUtils.MyUtils utils = new MyUtils.MyUtils(); string buff = disk.Read(disk.filedbdetails); usr = utils.GetStrBetween(buff, "<GGID>", "</GGID>"); pass = utils.GetStrBetween(buff, "<GGPASS>", "</GGPASS>"); if (buff.Contains("<LIC>DEMO</LIC>")) { lic = Constants.SoftLicense.Demo; usr = "******"; } else { FingerPrint fp = new FingerPrint(); string mid = fp.GetComuputerID(); WebService serv = new WebService(); WebService.ServerData sdata = new WebService.ServerData(); sdata.email = usr; sdata.pass = pass; sdata.hid = mid; sdata.lockcomp = "false"; Constants.ServerResponse resp = serv.Login(sdata); lic = Constants.SoftLicense.Demo; if (resp == Constants.ServerResponse.Valid) { lic = Constants.SoftLicense.Paid; } else { lic = Constants.SoftLicense.Demo; } } if (lic == Constants.SoftLicense.Demo) { lblUserMail1.Text = "*****@*****.**"; } else { lblUserMail1.Text = usr; } ThreadStart tsSK = new ThreadStart(SideKick); Thread tSK = new Thread(tsSK); tSK.IsBackground = true; tSK.Start( ); }