Guest User

Untitled

a guest
Jan 9th, 2021
46
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by http://DeZender.Net
  5. * @ deZender (PHP7 Decoder for ionCube Encoder)
  6. *
  7. * @ Version : 4.1.0.1
  8. * @ Author : DeZender
  9. * @ Release on : 29.08.2020
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. namespace core\application;
  15.  
  16. class LicenseService extends \Traffic\Service\AbstractService
  17. {
  18. const SIGNATURE = '98353aac502b25a98c5724a16ae4fd15';
  19.  
  20. private $_licenseIp;
  21. private $_domain;
  22.  
  23. public function setDomain($domain)
  24. {
  25. $this->_domain = $domain;
  26. }
  27.  
  28. public function getDomain()
  29. {
  30. return $this->_domain;
  31. }
  32.  
  33. /**
  34. * @param string $licenseIp
  35. */
  36. public function setLicenseIp($licenseIp)
  37. {
  38. $this->_licenseIp = $licenseIp;
  39. }
  40.  
  41. public function getLicenseIp()
  42. {
  43. return $this->_licenseIp;
  44. }
  45.  
  46. public function isValidLicenseKey($key)
  47. {
  48. return !!preg_match('/^(?:[A-Z0-9]{4}-){3}[A-Z0-9]{4}$/', $key);
  49. }
  50.  
  51. public function saveLicenseKey($newKey)
  52. {
  53. if ($this::instance()->isValidLicenseKey($newKey)) {
  54. ..................................................................
  55. ......................................
  56. ...........
RAW Paste Data