Guest User

Untitled

a guest
May 1st, 2020
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.83 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 header_callback($curl, $header_line)
  15. {
  16. $response_headers = ['set-cookie', 'location', 'content-length', 'transfer-encoding'];
  17. $flag = 0;
  18.  
  19. foreach ($response_headers as $v) {
  20. if (0 < strlen($header_line)) {
  21. if (strpos(strtolower($header_line), strtolower($v)) === false) {
  22. $flag++;
  23. }
  24. }
  25. }
  26. if (($flag == sizeof($response_headers)) && (2 < strlen($header_line))) {
  27. header($header_line);
  28. }
  29.  
  30. return strlen($header_line);
  31. }
  32.  
  33. require '/home/seotoolsgroupsbu/public_html/library/Am/Lite.php';
  34. $isLoggedin = Am_Lite::getInstance()->isLoggedIn();
  35. $ahrefsactive = Am_Lite::getInstance()->haveSubscriptions([1, 2]);
  36.  
  37. if ($isLoggedin) {
  38. if ($ahrefsactive) {
  39. }
  40. else {
  41. header('Location: ' . $loginurl);
  42. }
  43. }
  44. else {
  45. header('Location: ' . $loginurl);
  46. }
  47.  
  48. require 'include.php';
  49. $dataFile = json_decode(file_get_contents(__DIR__ . '/data.json', FILE_USE_INCLUDE_PATH));
  50. $defaultUri = '/site-explorer';
  51. $post = file_get_contents('php://input');
  52. $headers = [];
  53. $blocked = json_decode(file_get_contents(__DIR__ . '/redirectURLS', FILE_USE_INCLUDE_PATH));
  54. $sblocked = json_decode(file_get_contents(__DIR__ . '/blockURLS', FILE_USE_INCLUDE_PATH));
  55. $request_headers = ['accept', 'accept-language', 'x-requested-with', 'main-request', 'x-csrf-token', 'cache-control', 'content-type', 'content-length'];
  56. $requestURI = preg_replace('/([^:])(\\/{2,})/', '$1/', '/' . trim($_SERVER['REQUEST_URI'], '/'));
  57. $domainLogError = ['status' => false, 'message' => ''];
  58. $kwrowlog = false;
  59.  
  60. if ($requestURI == '/') {
  61. header('location: ' . $defaultUri);
  62. exit();
  63. }
  64. else if (in_array(strtok($requestURI, '?'), $blocked)) {
  65. header('location: ' . $defaultUri);
  66. exit();
  67. }
  68. else if (in_array(strtok($requestURI, '?'), $sblocked)) {
  69. header('HTTP/1.0 403 Forbidden', true, 403);
  70. exit();
  71. }
  72. else if ((strpos(strtok($requestURI, '?'), 'site-explorer/overview/v2/prefix') !== false) || (strpos(strtok($requestURI, '?'), 'site-explorer/overview/v2/subdomains') !== false) || (strpos(strtok($requestURI, '?'), 'site-explorer/overview/v2/domain') !== false)) {
  73. $domainname = $_GET['target'];
  74. require 'log.php';
  75. }
  76.  
  77. if (isset($_SERVER['HTTP_REFERER'])) {
  78. $curlRef = parse_url($_SERVER['HTTP_REFERER']);
  79.  
  80. if ($curlRef['host'] == $_SERVER['HTTP_HOST']) {
  81. $curlRef = 'https://ahrefs.com' . $curlRef['path'] . (empty($curlRef['query']) ? '' : '?' . $curlRef['query']);
  82. }
  83. else {
  84. $curlRef = 'https://ahrefs.com';
  85. }
  86. }
  87. else {
  88. $curlRef = 'https://ahrefs.com';
  89. ...................................................................
  90. .........................................
  91. ...............
Add Comment
Please, Sign In to add comment