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 SourceGuardian Encoder)
- *
- * @ Version : 5.0.1.0
- * @ Author : DeZender
- * @ Release on : 22.04.2022
- * @ Official site : http://DeZender.Net
- *
- */
- namespace Core\Application;
- class LicenseService extends \Core\Singleton\Singleton
- {
- private const VALIDATE_ENDPOINT = '/v3/validate';
- private ?string $_licenseIp;
- private ?string $_domain;
- private Core\Security\ServerFinderService $_serverFinderService;
- private Traffic\Http\Service\HttpService $_httpService;
- public function __construct(?\Core\Security\ServerFinderService $serverFinderService = NULL, ?\Traffic\Http\Service\HttpService $httpService = NULL)
- {
- if (is_null($serverFinderService)) {
- $serverFinderService = \Core\Security\ServerFinderService::instance();
- }
- if (is_null($httpService)) {
- $httpService = \Traffic\Http\Service\HttpService::instance();
- }
- $this->_serverFinderService = $serverFinderService;
- $this->_httpService = $httpService;
- return self::$_instances;
- }
- static public function isValidLicenseKey(string $key): bool
- {
- return (bool) preg_match('/^(?:[A-Z0-9]{4}-){3}[A-Z0-9]{4}$/', $key);
- ..........................................................
- ..................................
- ..............
Advertisement
Add Comment
Please, Sign In to add comment