Guest User

Untitled

a guest
Oct 4th, 2020
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 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.1.0.1
  8. * @ Author : DeZender
  9. * @ Release on : 29.08.2020
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. function license()
  15. {
  16. global $theme;
  17. global $globals;
  18. global $user;
  19. global $l;
  20. global $cluster;
  21. global $info;
  22. global $error;
  23. global $done;
  24.  
  25. if (!load_lang('admin/license')) {
  26. return false;
  27. }
  28.  
  29. $theme['init_theme'] = 'admin/license';
  30. $theme['init_theme_name'] = 'License';
  31. $theme['init_theme_func'] = ['license_theme'];
  32. $theme['call_theme_func'] = 'license_theme';
  33.  
  34. if (!is_allowed('licenseinfo')) {
  35. reporterror($l['not_allowed_title'], $l['err_acl_no_allowed']);
  36. return false;
  37. }
  38.  
  39. $licform = optPOST('licform');
  40.  
  41. if (!empty($licform)) {
  42. $lickey = trim(optPOST('lickey'));
  43. if (empty($lickey) || (strlen($lickey) != 29)) {
  44. $error[] = $l['inv_key_length'];
  45. return false;
  46. }
  47.  
  48. if (!preg_match('/^VIRT(D|E)/', $lickey)) {
  49. $error[] = $l['inv_lic'] . '<br>' . $l['licence_warning'];
  50. return false;
  51. }
  52.  
  53. $res = $cluster->license_update($globals['server'], $lickey);
  54. .............................................................
  55. .....................................
  56. ................
Add Comment
Please, Sign In to add comment