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.0
- * @ Author : DeZender
- * @ Release on : 15.05.2020
- * @ Official site : http://DeZender.Net
- *
- */
- namespace SupportPal\Licensing;
- class Client
- {
- const CACHE_LICENSE_INFO = 'license_information';
- const CACHE_PRODUCT_INFO = 'license_product';
- const SALT_LENGTH = 10;
- /**
- * The current HTTP request
- *
- * @var Request
- */
- private $request;
- /**
- * The server IP
- *
- * @var string
- */
- private $serverIp;
- /**
- * Log of actions performed whilst checking a license
- *
- * @var array
- */
- protected $logProgress = [];
- /**
- * License code
- *
- * @var string
- */
- private $license;
- /**
- * Total number of active brands.
- *
- * @var int
- */
- private $activeBrands;
- /**
- * Array of license information from the database
- *
- * @var array
- */
- private $licenseArray = [];
- /**
- * API instance.
- *
- * @var Api
- */
- private $api;
- /**
- * Version instance.
- *
- * @var Version
- */
- private $version;
- /**
- * Event dispatcher instance.
- *
- * @var Dispatcher
- */
- private $dispatcher;
- /**
- * Initialise the client
- *
- * @param Request $request
- * @param Api $api
- * @param Version $version
- * @param Dispatcher $dispatcher
- */
- public function __construct(\Illuminate\Http\Request $request, Api $api, Version $version, \Illuminate\Contracts\Events\Dispatcher $dispatcher)
- {
- $this->api = $api;
- $this->version = $version;
- $this->request = $request;
- $this->dispatcher = $dispatcher;
- $this->serverIp = IpUtils::getServerIP();
- }
- /**
- * Get license code.
- *
- * @return string
- */
- public function getLicenseCode()
- {
- if (!empty($this->license)) {
- return $this->license;
- }
- return Models\License::get(Models\License::CODE_SETTING_NAME);
- ..............................................................
- .................................
- ...........
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement