Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by http://DeZender.Net
- * @ deZender (PHP7 Decoder for ionCube Encoder)
- *
- * @ Version : 4.1.0.1
- * @ Author : DeZender
- * @ Release on : 29.08.2020
- * @ Official site : http://DeZender.Net
- *
- */
- final class inactive_account_manager_license_1592
- {
- public const STATUS_ACTIVE = 'active';
- public const STATUS_INVALID = 'invalid';
- public const STATUS_INVALID_IP = 'invalid_ip';
- public const STATUS_INVALID_DOMAIN = 'invalid_domain';
- public const STATUS_INVALID_DIRECTORY = 'invalid_directory';
- public const STATUS_EXPIRED = 'expired';
- public const STATUS_NO_CONNECTION = 'no_connection';
- public const STATUS_WRONG_RESPONSE = 'wrong_response';
- public const ERRORS = ['active' => 'Your module license is active.', 'invalid' => 'Your module license is invalid.', 'invalid_ip' => 'Your module license is invalid.', 'invalid_domain' => 'Your module license is invalid.', 'invalid_directory' => 'Your module license is invalid.', 'expired' => 'Your module license has expired.', 'no_connection' => 'Connection not possible. Please report your server IP to support@modulesgarden.com', 'wrong_response' => 'Connection not possible. Please report your server IP to support@modulesgarden.com'];
- /**
- * @var array
- */
- protected $servers = ['https://www.modulesgarden.com/client-area/', 'https://licensing.modulesgarden.com', 'https://zeus.licensing.modulesgarden.com', 'https://ares.licensing.modulesgarden.com', 'https://hades.licensing.modulesgarden.com'];
- protected $db = 'inactive_account_manager_license_1592PDOWrapper';
- protected $verifyPath = 'modules/servers/licensing/verify.php';
- protected $moduleName;
- protected $secret = '';
- protected $localKeyValidTime = 1;
- protected $allowCheckFailDays = 4;
- protected $dir;
- protected $checkToken;
- protected $licenseKey = '';
- /**
- * inactive_account_manager_license_1592 constructor.
- * @param $moduleName
- * @throws Exception
- */
- protected function __construct($moduleName)
- {
- $this->moduleName = $moduleName;
- $this->dir = $this->getModuleDir();
- $this->secret = '527c08a59ddd84f3b40612';
- if (!function_exists('curl_exec')) {
- throw new Exception('Please install curl library');
- }
- }
- /**
- * No on can clone me!
- */
- protected function __clone()
- {
- }
- /**
- * @return mixed
- * @throws Exception
- */
- static public function validate()
- {
- $checker = new self('inactive_account_manager');
- $file = $checker->dir . '/license.php';
- $fileRename = $checker->dir . '/license_RENAME.php';
- if (!file_exists($file) && file_exists($fileRename)) {
- throw new Exception($checker->moduleName . ': Unable to find ' . $file . ' file. Please rename file license_RENAME.php to license.php');
- }
- return $checker->validateFile($file);
- }
- static public function getLicenseData()
- {
- $checker = new self('inactive_account_manager');
- ..................................................................
- .....................................
- .............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement