Download User Manual

Transcript
PHPCipher User Manual
Page 12
5.3 License support during runtime
Three special variables are used in the PHPCipher’s licensing system to
give you absolute control over your software.
Special Variables
$phpCipherLicense
True if license is:
Valid and non-expired and for the correct domain
False if license is:
Invalid or expired or for the wrong domain
$phpCipherData
Contains the License Data if valid license was found
Is not set if no valid license was found
$phpCipherExpiry
Contains the Expiry Date if valid license was found
Is not set if no valid license was found
A valid license is one that is
1. Generated with the same account as the code
2. Has the same code ID
5.4 Sample Code
Code to detect if license is invalid, expired, or for wrong domain:
if ($phpCipherLicense==false){
//Enter invalid or expired license code here
}
Code to print out number of days to expiry
// Prints the number of days to expiry
print round((($phpCipherExpiry - time())/(60*60*24)),0);
PHPCipher – Absolute Security
http://www.phpcipher.com/