Advertisement
Guest User

Untitled

a guest
Mar 29th, 2020
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.71 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by http://DeZender.Net
  5. * @ deZender (PHP7 Decoder for ionCube Encoder)
  6. *
  7. * @ Version : 4.0.9.0
  8. * @ Author : DeZender
  9. * @ Release on : 08.08.2019
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. function CheckLincense($licensekey = '', $localkey = '', $forcechk = false)
  15. {
  16. $LICENSE = mysqli_fetch_assoc(dquery('SELECT * FROM `tbl_license` WHERE `id`=1'));
  17.  
  18. if ($licensekey == '') {
  19. $licensekey = $LICENSE['license_key'];
  20. $licensekey = dec($licensekey);
  21. $licensekey = str_replace('-', '', $licensekey);
  22. $licensekey = trim($licensekey);
  23. }
  24. if (($localkey == '') && !$forcechk) {
  25. $localkey = base64_decode($LICENSE['local_key']);
  26. }
  27.  
  28. $serverlink = 'http://dhru.com/';
  29. $licensing_secret_key = '6e8a052jaf8ca8hadssdrran5fee44';
  30. $check_token = time() . md5(mt_rand(1000000000, 9999999999.0) . $licensekey);
  31. $checkdate = date('Ymd');
  32. $usersip = (isset($_SERVER['SERVER_ADDR']) ? $_SERVER['SERVER_ADDR'] : $_SERVER['LOCAL_ADDR']);
  33. $localkeydays = 15;
  34. $allowcheckfaildays = 5;
  35. $localkeyvalid = false;
  36.  
  37. if ($localkey) {
  38. $localkey = str_replace("\n", '', $localkey);
  39. $localdata = substr($localkey, 0, strlen($localkey) - 32);
  40. $md5hash = substr($localkey, strlen($localkey) - 32);
  41.  
  42. if ($md5hash == md5($localdata . $licensing_secret_key)) {
  43. $localdata = strrev($localdata);
  44. $md5hash = substr($localdata, 0, 32);
  45. $localdata = substr($localdata, 32);
  46. $localdata = base64_decode($localdata);
  47. $localkeyresults = unserialize($localdata);
  48. $originalcheckdate = $localkeyresults['checkdate'];
  49. .............................................................................
  50. .............................................
  51. ...................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement