function ioncube_license()
{
    if (function_exists('ioncube_license_properties')) {
        $license = ioncube_license_properties();
        if (isset($license['number'])) {
            define("_LICENSENUMBER", $license['number']['value']);
        }
    }
}
Ejemplo n.º 2
0
 /**
  * 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;
 }
Ejemplo n.º 3
0
 function __construct()
 {
     $this->license = ioncube_license_properties();
     $this->servers = ioncube_licensed_servers();
     $this->fileInfo = ioncube_file_info();
 }