PHP_Register


PHP_Register{( licenseOwnerName ; licenseOwnerCompany ; licenseKey )}



Description


Allows you to register the plug-in or get the current registration info.

Use PHP_Register with no parameters to return the current registration info.

The plug-in will function for 30 minutes without being registered. After the 30 minute grace period, attempting to use any function other than PHP_Register, PHP_Version or PHP_VersionAutoUpdate will result in error 100 Plug-in is not registered; 30 minute grace period has expired.


Parameters


licenseOwnerName (optional)
The name of the person, company or organization that owns the license.

licenseOwnerCompany (optional)
The name of the company or organization that owns the license.

licenseKey (optional)
The license key.


Return


Returns 0 when the license is successfully registered or the registration info when called with no parameters.


Errors


100 Plug-in is not registered; 30 minute grace period is active.
30 minute grace period has expired.
101 Invalid registration

 

Example 1 - Register plug-in
PHP_Register ( "Smartpill 3 Trial (Pro)" ; "Smartpill 3 Trial (Pro)" ; "DZLQRW-LNWEMH-OO8HMT-ZZ1E02-FDFFDB-A03301" )
/*
Returns: 0 // No error, plug-in has been successfully registered
*/
Example 2 - Get registration info
PHP_Register
/*
Returns:
Name: Smartpill 3 Trial (Pro)
Company: Smartpill 3 Trial (Pro)
License Type: Standard
User Count: Unlimited
Expiration Date: 07-31-2016
*/
Example 3 - Plug-in is not registered (grace period active)
PHP_Register
/*
Returns: 100 Plug-in is not registered; 30 minute grace period is active.
*/
Example 4 - Plug-in is not registered (grace period expired)
PHP_Register
/*
Returns: 100 Plug-in is not registered; 30 minute grace period has expired.
*/