Advertisement
Guest User

Untitled

a guest
Dec 2nd, 2020
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.90 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 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. $port = $_SERVER['SERVER_PORT'];
  52. $request = $_SERVER['PHP_SELF'];
  53.  
  54. if (isset($_SERVER['argv'][0])) {
  55. $query = substr($_SERVER['argv'][0], strpos($_SERVER['argv'][0], ';') + 1);
  56. }
  57.  
  58. $toret = $protocol . '://' . $host . ($port == $protocol_port ? '' : ':' . $port) . $request . (empty($query) ? '' : '?' . $query);
  59. return $toret;
  60. }
  61.  
  62. function autoload($class)
  63. {
  64. $native = ['Finfo', 'finfo'];
  65.  
  66. if (!in_array($class, $native)) {
  67. $classFile = CLASSDIR . ucfirst($class) . '.class.php';
  68. ....................................................................................
  69. ................................................
  70. .......................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement