Guest User

Untitled

a guest
Apr 12th, 2026
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by http://DeZender.Net
  5. * @ deZender (PHP7 Decoder for SourceGuardian Encoder)
  6. *
  7. * @ Version : 5.0.1.0
  8. * @ Author : DeZender
  9. * @ Release on : 22.04.2022
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. namespace Core\Application;
  15.  
  16. class LicenseService extends \Core\Singleton\Singleton
  17. {
  18. private const VALIDATE_ENDPOINT = '/v3/validate';
  19.  
  20. private ?string $_licenseIp;
  21. private ?string $_domain;
  22. private Core\Security\ServerFinderService $_serverFinderService;
  23. private Traffic\Http\Service\HttpService $_httpService;
  24.  
  25. public function __construct(?\Core\Security\ServerFinderService $serverFinderService = NULL, ?\Traffic\Http\Service\HttpService $httpService = NULL)
  26. {
  27. if (is_null($serverFinderService)) {
  28. $serverFinderService = \Core\Security\ServerFinderService::instance();
  29. }
  30.  
  31. if (is_null($httpService)) {
  32. $httpService = \Traffic\Http\Service\HttpService::instance();
  33. }
  34.  
  35. $this->_serverFinderService = $serverFinderService;
  36. $this->_httpService = $httpService;
  37. return self::$_instances;
  38. }
  39.  
  40. static public function isValidLicenseKey(string $key): bool
  41. {
  42. return (bool) preg_match('/^(?:[A-Z0-9]{4}-){3}[A-Z0-9]{4}$/', $key);
  43. ..........................................................
  44. ..................................
  45. ..............
Advertisement
Add Comment
Please, Sign In to add comment