Hello! (:
Must have VB6 on your comp
Since all of you know I am a Visual Basic, C#, PHP coder. I have made this little script which allows you to add, remove and edit licenses.
The VB6 reads the website, url path must be hidden also VB6 cannot be decompiled and you can edit the licenses using MySQL database, but make sure you make a config.ini for a user to add their license.
Please excuse my poor PHP :D
index.php
PHP Code:
<?php
mysqlConn();
ConfirmKey($_GET['key'], $_GET['name']);
//---
// Start the functions
//---
function mysqlConn()
{
$q = mysql_connect("root", "username", "password");
$q = mysql_select_db("database");
return $q;
}
function ConfirmKey($key, $name)
{
$q = mysql_query("SELECT * FROM `keys` WHERE `key`='".$key."'") or die (mysql_error());
$q = mysql_fetch_array($q);
if(isset($key) == $q["key"] || isset($name) == $q["name"])
{
echo "License is correct!";
}
else if(isset($key) != $q["key"] || isset($name) != $q["name"])
{
echo "License is incorrect";
}
else if($key == "" || $name == "")
{
echo "License is incorrect";
}
else if(!isset($key) || !isset($name))
{
echo "License is incorrect";
}
else
{
echo "License is incorrect";
}
}
?>
database
Code:
CREATE TABLE IF NOT EXISTS `keys` (
`key` varchar(111) NOT NULL,
`name` varchar(111) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
Download the source and find this...
Code:
Text = Inet1.OpenURL("http://localhost/license/index.php?key=" & LicenseKey & "&name=" & LicenseName) 'Opens the url source
Edit "http://localhost/license/index.php" to the website where you have installed the PHP file.
config.ini
Code:
[license]
name=
key=