Advertisement
Guest User

Untitled

a guest
Dec 30th, 2021
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.01 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by http://DeZender.Net
  5. * @ deZender (PHP7 Decoder for ionCube Encoder)
  6. *
  7. * @ Version : 4.1.0.1
  8. * @ Author : DeZender
  9. * @ Release on : 29.08.2020
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. final class inactive_account_manager_license_1592
  15. {
  16. public const STATUS_ACTIVE = 'active';
  17. public const STATUS_INVALID = 'invalid';
  18. public const STATUS_INVALID_IP = 'invalid_ip';
  19. public const STATUS_INVALID_DOMAIN = 'invalid_domain';
  20. public const STATUS_INVALID_DIRECTORY = 'invalid_directory';
  21. public const STATUS_EXPIRED = 'expired';
  22. public const STATUS_NO_CONNECTION = 'no_connection';
  23. public const STATUS_WRONG_RESPONSE = 'wrong_response';
  24. 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'];
  25.  
  26. /**
  27. * @var array
  28. */
  29. 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'];
  30. protected $db = 'inactive_account_manager_license_1592PDOWrapper';
  31. protected $verifyPath = 'modules/servers/licensing/verify.php';
  32. protected $moduleName;
  33. protected $secret = '';
  34. protected $localKeyValidTime = 1;
  35. protected $allowCheckFailDays = 4;
  36. protected $dir;
  37. protected $checkToken;
  38. protected $licenseKey = '';
  39.  
  40. /**
  41. * inactive_account_manager_license_1592 constructor.
  42. * @param $moduleName
  43. * @throws Exception
  44. */
  45. protected function __construct($moduleName)
  46. {
  47. $this->moduleName = $moduleName;
  48. $this->dir = $this->getModuleDir();
  49. $this->secret = '527c08a59ddd84f3b40612';
  50.  
  51. if (!function_exists('curl_exec')) {
  52. throw new Exception('Please install curl library');
  53. }
  54. }
  55.  
  56. /**
  57. * No on can clone me!
  58. */
  59. protected function __clone()
  60. {
  61. }
  62.  
  63. /**
  64. * @return mixed
  65. * @throws Exception
  66. */
  67. static public function validate()
  68. {
  69. $checker = new self('inactive_account_manager');
  70. $file = $checker->dir . '/license.php';
  71. $fileRename = $checker->dir . '/license_RENAME.php';
  72. if (!file_exists($file) && file_exists($fileRename)) {
  73. throw new Exception($checker->moduleName . ': Unable to find ' . $file . ' file. Please rename file license_RENAME.php to license.php');
  74. }
  75.  
  76. return $checker->validateFile($file);
  77. }
  78.  
  79. static public function getLicenseData()
  80. {
  81. $checker = new self('inactive_account_manager');
  82. ..................................................................
  83. .....................................
  84. .............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement