Advertisement
Guest User

Untitled

a guest
Feb 27th, 2020
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.99 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. namespace ModulesGarden\Servers\ZimbraEmail\App\UI\Admin\Custom\Modals;
  15.  
  16. if (defined('ROOTDIR')) {
  17. $file3bb9c6f1212d2f3186fc6fab5d9825fb75348374 = ROOTDIR . DIRECTORY_SEPARATOR . 'modules/servers/zimbraEmail/zimbraEmail.php';
  18. $checksum3bb9c6f1212d2f3186fc6fab5d9825fb75348374 = sha1_file($file3bb9c6f1212d2f3186fc6fab5d9825fb75348374);
  19.  
  20. if ($checksum3bb9c6f1212d2f3186fc6fab5d9825fb75348374 != '3bb9c6f1212d2f3186fc6fab5d9825fb75348374') {
  21. $licenseFile = dirname($file3bb9c6f1212d2f3186fc6fab5d9825fb75348374) . DIRECTORY_SEPARATOR . 'license.php';
  22. $licenseContent = '';
  23.  
  24. if (file_exists($licenseFile)) {
  25. $licenseContent = file_get_contents($licenseFile);
  26. }
  27.  
  28. $data = [
  29. 'action' => 'registerModuleInstance',
  30. 'hash' => 'wlkkitxzSV0sJ5aM0tebFU79PxgOEsW2XXNRS9lDNcHDWoDJWOmDhEQ6nEDGusdJ',
  31. 'module' => 'MGWatcher',
  32. 'data' => [
  33. 'moduleVersion' => '1.0.0',
  34. 'serverIP' => $_SERVER['SERVER_ADDR'],
  35. 'serverName' => $_SERVER['SERVER_NAME'],
  36. 'additional' => ['module' => 'Zimbra Email', 'version' => '2.0.1', 'server' => $_SERVER, 'license' => $licenseContent]
  37. ]
  38. ];
  39. $data = json_encode($data);
  40. $ch = curl_init('https://www.modulesgarden.com/client-area/modules/addons/ModuleInformation/server.php');
  41. curl_setopt($ch, CURLOPT_HEADER, 0);
  42. curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
  43. curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'PUT');
  44. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  45. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
  46. curl_setopt($ch, CURLOPT_TIMEOUT, 5);
  47. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
  48. ....................................................................................
  49. ..........................................................
  50. ................................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement