Advertisement
Guest User

Untitled

a guest
Mar 19th, 2017
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.29 KB | None | 0 0
  1. using Microsoft.VisualBasic;
  2. using System;
  3. using System.Collections;
  4. using System.Collections.Generic;
  5. using System.Data;
  6. using System.Diagnostics;
  7. using System.Net;
  8. public class Login
  9. {
  10.     System.Net.WebClient wClient = new System.Net.WebClient();
  11.  
  12.     private void FlatButton1_Click(object sender, EventArgs e)
  13.     {
  14.         if (FlatTextBox1.Text == ("")) {
  15.             MessageBox.Show("Please Enter A Username");
  16.  
  17.  
  18.         } else {
  19.             if (FlatTextBox2.Text == ("")) {
  20.                 MessageBox.Show("Please Enter A Password");
  21.  
  22.  
  23.             } else {
  24.                 string result = wClient.DownloadString("https://ex0x.esy.es/Spamriosalogins/logins?user=" + FlatTextBox1.Text + "&pass=" + FlatTextBox2.Text);
  25.  
  26.                 if (result == "0") {
  27.                     MessageBox.Show("Please Enter A Username");
  28.  
  29.  
  30.                 } else if (result == "1") {
  31.                     MessageBox.Show("Please Enter A Password");
  32.  
  33.  
  34.                 } else if (result == "2") {
  35.                     MessageBox.Show("Username Isin't Valid");
  36.  
  37.                 } else if (result == "3") {
  38.                     this.Hide();
  39.                     Form1.Show();
  40.  
  41.  
  42.                 } else if (result == "4") {
  43.                     MessageBox.Show("Invalid Password");
  44.  
  45.                 } else {
  46.                     MessageBox.Show("Login Failed, Please Try Again Or Contact AriosaVenom");
  47.                 }
  48.  
  49.             }
  50.         }
  51.     }
  52.  
  53.  
  54.     private void Login_Load(object sender, EventArgs e)
  55.     {
  56.     }
  57.     public Login()
  58.     {
  59.         Load += Login_Load;
  60.     }
  61. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement