Location: PHPKode > scripts > License management script > generateSerials.php
<?php
/*
=============================================================
Script Name                : license management class
Auther                    : Payam khaninajad
Contact                   : hide@address.com
Follow me on twitter      : http://twitter.com/khaninajad
Location                  : Iran-Azarbayjan 
Year                      : 2010-12-19
Version                   : 1.0
=============================================================
This page used to generate serial 
*/
require_once("licence.inc.php");
$mylicence=new licence;
if(isset($_POST['num'])) 
{
$num=$_POST['num'];
$serial=$mylicence->validate_my_licence_for_test($num);
echo "Username: ".$num."<br/>";
echo "Domain is: ".$mylicence->get_host_name()."<br/>";
echo "IP Address: ".$mylicence->get_ip_address()."<br/>";
echo "Your Serial is :".$serial;
}
?>
<p>Generate Serial for This Domain</p>
<form method="post">
ID/User ID : <input type="text" name="num" />
<input type="submit" />
</form>
Return current item: License management script