redirecting.php 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <?php
  2. if (!isset($_POST['idpage']) && preg_match("#/go/([a-z0-9-]+)/#", $_SERVER['REQUEST_URI'], $matches)) {
  3. $slug = $matches[1];
  4. }
  5. $hashList = [
  6. 'crazeplay-casino' => 'wqGNPy',
  7. 'locowin-casino' => '8PM274',
  8. 'loki-casino' => 'FM59Sc',
  9. 'starzino-casino' => 'TL9624',
  10. 'rakoo-casino' => 'YnhYfX',
  11. 'wbetz-casino' => 'Xgyf4T',
  12. 'betsixty-casino' => 'pwKF67',
  13. 'monixbet' => 'xDGRPZ',
  14. 'punterz-casino' => 'yC3FZg',
  15. 'bm-bet' => 'gw3FrC',
  16. 'jacktop-casino' => 'kQNc5y',
  17. 'happyslots' => 'z6d7vH',
  18. 'manga-casino' => 'StVn3x',
  19. 'qbet-casino' => 'RjsMWg',
  20. 'rant-casino' => 'gRw3YD',
  21. 'seven-casino' => 'HCd2Nw',
  22. 'slotsvil-casino' => 'KyM1v9',
  23. 'spinch-casino' => 'Fm7xt4',
  24. 'spinspirit-casino' => 'fs9sdf',
  25. 'winstler-casino' => 'Sc4vcF',
  26. ];
  27. $hash = isset($hashList[$slug]) ? $hashList[$slug] : '';
  28. $queryData = [
  29. 'domain' => $_SERVER['HTTP_HOST'],
  30. 'page' => isset($_POST['page']) ? $_POST['page'] : '',
  31. ];
  32. $queryString = http_build_query($queryData);
  33. $url = isset($hash)
  34. ? "http://66.55.159.98/{$hash}?{$queryString}"
  35. : "{$_SERVER['REQUEST_SCHEME']}://{$_SERVER['HTTP_HOST']}";
  36. ?>
  37. <!DOCTYPE html>
  38. <html>
  39. <head>
  40. <title><?= $_SERVER['HTTP_HOST'] ?></title>
  41. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  42. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
  43. <meta name="robots" content="noindex, nofollow">
  44. </head>
  45. <body class="page-redirecting">
  46. <script>
  47. window.location.href = "<?=$url?>";
  48. window.setTimeout(function(){
  49. window.location.href = "<?=$url?>";
  50. }, 1000);
  51. </script>
  52. </body>
  53. </html>