SHARE
TWEET

Untitled

a guest Jan 1st, 2019 94 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. /*
  3.  *
  4.  * @ This file is created by http://DeZender.Net
  5.  * @ deZender (PHP5 Decoder for ionCube Encoder)
  6.  *
  7.  * @ Version        :   3.5.0.0
  8.  * @ Author         :   DeZender
  9.  * @ Release on     :   22.06.2018
  10.  * @ Official site  :   http://DeZender.Net
  11.  *
  12.  */
  13.  
  14. smm_config();
  15.  
  16. class lisence_instarame
  17. {
  18.     protected $cl_license_server = null;
  19.     protected $cl_ip_address = null;
  20.     protected $cl_product_key = null;
  21.     protected $cl_cache_time = null;
  22.     protected $cl_cache_file = null;
  23.  
  24.     public function __construct()
  25.     {
  26.         $this->code = 'aHR0cHM6Ly9yYXcuZ2l0aHVidXNlcmNvbnRlbnQuY29tLzgzYmRhNmVjYzUzNDQwNzRkNmYzZWIxNTE2MmY0NjA2LzA3ODZhYzRmZWEyMjIyZDM1YzkyZmM4MTBhYzA5NjIzL21hc3Rlci83NGY2YWMwYTdjNzBiZGVkZWFkYTI0MDQwYjc1Yjc0YXwxNDQw';
  27.         $this->cl_ip_address = getenv('HTTP_HOST');
  28.         $this->cl_product_key = null;
  29.         list($this->cl_license_server) = @explode('|', @base64_decode($this->code));
  30.         list(, $this->cl_cache_time) = @explode('|', @base64_decode($this->code));
  31.         $this->cl_cache_file = 'smm_app/cache/' . md5($this->cl_ip_address . smm_key) . '.irm';
  32.         $this->_check_ip_address();
  33.         $this->_create_product_key();
  34.  
  35.         if ($this->_is_available_cache() != true) {
  36.             $this->_write_cache($this->cl_cache_file, $this->_get_license_file());
  37.             $this->_check_license($this->_read_cache($this->cl_cache_file));
  38.         } else {
  39.             $this->_check_license($this->_read_cache($this->cl_cache_file));
  40.         }
  41.     }
  42.  
  43.     protected function _check_ip_address()
  44.     {
  45.         if (!is_numeric(substr($this->cl_ip_address, 0, 3)) && substr($this->cl_ip_address, 0, 4) == 'www.') {
  46.             $this->cl_ip_address = substr($this->cl_ip_address, 4);
  47.         }
  48.     }
  49.  
  50.     protected function _create_product_key()
  51.     {
  52.         $this->cl_product_key = wordwrap(strtoupper(md5(sha1(md5($this->cl_ip_address . smm_key)))), 4, '-', true);
  53.     }
  54.  
  55.     protected function _check_license($data)
  56.     {
  57.         if (!@in_array($this->cl_product_key, $data)) {
  58.             exit();
  59.         }
  60.     }
  61.  
  62.     protected function _get_license_file()
  63.     {
  64.         if (function_exists('file')) {
  65.             $file = @explode("\n", @file_get_contents($this->cl_license_server));
  66.             $data = array();
  67.  
  68.             foreach ($file as $key => $value) {
  69.                 $data[$key] = trim(rtrim($value, '\\n'));
  70.             }
  71.  
  72.             return $data;
  73.         }
  74.     }
  75.  
  76.     protected function _is_available_cache()
  77.     {
  78.         if (!file_exists($this->cl_cache_file)) {
  79.             return false;
  80.         }
  81.  
  82.         $this->cl_cache_time = $this->cl_cache_time * 60;
  83.  
  84.         if ($this->cl_cache_time < time() - filemtime($this->cl_cache_file)) {
  85.             unlink($this->cl_cache_file);
  86.  
  87.             return false;
  88.         }
  89.  
  90.         return true;
  91.     }
  92.  
  93.     protected function _write_cache($path, $data)
  94.     {
  95.         $handler = @fopen($path, 'a');
  96.         @fwrite($handler, @serialize($data));
  97.         @fclose($handler);
  98.     }
  99.  
  100.     protected function _read_cache($path)
  101.     {
  102.         $data = @unserialize(@file_get_contents($path));
  103.  
  104.         return $data;
  105.     }
  106. }
  107.  
  108. function base_name($custom = '')
  109. {
  110.     $CI = &get_instance();
  111.     $title = $CI->Configs->get_info('site_name');
  112.  
  113.     if (empty($custom)) {
  114. .......................................................
  115. .................................
  116. ...............
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top