this.uinBox.Clear_传奇私服
来源:百度文库 编辑:神马文学网 时间:2024/05/02 00:05:59
this.uinBox.Clear
时间:2010-09-30 10:33来源:未知 作者:admin 点击:次private void submit_Click(object sender, EventArgs e) { this.setEnabled(false); Regex _regex=new Regex([0-9]{5,10}); if (this.uinBox.Text.Length == 0) { this.showMessage(QQ号码不能为空!); }else if(this.passBox.Text.Length==0){ this.showMess private void submit_Click(object sender, EventArgs e){
this.setEnabled(false);
Regex _regex=new Regex("[0-9]{5,10}");
if (this.uinBox.Text.Length == 0) {
this.showMessage("QQ号码不能为空!");
}else if(this.passBox.Text.Length==0){
this.showMessage("QQ稀码没有能为空!");
}
else if (this.checkTextBox.Text.Length == 0)
{
this.showMessage("考证码没有能为空!");
}else if(!_regex.IsMatch(this.uinBox.Text)){
this.showMessage("QQ号码格局没有准确!");
}else
{
bool _temp = false;
for (int i = 0; i < this.zoneForm.loginView.Rows.Count; i++)
{
if(this.zoneForm.loginView.Rows.Cells["uin"].Value.Equals(this.uinBox.Text)){
_temp = true;
break;
}
}
if(_temp){
this.uinBox.Clear();
this.passBox.Clear();
this.checkTextBox.Clear();
this.setEnabled(true);
return;
}
this.Text = "正正在登陆...";
Uri _posturi = new Uri("
HttpWebRequest _httprequest = null;
HttpWebResponse _httpresponse = null;
try
{
_httprequest =(HttpWebRequest)WebRequest.Create(_posturi);
_httprequest.AllowAutoRedirect = false;
_httprequest.Accept = "*/*";
_httprequest.Headers["Accept-Language"] = "zh-cn";
_httprequest.ContentType = "application/x-www-form-urlencoded";
_httprequest.Headers["Accept-Encoding"] = "gzip,选择你爱的人, deflate";
string _ver = this.checkTextBox.Text;
string _postinfo = "u1=http%3A%2F%2Fqzone.qq.com&fp=loginerroralert&u=" + this.uinBox.Text +
"&p=" + this.passBox.Text + "&verifycode="+_ver;
byte[] _infobytes = Encoding.GetEncoding("GB2312").GetBytes(_postinfo);
_httprequest.ContentLength =_infobytes.LongLength;
_httprequest.Headers["Cache-Control"] = "no-cache";
_httprequest.CookieContainer =new CookieContainer();
_httprequest.CookieContainer.SetCookies(_posturi,this.cookIe);
_httprequest.Method = "POST";
_httprequest.Referer = "
_httprequest.UserAgent = "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; Mozilla/4.0(Compatible Mozilla/4.0(Compatible-EmbeddedWB 14.59 EmbeddedWB- 14.59 from: ; .NET CLR 1.1.4322; .NET CLR 2.0.50727)";
Stream _stream = _httprequest.GetRequestStream();
_stream.Write(_infobytes,0,_infobytes.Length);
_stream.Close();
_httpresponse = (HttpWebResponse)_httprequest.GetResponse();
StreamReader _httpreader = new StreamReader(_httpresponse.GetResponseStream(),热血江湖sf,Encoding.GetEncoding("GB2312"));
if (this.checkUin(_httpreader.ReadToEnd())) {
this.cookIe = _httpresponse.Headers["Set-Cookie"];
_posturi = new Uri("
_httprequest = (HttpWebRequest)WebRequest.Create(_posturi);
_httprequest.CookieContainer = new CookieContainer();
_httprequest.CookieContainer.SetCookies(_posturi, 手机莫名其妙定置了无用短信, this.cookIe!=null?this.cookIe:"");
_httpresponse = (HttpWebResponse)_httprequest.GetResponse();
this.cookIe = _httpresponse.Headers["Set-Cookie"];
string _datetime = DateTime.Now.ToString();
Xml.XmlClass _xml = new Qzone.Xml.XmlClass();
if (!File.Exists(_xml.xmlPath))
{
_xml.CreateXml();
}
if (_xml.isUinText(this.uinBox.Text))
{
_xml.UpDateCookie(this.uinBox.Text,this.cookIe,_datetime);
}
else {
_xml.CreateLoginList(this.uinBox.Text,this.cookIe,_datetime);
}
this.zoneForm.loginView.Rows.Add(new object[] { this.uinBox.Text, "已使用", _datetime });
_httpreader.Close();
_httpreader.Dispose();
this.uinBox.Clear();
this.passBox.Clear();
this.checkTextBox.Clear();
}
}
catch (WebException ex)
{
RunError _error = new RunError();
_error.WriteError("Login:"+ex.Message);
}
if(_httpresponse!=null){
_httpresponse.Close();
}
if(_httprequest!=null){
_httprequest.Abort();
}
}
this.setEnabled(true);
}(责任编辑:admin)
this.uinBox.Clear_传奇私服
传奇私服广告总代理
This strange
this指针
this指针
This指针
好好珍惜现在1.76传奇私服一切-1.76传奇私服发布网
gmail-* About this blog
Good spread, this
【this is love】[组图]
"Tear Down This Wall"
this指针2
THIS WAY UP
this指针1
this is a test.
CBSNews.com: Print This Story
popular single item this year
do this kind of girl
Geological disasters spike this year
One Republic: All This Time
One Republic: All This Timell
THIS TIME I WANT SAY
谈谈 Java 中 this 的使用
JavaScript中this关键字使用方法详解