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.0.8.0
- * @ Author : DeZender
- * @ Release on : 25.09.2017
- * @ Official site : http://DeZender.Net
- *
- */
- class dmn_license
- {
- public $errors = array( );
- private $api_url = 'http://forum.dmncms.net/interface/licenses.php';
- private $api_urlv2 = 'http://dmncms.net/applications/nexus/interface/licenses/';
- private $host = 'forum.dmncms.net';
- private $request_value = '';
- public $response = '';
- private $license_key_file = 'license.txt';
- private $license_data = array( );
- private $new_license_data = null;
- private $iv_size = null;
- private $securekey = null;
- public $secret = '9884746Secret*&D^#HR#GB^*TDmNCMS^&&^63683t6';
- private $local_key_expires = 1;
- public $access_details = array( );
- private $xml_contents = '';
- public $activation_faults = array(
- 101 => 'The key provided does not exist.',
- 102 => 'The key provided is has been deactivated.',
- 103 => 'The purchase the key is associated with has been cancelled.',
- 104 => 'The purchase the key is associated with has expired.',
- 201 => 'The key has already been activated the maximum number of times and cannot be activated again. Please contact support <a href="http://forum.dmncms.net/index.php?app=nexus&module=support" target="_blank">here</a>.',
- 202 => 'setEmail was TRUE, but the key already has an email.',
- 203 => 'The email provided was incorrect.'
- );
- private $check_faults = array(
- 0 => 'Bad request.',
- 101 => 'The key provided does not exist.',
- 301 => 'The email provided was incorrect.',
- 302 => 'You did not provide a usage ID.',
- 303 => 'The usage ID provided was invalid.',
- 304 => 'The request was received by a different IP address to the IP address that sent the "activate" API call.'
- );
- private $user_agent = 'ApiQuery-Bot v1.0';
- public function get_local_license_data()
- {
- if (!(extension_loaded( 'mcrypt' ))) {
- throw new Exception( 'Please enable mcrypt extension in your php settings.' );
- }
- else {
- $this->iv_size = mcrypt_get_iv_size( MCRYPT_RIJNDAEL_128, MCRYPT_MODE_CBC );
- $this->securekey = hash( 'sha256', $this->secret, true );
- if (is_readable( $_obfuscate_DRIYGhMCKzQdK1sONBkjKjElGCo9JDI = BASEDIR . $this->license_key_file )) {
- $this->license_data = file( $_obfuscate_DRIYGhMCKzQdK1sONBkjKjElGCo9JDI );
- $this->license_data[0] = json_decode( $this->clean_json( $this->license_data[0] ), true );
- if ($this->license_data[0]['activated'] == 0) {
- $_obfuscate_DQUeJzwBFSUjKBwOFiwWCRseOR4sFDI[0] = 'undefined';
- $_obfuscate_DQUeJzwBFSUjKBwOFiwWCRseOR4sFDI[1] = 'undefined';
- $_obfuscate_DQUeJzwBFSUjKBwOFiwWCRseOR4sFDI[4] = 'undefined';
- $_obfuscate_DQUeJzwBFSUjKBwOFiwWCRseOR4sFDI[5] = 'undefined';
- $_obfuscate_DQUeJzwBFSUjKBwOFiwWCRseOR4sFDI[6] = 'undefined';
- $_obfuscate_DQUeJzwBFSUjKBwOFiwWCRseOR4sFDI[8] = 'License not activated';
- $_obfuscate_DQUeJzwBFSUjKBwOFiwWCRseOR4sFDI[9] = 'undefined';
- $_obfuscate_DQUeJzwBFSUjKBwOFiwWCRseOR4sFDI[10] = $this->get_cms_version( );
- }
- else {
- $_obfuscate_DQUeJzwBFSUjKBwOFiwWCRseOR4sFDI = explode( '[DmN]', $this->decrypt( $this->license_data[0]['license'] ) );
- $this->generate_info_xml( $_obfuscate_DQUeJzwBFSUjKBwOFiwWCRseOR4sFDI[0], $_obfuscate_DQUeJzwBFSUjKBwOFiwWCRseOR4sFDI[1] );
- if (function_exists( 'curl_init' )) {
- if (!($this->send_post_with_curl( ))) {
- if (!($this->send_post_with_fsock( ))) {
- $this->send_post_file_get_contents( );
- }
- }
- }
- else if (!($this->send_post_with_fsock( ))) {
- .......................................................................
- ....................................................
- ................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement