Advertisement
Guest User

Untitled

a guest
Apr 27th, 2020
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.37 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.10.0
  8. * @ Author : DeZender
  9. * @ Release on : 09.04.2020
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. function get_status($url, $app, $servername, $domain)
  15. {
  16. $cURL = curl_init();
  17. curl_setopt_array($cURL, [
  18. CURLOPT_RETURNTRANSFER => 1,
  19. CURLOPT_SSL_VERIFYPEER => false,
  20. CURLOPT_SSL_VERIFYHOST => false,
  21. CURLOPT_USERAGENT => 'cURL Request',
  22. CURLOPT_URL => $url,
  23. CURLOPT_POST => 1,
  24. CURLOPT_POSTFIELDS => ['app' => $app, 'domain' => $domain, 'server' => $servername, 'ip' => $_SERVER['REMOTE_ADDR']]
  25. ]);
  26. $result = curl_exec($cURL);
  27. $erro = '';
  28.  
  29. if ($result === false) {
  30. $erro = curl_error($cURL);
  31. }
  32.  
  33. $response = curl_getinfo($cURL, CURLINFO_HTTP_CODE);
  34. $result = json_decode($result);
  35. curl_close($cURL);
  36. return (object) ['response' => $response, 'result' => $result, 'erro' => $erro];
  37. }
  38.  
  39. function get_current_url()
  40. {
  41. $protocol = 'http';
  42. if (($_SERVER['SERVER_PORT'] == 443) || (!empty($_SERVER['HTTPS']) && ($_SERVER['HTTPS'] == 'on'))) {
  43. $protocol .= 's';
  44. $protocol_port = $_SERVER['SERVER_PORT'];
  45. }
  46. else {
  47. $protocol_port = 80;
  48. }
  49.  
  50. $host = $_SERVER['HTTP_HOST'];
  51. .................................................................
  52. .....................................
  53. ...............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement