@saintx; in yayınlamış olduğu bir lisanslama sınıfı vardı,
aşağıdaki gibi ancak lisans anahtarı dogru oldugu halde hata veriyor. bu konuda yardımcı olur musunuz?
include('lisans.php');
new checklicense('http://127.0.0.1:80/lisans.txt', 10);
 <?php
    
    class checklicense
    {
        
        protected $cl_license_server;
        protected $cl_ip_address;
        protected $cl_product_key;
        protected $cl_license_array;
        
        /* önbellekleme değişkenleri */
        
        protected $cl_cache_time;
        protected $cl_cache_file;
        
        public function __construct($license_server, $cache_time)
        {
            $this->cl_ip_address        = getenv('HTTP_HOST');
            $this->cl_product_key        = null;
            $this->cl_license_server    = $license_server;
            $this->cl_cache_time        = $cache_time;
            $this->cl_cache_file        = 'cache/'.md5($this->cl_license_server.$this->cl_ip_address).'.txt';
            /* Çalıştırmalar */
            //$this->_check_ip_address();
            $this->_create_product_key();
            if( $this->_is_available_cache() != true )
            {
                $this->_write_cache($this->cl_cache_file, $this->_get_license_file());
                $this->_check_license($this->_read_cache($this->cl_cache_file));
            }
            else
            {
                $this->_check_license($this->_read_cache($this->cl_cache_file));
            }
        }
        
        /* IP Kontrolleri */
        
        protected function _check_ip_address()
        {
            if( ! is_numeric(substr($this->cl_ip_address, 0, 3)) )
            {
                if( substr($this->cl_ip_address, 0, 4) == 'www.' )
                {
                    $this->cl_ip_address = substr($this->cl_ip_address, 4);
                }
            }
        }
        
        /* Ürün anahtarı oluşturma ve kontroller */
        
        protected function _create_product_key()
        {
		$this->cl_product_key = wordwrap(strtoupper(md5(sha1(sha1($this->cl_product_key)))), 4, '-', true); 
		 echo $this->cl_product_key.'<br>';
        
        }
        
        protected function _check_license(array $data)
        {
            if(!in_array($this->cl_product_key, $data) )
            {
                die(getenv('HTTP_HOST').' isimli sitenizin lisansı bulunmamaktadır.');
                exit;
            }
        }
        
        /* Uzak sunucudan dosya okuma işlemleri */
        
        protected function _get_license_file()
        {
            if( function_exists('file') )
            {
                $file = file($this->cl_license_server, FILE_IGNORE_NEW_LINES);
                $data = array();
                foreach($file as $key => $value)
                {
                    $data[$key] = rtrim($value, '\r\n');
                }
                return $data;
            }
        }
        
        /* Önbellekleme Fonksiyonları */
        
        protected function _is_available_cache()
        {
            $this->cl_cache_file = 'cache/'.md5($this->cl_license_server.$this->cl_ip_address).'.txt';
            if( ! file_exists($this->cl_cache_file) ) return false;
            $this->cl_cache_time = $this->cl_cache_time * 60;
            if( time() - filemtime($this->cl_cache_file) > $this->cl_cache_time )
            {
                unlink($this->cl_cache_file);
                return false;
            }
            return true;
        }
        
        protected function _write_cache($path, $data)
        {
            $handler = fopen($path, 'a');
            fwrite($handler, serialize($data));
            fclose($handler);
        }
        
        protected function _read_cache($path)
        {
            $data = unserialize(file_get_contents($path));
            return $data;
        }
    }
    
?>