Results 1 to 15 of 27

Threaded View

  1. #1
    CoderNever's Avatar
    Join Date
    Feb 2009
    Gender
    female
    Location
    https://mpgh.net MPGHCash: $700,458,011
    Posts
    1,198
    Reputation
    131
    Thanks
    2,236
    My Mood
    Buzzed

    [TUT][C&P] Making a Login System the Easiest Way

    Please Note : This is not
    Code:
    Textbox1.Text = "MYAWESOMEPASS" : THEN : Msgbox("Password Accepted")
    ..This is a System used where you can register members..

    Tutorial Length : 2 Minutes (All you have to do is copy and paste lol xD)
    Tutorial Goal : To Create a login system
    Tutorial Difficulty : .1/10

    1. > Add 2 Textboxes one for the username one for the password...Label them however you want..
    2. > Add 1 Button (This one is to click when you want to Login)
    3. > Copy and Paste this code to your form assuming its named Form1
    Code:
    Public Class Form1
        Dim Accepted = 2
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
            On Error GoTo ERRORCODE1
    Dim WebCache As String
            Dim Usernameconfig
            Dim Result
            Usernameconfig = TextBox1.Text.Replace(" ", "%20")
            WebCache = "https://example.com/users/" + Usernameconfig + ".txt"
            Dim request As System.Net.HttpWebRequest = System.Net.HttpWebRequest.Create(WebCache)
            Dim response As System.Net.HttpWebResponse = request.GetResponse()
            Dim sr As System.IO.StreamReader = New System.IO.StreamReader(response.GetResponseStream(), System.Text.Encoding.GetEncoding("windows-1252"))
            Result = sr.ReadToEnd()
            If TextBox2.Text = Result Then
                Call AcceptedSub()
                Accepted = 1
            End If
    ERRORCODE1: If Accepted = 1 Then : Else : MsgBox("Invalid Username or Password") : End If
    Accepted = 2
        End Sub
        Private Sub AcceptedSub()
            'MsgBox("Accepted")
    ' Place the code here what ever you want it to do when it Accepts you.
        End Sub
    End Class
    4. > Replace
    Code:
    https://example.com/users/
    with your website directory and make sure you have a special directory for the users
    5. > Add what ever you want it to do when it accepts a user in
    Code:
    Private Sub AcceptedSub()
    6. > Your done!

    How to make a User!

    1. > Go to your web Directory and then your user's folder
    2. > Make a .txt file named what ever you want the user's name to be
    3. > Inside the text file enter there desired password.


    Note : I realize this might not be the best way...but it is the easiest that I know of, and If I have time Ill update the Tut with a basic encrypter to
    improve security
    Note : The Username and Password is CASE sensitive

  2. The Following 9 Users Say Thank You to CoderNever For This Useful Post:

    D e a t h h a u n t S (11-24-2009),Houston (11-24-2009),iWAFFLE (11-24-2009),Pixie (11-24-2009),prowordz (08-23-2012),Sketchy (06-03-2011),XGelite (11-24-2009),Zoom (11-28-2009),___x][GooD. (01-19-2011)

Similar Threads

  1. [Help] Whats The Easiest Way To Make Gcoin?
    By Gcoiner in forum Alliance of Valiant Arms (AVA) Discussions
    Replies: 0
    Last Post: 01-30-2011, 08:18 PM
  2. [Request] is there a tut on how to make login ui?
    By mikez29 in forum CrossFire Mods & Rez Modding
    Replies: 4
    Last Post: 03-10-2010, 01:25 AM
  3. *Tut* how to make a login system
    By u1111u in forum Programming Tutorials
    Replies: 13
    Last Post: 12-04-2009, 12:20 AM
  4. How Would I Use MySql To Make A Login System In VB 2008?
    By Ragehax in forum Visual Basic Programming
    Replies: 5
    Last Post: 11-21-2009, 03:09 PM
  5. [TUT] How i can make a Japanse Warrock Account easily
    By soad56 in forum WarRock Korea Hacks
    Replies: 34
    Last Post: 06-17-2008, 01:17 AM

Tags for this Thread