<!DOCTYPE html>
<html lang='ro'>
<head>
    <meta charset='UTF-8'>
    <title>Diagnostic API: centrumsalvator.sk</title>
    <style>
        body { font-family: Arial, sans-serif; background-color: #1e1e2e; color: #cdd6f4; margin: 40px; line-height: 1.6; }
        .container { background-color: #313244; padding: 30px; border-radius: 8px; max-width: 800px; margin: auto; box-shadow: 0 4px 6px rgba(0,0,0,0.3); }
        h2 { color: #89b4fa; border-bottom: 2px solid #45475a; padding-bottom: 10px; }
        .status-box { padding: 15px; margin-bottom: 15px; border-radius: 5px; border-left: 5px solid; }
        .ok { background-color: rgba(166, 227, 161, 0.1); border-color: #a6e3a1; }
        .err { background-color: rgba(243, 139, 168, 0.1); border-color: #f38ba8; }
        .info { background-color: rgba(137, 180, 250, 0.1); border-color: #89b4fa; }
        .label { font-weight: bold; font-size: 1.1em; }
        code { background-color: #181825; padding: 2px 6px; border-radius: 4px; color: #f9e2af; }
        .test-btn { background-color: #ff9800; border: none; color: white; padding: 12px 24px; font-size: 16px; cursor: pointer; border-radius: 4px; font-weight: bold; margin: 15px 0; }
        .test-btn:hover { background-color: #e68900; }
        #mail-test-result { margin-top: 10px; font-weight: bold; }
        .test-success { color: #4CAF50; }
        .test-error { color: #f44336; }
    </style>
</head>
<body>
    <div class='container'>
        <h2>📡 API Mailer Status: <code>centrumsalvator.sk</code></h2>
        <p>Adresa de expediere generată automat: <strong>info@centrumsalvator.sk</strong></p>

                    <div class='status-box ok'><span class='label'>✅ SPF (Sender Policy Framework)</span><br>Găsit: <code>v=spf1 ip4:88.99.25.162 a mx include:_spf.m1.websupport.sk ?all</code></div>
        
                    <div class='status-box err'><span class='label'>❌ DMARC Lipsește!</span><br>Domeniul nu are o înregistrare _dmarc.</div>
        
        <div class='status-box info'><span class='label'>ℹ️ Notă despre DKIM</span><br>Verifică din panoul de control al acestui hosting dacă DKIM este activat.</div>

        <h3 style='color:#89b4fa;'>🔧 Testare funcție mail()</h3>
        <button class='test-btn' id='test-mail-btn'>Testează acum</button>
        <div id='mail-test-result'></div>

                    <h3 style='color:#f38ba8;'>⚠️ Sistemul necesită reparații DNS înainte de a fi folosit.</h3>
            </div>

    <script>
    document.getElementById('test-mail-btn').addEventListener('click', function() {
        var resultDiv = document.getElementById('mail-test-result');
        resultDiv.innerHTML = 'Se testează...';
        
        var formData = new FormData();
        formData.append('action', 'test_mail');

        fetch(window.location.href, {
            method: 'POST',
            body: formData
        })
        .then(response => response.json())
        .then(data => {
            if (data.success) {
                resultDiv.innerHTML = '<span class="test-success">✅ ' + data.message + '</span>';
            } else {
                resultDiv.innerHTML = '<span class="test-error">❌ ' + data.message + '</span>';
            }
        })
        .catch(error => {
            resultDiv.innerHTML = '<span class="test-error">Eroare rețea: ' + error + '</span>';
        });
    });
    </script>
</body>
</html><?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="https://www.centrumsalvator.sk/wp-sitemap-index.xsl" ?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><sitemap><loc>https://www.centrumsalvator.sk/wp-sitemap-posts-post-1.xml</loc></sitemap><sitemap><loc>https://www.centrumsalvator.sk/wp-sitemap-posts-page-1.xml</loc></sitemap><sitemap><loc>https://www.centrumsalvator.sk/wp-sitemap-taxonomies-category-1.xml</loc></sitemap><sitemap><loc>https://www.centrumsalvator.sk/wp-sitemap-taxonomies-post_format-1.xml</loc></sitemap><sitemap><loc>https://www.centrumsalvator.sk/wp-sitemap-users-1.xml</loc></sitemap></sitemapindex>
