PHP Classes

File: generateSerials.php

Recommend this page to a friend!
  Classes of Payam Khaninejad   License management class   generateSerials.php   Download  
File: generateSerials.php
Role: Example script
Content type: text/plain
Description: This page used to generate serial
Class: License management class
Generate and validate license serial numbers
Author: By
Last change:
Date: 13 years ago
Size: 1,001 bytes
 

Contents

Class file image Download
<?php
/*
=============================================================
Script Name : license management class
Auther : Payam khaninajad
Contact : Progvig@yahoo.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>