Inuyasha1782
Nov 11th, 2005, 01:54 AM
I think you could make something interesting out of this if you could simulate the same process of creating the key via PHP. Then simply you could guide the user to a site where they would have to do what ever they needed to, for instance pay for the program, then once that has completed the key to unlock it would be generated on the next page.
*Edit*
<?php
function calculate_key($serial)
{
return sprintf('%09d', substr(3456 * sqrt($serial / 5), 0, 9));
}
?>
<?php
$mykey = calculate_key($_POST["buffserial"]);
print $mykey;
?>
Coming from:
<HTML>
<Head>
<Title>Activate My Program!</Title>
</Head>
<Body>
<center><H1>Activate My Program!</H1><br><br><br>
<form action="/GetKey.php" method=post>
<b>What is your HardDrive Serial?</b><br><br>
<input type=text name=buffserial><br><br>
<input type=submit value=Next>
</form>
</Body>
</HTML>
Just an idea :)
*Edit*
<?php
function calculate_key($serial)
{
return sprintf('%09d', substr(3456 * sqrt($serial / 5), 0, 9));
}
?>
<?php
$mykey = calculate_key($_POST["buffserial"]);
print $mykey;
?>
Coming from:
<HTML>
<Head>
<Title>Activate My Program!</Title>
</Head>
<Body>
<center><H1>Activate My Program!</H1><br><br><br>
<form action="/GetKey.php" method=post>
<b>What is your HardDrive Serial?</b><br><br>
<input type=text name=buffserial><br><br>
<input type=submit value=Next>
</form>
</Body>
</HTML>
Just an idea :)