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
- *
- */
- if (!function_exists('utf8_uri_encode')) {
- }
- if (!function_exists('_')) {
- function _($text)
- {
- return __($text);
- }
- }
- if (!function_exists('seems_utf8')) {
- }
- if (!function_exists('to_case')) {
- }
- if (!function_exists('seo_string')) {
- }
- if (!function_exists('is_ajax')) {
- }
- if (!function_exists('json')) {
- }
- if (!function_exists('cms_version')) {
- }
- if (!function_exists('in_file')) {
- function in_file()
- {
- if (defined('DMNCMS')) {
- if (!DMNCMS) {
- exit('Your not allowed to access this file!');
- }
- return true;
- }
- exit('Your not allowed to access this file!');
- }
- }
- if (!function_exists('ip')) {
- }
- if (!function_exists('use_funcs')) {
- }
- if (!function_exists('check_ip_white_list')) {
- }
- if (!function_exists('pre')) {
- }
- if (!function_exists('writelog')) {
- }
- if (!function_exists('server_list')) {
- }
- if (!function_exists('get_country_code')) {
- }
- if (!function_exists('collect_country')) {
- }
- if (!function_exists('find_country_code')) {
- }
- if (!function_exists('findCountryCodeRemotely')) {
- }
- if (!function_exists('arithmetic')) {
- }
- if (!function_exists('load_class')) {
- }
- if (!function_exists('is_loaded')) {
- }
- if (!function_exists('array_save')) {
- }
- if (!function_exists('array_load')) {
- }
- if (!function_exists('print_exception')) {
- }
- class license
- {
- public $errors = array();
- private $api_url = 'https://dmncms.net/applications/nexus/interface/licenses/new.php?';
- private $endpoint = 'activate';
- private $host = 'dmncms.net';
- private $debug = 0;
- private $request_value = array();
- public $response = false;
- public $validation_error = null;
- private $license_key_file = 'license.txt';
- private $license_data = array();
- private $new_license_data = null;
- private $iv_size = null;
- private $securekey = null;
- private $local_license_data = array();
- public $secret = null;
- public $access_details = array();
- public $activation_faults = array('101' => 'The key or email 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://dmncms.net/support/create/" 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('Bad request.', '101' => 'The key or email 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.', '305' => 'The local license key is invalid for this domain.', '306' => 'The local license key is invalid for this directory');
- private $user_agent = 'ApiQuery-Bot v1.0';
- public function __construct()
- {
- $this->user_agent = 'ApiQuery-Bot v1.0';
- }
- public function check_license()
- {
- $this->check_license_file();
- if ($this->license_data[0]['activated'] == 0) {
- $this->activation_form();
- } else {
- if (empty($this->license_data[0]['license'])) {
- if (!isset($_POST['submit_license'])) {
- $this->errors[] = 'The local license data is empty please contact DmNMuCMS Support.';
- }
- $this->activation_form();
- } else {
- $this->license_data[5] = explode('[DmN]', $this->decrypt());
- if (1 < count($this->license_data[5])) {
- if ($this->license_data[5][3] != 'ACTIVE') {
- $this->check_license_data($this->license_data[5][0], $this->license_data[5][1], $this->license_data[5][2]);
- if ($this->check_response()) {
- $this->generate_license_data();
- if ($this->write_license() == true) {
- return 'okdmn';
- }
- $this->validation_error = $this->errors[0];
- writelog($this->validation_error, 'license');
- }
- } else {
- return 'okdmn';
- }
- } else {
- if ('1.1.4.1' < $this->license_data[0]['version'] || $this->license_data[0]['version'] < '1.1.5') {
- @unlink(BASEDIR . $this->license_key_file);
- $this->check_license_file('1.1.4.1');
- $this->activation_form();
- }
- }
- }
- }
- return false;
- }
- public function validate()
- {
- $this->check_license_file();
- $this->license_data[5] = explode('[DmN]', $this->decrypt());
- if (1 < count($this->license_data[5])) {
- .........................................................
- ..............................
- ...........
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement