function ioncube_license() { if (function_exists('ioncube_license_properties')) { $license = ioncube_license_properties(); if (isset($license['number'])) { define("_LICENSENUMBER", $license['number']['value']); } } }
/** * Get license proerties of encoded application. * So, calculate it and stored in local variable of self class if it absent. * * @return array Associative array consisting of license properties. Each value in the associative array retrieved by this API function is itself an array with two values: the license property value itself, and a boolean value signifies whether the property is enforced. The return value of this function is FALSE if the calling file is not encoded or has no license file. */ public function getIoncubeLicenseProperties() { if ($this->isIoncubeEncoded()) { $this->_ioncubeLicenseProperties = ioncube_license_properties(); } return $this->_ioncubeLicenseProperties; }
function __construct() { $this->license = ioncube_license_properties(); $this->servers = ioncube_licensed_servers(); $this->fileInfo = ioncube_file_info(); }