Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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 62881822, 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.100 Plug-in is not registered; 30
30 minute grace period has expired.
101 Invalid registration

 

Code Block
languagephp
themeEclipse
titleExample 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
*/


Code Block
languagephp
themeEclipse
titleExample 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
*/


Code Block
themeEclipse
titleExample 3 - Plug-in is not registered (grace period active)
PHP_Register
/*
Returns: 100 Plug-in is not registered; 30 minute grace period is active.
*/


Code Block
languagephp
themeEclipse
titleExample 4 - Plug-in is not registered (grace period expired)
PHP_Register
/*
Returns: 100 Plug-in is not registered; 30 minute grace period has expired.
*/