Hello MPGH.
~ Information ~
I created a system within VB.Net and PHP to easily manage a login system including
- Login System
- Registration System
- Bansystem
- Activation System
Important: THIS SYSTEM DOES WORK WITH DATABASES THAT DO NOT ALLOW EXTERNAL ACCESS!!!
You can therefore use any free database in the ********* rather than paying for one that allows external access.
The whole system works locally, so it does not require any external access.
It is very easy to setup and use.
~ Files ~
- SBox.dll(library to easily access everything)
- admin.php
- register.php
- conn.php
- login.php
- activate.php
- isbanned.php
- banuser.php
- install.php
- Full dll project
- Example project for usage
Note: Rename the admin.php/banuser.php!
~ Setup ~
1. Upload all .php files to your website using any ftp client(f.e. Filezilla) or your CPanel.
2. Browse the install.php in your webbrowser
www.websitelink.com/install.php
Set your information like this:
If you are done, simply hit "Save"(obvious). If no error appears, everything is fine
The whole database stuff is already done, awesome eh?
~ Library Usage ~
1. Add the library as reference
2. Code sample
[php]Public Class frmMain
Private login As New Loginsystem("https://localhost/login")
Private Sub cmdRegister_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdRegister.Click
If login.ValidateEmail(txtem.Text) Then
Dim str As String = login.Register(txtid.Text, txtpw.Text, txtem.Text)
If str.Trim = "True" Then
MsgBox("Account " + txtid.Text + " successfully created.")
'you should now send an email using the library with the activationlink included
Else
MsgBox(str)
End If
Else
MsgBox("Invalid email address.")
End If
End Sub
Private Sub cmdLogin_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdLogin.Click
If login.Login(txtLid.Text, txtLpw.Text) Then
MsgBox("Success.")
Else
MsgBox("Failed.")
End If
End Sub
End Class
[/php]
~ Function Overview ~
~ Database Overview ~
users - This table contains all users
- ID[INT(11)] - Auto Increment - Primary Key
- Username[VARCHAR(30)]
- Password[VARCHAR(255)]
- Email[VARCHAR(50)]
- IP[VARCHAR(30)]
- HWID[VARCHAR(20)]
- ActivationLink[VARCHAR(50)]
- Activated[VARCHAR(12)]
- Banned[VARCHAR(6)]
~ Requirements ~
- .Net Framework 2.0
- A MySQL database
- A Brain
~ License ~
You may merge it into your program but only with credits.
If you have any further ideas on what can be added into this system, please let me know.
All rights reserved to me.
~ Virusscans ~
VirusTotal
Jotti
Enjoy this
