MReg System
- Rook Zimbabwe
- Addict
- Posts: 4322
- Joined: Tue Jan 02, 2007 8:16 pm
- Location: Cypress TX
- Contact:
- Andre
- PureBasic Team
- Posts: 2139
- Joined: Fri Apr 25, 2003 6:14 pm
- Location: Germany (Saxony, Deutscheinsiedel)
- Contact:
Now added to the DeveloperTools section on www.PureArea.net too! 

Thanks!Andre wrote:Now added to the DeveloperTools section on www.PureArea.net too!
Also guys, a lot of new features are being worked on right now, like key types (so certain keys could unlock certain features in a program), master keys (which allow users to create a certain number of keys for other computers), and a lot more.
If anyone is still interested, yes I am still working on version 4.0 and a PHP class as well:
Heres a small update to fill everyone in on the PHP class and an example of how it works.
The PHP class allows you to create keys automatically on your website, which could happen directly after a purchase (or download) of your game. You can also create your own applications with it for your website, for example a system to allow customers to edit their information and keys.
In version 4.0, master keys are introduced. If a key is a master key, it can create a certain number of extra keys for more computers. This is useful if you are selling your application or game to, for example, a school and they need multiple keys for their computers and add keys when more computers are bought.
With the PHP Class you can easily program online a system for whoever bought a master key to create and manipulate extra keys. Trust me, it's easier and a lot better than it sounds.
Anyway, here is a quick example of something the MReg System PHP class can do. This example just loads a list of keys for a user and prints it out on the screen.
That was a quick example I created to show you how the MReg System PHP class works. Of course it will contain functions to control every aspect of your MReg System data which I have not yet shown to you 
Stay tuned in for more updates on version 4.0
edit: Also a .pbi file will be released to be used with PureBasic so you will not have to implement the DLL yourself.
Matt
Heres a small update to fill everyone in on the PHP class and an example of how it works.
The PHP class allows you to create keys automatically on your website, which could happen directly after a purchase (or download) of your game. You can also create your own applications with it for your website, for example a system to allow customers to edit their information and keys.
In version 4.0, master keys are introduced. If a key is a master key, it can create a certain number of extra keys for more computers. This is useful if you are selling your application or game to, for example, a school and they need multiple keys for their computers and add keys when more computers are bought.
With the PHP Class you can easily program online a system for whoever bought a master key to create and manipulate extra keys. Trust me, it's easier and a lot better than it sounds.
Anyway, here is a quick example of something the MReg System PHP class can do. This example just loads a list of keys for a user and prints it out on the screen.
Code: Select all
<?php
$MReg = new MRegSystem();
if ($MReg->init("username", "password", "My Game") == false ) {
die("Error: init");
}
$client = $MReg->getClient("John");
$keys = $client->getKeys();
if ($keys == 0) {
echo "no keys";
exit();
}
if ($keys == -1) {
echo "error getting keys";
exit();
}
for ($a=0; $a<count($keys); $a++) {
echo $keys[$a]->getKey()."<br />";
}
?>

Stay tuned in for more updates on version 4.0

edit: Also a .pbi file will be released to be used with PureBasic so you will not have to implement the DLL yourself.
Matt
Re: MReg System
This looks like a handy tool, but the developer has not been on the forum since 2011. Does anybody know if the source has ever been released?