This is a release brought to you by the
Official MPGH Programing Development & Design Team
Coded by: Kevin(Blubb1337)
~ Information ~
I created a system within VB.Net and PHP to easily manage a serial.
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 ~
- Serials.dll(library to easily access everything)
- activate.php
- insert.php
- install.php
- login.php
- activate.php
- Full dll project
From now on, my system will contain configs.
[highlight="cpp"]<?php
//this is the config file
//feel free to edit the following variables
#~~~~~~~~~~~~~~~~~~~~~
#[General Information]
#~~~~~~~~~~~~~~~~~~~~~
//0 = False/No
//1 = True/Yes
//Table "serials"
/*
ID
Serial
TimesUsed
HWID
*/
#~~~~~~~~~
#[Credits]
#~~~~~~~~~
/*
This system has been brought to you by the OFFICIAL MPGH DEVELOPER TEAM
Coded by Blubb1337
*/
#~~~~~~~~~~~~~~~~~~
#[GENERAL SETTINGS]
#~~~~~~~~~~~~~~~~~~
//enter the amount of users per serial
//if you set it to one, the serial will be "blocked" after being entered
$UserPerSerial = 1;
//this will allow the user that activated the serial to use the serial again
//i recommend setting this to 1(yes) since the user may lose his key
$AllowReusing = 1;
//this is the number of serials that'll be added to the database when executing insert.php
$NumberOfSerials = 100;
#~~~~~~~~~~~~~~~~~
#[SERIAL SETTINGS]
#~~~~~~~~~~~~~~~~~
//set the length of the serial
$SerialLength = 16;
//set the subkey length
//the length should be devideable by the subkeylength
$SubKeyLength = 4;
//delimiter for subkey
//set subkeylength to zero if you don't want a delimiter
$SubKeyDelimiter = "-";
//example resusult of serial with the above settings:
//AKR4-RQ34-42IP
/

may also set all allowed characters rather than setting the things above
$AllowedCharacters = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
#~~~~~
#[FAQ]
#~~~~~
/*
Q: I'm getting some weird error on installation that I cannot edit the conn.php.
A: Open up the conn.php, edit the host,username and password. Save it and you're done.
Q: I'm getting "Notice: Uninitialized string offset: [...]" when trying to insert new serials.
A: Just do not mind it, if the last line says "Sucessfully inserted serials." everything is fine.
*/
?>[/highlight]
~ 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
[highlight="vb"]Public Class frmMain
Private serial As New SerialSystem("http://localhost/serial")
Private Sub cmdRegister_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdRegister.Click
If serial.activate(Textbox1.text) Then
Activated()
Else
MsgBox("Invalid serial.")
End If
End Sub
End Class
[/highlight]
~ Function Overview ~
~ Database Overview ~
serials - This table contains all serials
- ID[INT(11)] - Auto Increment - Primary Key
- Serial[VARCHAR(30)]
- TimesUsed[INT(3)]
- HWID[VARCHAR(100)]
~ Requirements ~
- .Net Framework 2.0
- A MySQL database
- A Brain
~ Virusscans ~
VirusTotal
Jotti
Enjoy this
