Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- *
- * @ This file is created by http://DeZender.Net
- * @ deZender (PHP5 Decoder for ionCube Encoder)
- *
- * @ Version : 3.5.0.0
- * @ Author : DeZender
- * @ Release on : 22.06.2018
- * @ Official site : http://DeZender.Net
- *
- */
- smm_config();
- class lisence_instarame
- {
- protected $cl_license_server = null;
- protected $cl_ip_address = null;
- protected $cl_product_key = null;
- protected $cl_cache_time = null;
- protected $cl_cache_file = null;
- public function __construct()
- {
- $this->code = 'aHR0cHM6Ly9yYXcuZ2l0aHVidXNlcmNvbnRlbnQuY29tLzgzYmRhNmVjYzUzNDQwNzRkNmYzZWIxNTE2MmY0NjA2LzA3ODZhYzRmZWEyMjIyZDM1YzkyZmM4MTBhYzA5NjIzL21hc3Rlci83NGY2YWMwYTdjNzBiZGVkZWFkYTI0MDQwYjc1Yjc0YXwxNDQw';
- $this->cl_ip_address = getenv('HTTP_HOST');
- $this->cl_product_key = null;
- list($this->cl_license_server) = @explode('|', @base64_decode($this->code));
- list(, $this->cl_cache_time) = @explode('|', @base64_decode($this->code));
- $this->cl_cache_file = 'smm_app/cache/' . md5($this->cl_ip_address . smm_key) . '.irm';
- $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));
- }
- }
- protected function _check_ip_address()
- {
- if (!is_numeric(substr($this->cl_ip_address, 0, 3)) && substr($this->cl_ip_address, 0, 4) == 'www.') {
- $this->cl_ip_address = substr($this->cl_ip_address, 4);
- }
- }
- protected function _create_product_key()
- {
- $this->cl_product_key = wordwrap(strtoupper(md5(sha1(md5($this->cl_ip_address . smm_key)))), 4, '-', true);
- }
- protected function _check_license($data)
- {
- if (!@in_array($this->cl_product_key, $data)) {
- exit();
- }
- }
- protected function _get_license_file()
- {
- if (function_exists('file')) {
- $file = @explode("\n", @file_get_contents($this->cl_license_server));
- $data = array();
- foreach ($file as $key => $value) {
- $data[$key] = trim(rtrim($value, '\\n'));
- }
- return $data;
- }
- }
- protected function _is_available_cache()
- {
- if (!file_exists($this->cl_cache_file)) {
- return false;
- }
- $this->cl_cache_time = $this->cl_cache_time * 60;
- if ($this->cl_cache_time < time() - filemtime($this->cl_cache_file)) {
- 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;
- }
- }
- function base_name($custom = '')
- {
- $CI = &get_instance();
- $title = $CI->Configs->get_info('site_name');
- if (empty($custom)) {
- .......................................................
- .................................
- ...............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement