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.1
- * @ Author : DeZender
- * @ Release on : 29.08.2020
- * @ Official site : http://DeZender.Net
- *
- */
- namespace Components\Core;
- class ModuleValidator
- {
- /**
- * Contains module instance
- *
- * @var ModuleInterface
- */
- private $module;
- /**
- * License server url
- *
- * @var string
- */
- private $server = 'license.easydcim.com';
- /**
- * License Key
- *
- * @var string
- */
- private $licenseKey;
- /**
- * License Information Response
- *
- * @var string
- */
- private $rawResponse;
- /**
- * CURL instance
- *
- * @var
- */
- private $curl;
- /**
- * Crypter instance
- *
- * @var
- */
- private $crypter;
- /**
- * @var \Illuminate\Support\MessageBag
- */
- protected $errors;
- public function __construct(\Components\Modules\Interfaces\ModuleInterface $module, \?Components\Helpers\Interfaces\CurlInterface $curl = NULL, \?Components\Helpers\Interfaces\CrypterInterface $crypter = NULL)
- {
- $this->licenseKey = strtoupper(config('app.licensekey'));
- $licenseSecretKey = strrev(sha1(strrev(base64_encode(strrev(sha1(str_replace('-', '', $this->licenseKey)))))));
- $this->setModule($module);
- if (is_null($curl)) {
- $this->setCurl(new \Components\Helpers\Curl());
- }
- else {
- $this->setCurl($curl);
- }
- if (is_null($crypter)) {
- $this->setCrypter(new \Components\Helpers\Crypter(substr($licenseSecretKey, 0, 32)));
- }
- else {
- $this->setCrypter($crypter);
- }
- $this->errors = new \Illuminate\Support\MessageBag();
- }
- /**
- * @param CurlInterface $curl
- */
- public function setCurl(\Components\Helpers\Interfaces\CurlInterface $curl)
- {
- $this->curl = $curl;
- }
- /**
- * @return Curl
- */
- public function getCurl()
- {
- return $this->curl;
- }
- /**
- * @param CrypterInterface $crypter
- */
- public function setCrypter(\Components\Helpers\Interfaces\CrypterInterface $crypter)
- {
- .................................................................
- ....................................
- ...................
Add Comment
Please, Sign In to add comment