Advertisement
Guest User

Untitled

a guest
Apr 17th, 2018
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.43 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by http://DeZender.Net
  5. * @ deZender (PHP5 Decoder for ionCube Encoder)
  6. *
  7. * @ Version : 3.0.8.0
  8. * @ Author : DeZender
  9. * @ Release on : 25.09.2017
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. namespace WHMCS;
  15.  
  16. class License
  17. {
  18. const LICENSE_API_VERSION = '1.1';
  19. const LICENSE_API_HOSTS = array(
  20. 'a.licensing.whmcs.com',
  21. 'b.licensing.whmcs.com',
  22. 'c.licensing.whmcs.com',
  23. 'd.licensing.whmcs.com',
  24. 'e.licensing.whmcs.com',
  25. 'f.licensing.whmcs.com'
  26. );
  27. const STAGING_LICENSE_API_HOSTS = array( 'hou-1.licensing.web.staging.whmcs.com' );
  28.  
  29. private $licensekey = '';
  30. private $localkey = false;
  31. private $keydata = null;
  32. private $salt = '';
  33. private $postmd5hash = '';
  34. private $localkeydays = '10';
  35. private $allowcheckfaildays = '5';
  36. private $useInternalLicensingMirror = false;
  37. private $debuglog = array( );
  38. private $lastCurlError = null;
  39.  
  40. public function checkFile($value)
  41. {
  42. if ($value != 'a896faf2c31f2acd47b0eda0b3fd6070958f1161') {
  43. throw new Exception\Fatal( 'File version mismatch. Please contact support.' );
  44. }
  45.  
  46. return $this;
  47. }
  48.  
  49. public function setLicenseKey($licenseKey)
  50. {
  51. $this->licensekey = $licenseKey;
  52. return $this;
  53. }
  54.  
  55. public function setLocalKey($localKey)
  56. {
  57. $this->decodeLocal( $localKey );
  58. .......................................................................
  59. .....................................
  60. ..............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement