Advertisement
Guest User

Untitled

a guest
Jan 9th, 2020
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.24 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.0.9.0
  8. * @ Author : DeZender
  9. * @ Release on : 08.08.2019
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. class license
  15. {
  16. const LICENSE_HASH_KEY = 'ZZ_^LCNs^!1t3@B3';
  17.  
  18. /**
  19. * @var null
  20. */
  21. public $license_info;
  22. /**
  23. * @var int
  24. */
  25. public $debug = 0;
  26. /**
  27. * @var array|bool|float|int|null|string
  28. */
  29. public $panel_license_key = '';
  30. /**
  31. * @var array|bool|float|int|null|string
  32. */
  33. public $panel_license_email = '';
  34. /**
  35. * @var string
  36. */
  37. public $trial_license_key = 'PNLXTR-IALTRI-AL91TR-IALTRI-4ALTRI-A5LTR3';
  38. /**
  39. * @var string
  40. */
  41. public $trial_license_email = '[email protected]';
  42. /**
  43. * @var array
  44. */
  45. public $limitations = [
  46. 'domain' => ['lang' => '#{domain}', 'limit_key' => 'domain'],
  47. 'email' => ['lang' => '#{email}', 'limit_key' => 'mail'],
  48. 'database' => ['lang' => '#{database}', 'limit_key' => 'database'],
  49. 'subdomain' => ['lang' => '#{subdomain}', 'limit_key' => 'subdomain'],
  50. 'customer' => ['lang' => '#{customer}', 'limit_key' => 'customer']
  51. ];
  52. /**
  53. * @var string
  54. */
  55. private $LICENSE_SERVER = 'license.panilux.com';
  56.  
  57. /**
  58. *
  59. */
  60. public function __construct()
  61. {
  62. $this->panel_license_key = settings('panel.license_key')->get();
  63. $this->panel_license_email = settings('panel.license_email')->get();
  64.  
  65. if (SANDBOX_LICENSE) {
  66. $this->LICENSE_SERVER = 'license-dev.panilux.com';
  67. }
  68. }
  69.  
  70. /**
  71. * @return int|mixed
  72. */
  73. public function check()
  74. {
  75. $license = $this->get_local_license();
  76.  
  77. if (is_array($license)) {
  78. if (($license['key'] === $this->panel_license_key) && ($license['reseller_info']['email'] === $this->panel_license_email)) {
  79. $this->license_info = $license;
  80. }
  81. else {
  82. $license = -3;
  83. }
  84. }
  85.  
  86. return $license;
  87. }
  88.  
  89. /**
  90. * @return int|mixed
  91. */
  92. public function get_local_license()
  93. {
  94. $obf_DVwXCBAiMg4iFjc7GiZADxMGBxIFLgE = agent()->get_file(PANEL_PATH . '/.license');
  95.  
  96. if (!$obf_DVwXCBAiMg4iFjc7GiZADxMGBxIFLgE) {
  97. .....................................................................................
  98. .............................................
  99. ...........
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement