<?php
session_start();

// Test için session ayarla
$_SESSION['loggedin'] = true;
$_SESSION['username'] = 'aaaa';

echo "<h2>KYC Test Sayfası</h2>";
echo "<p>Session durumu: " . ($_SESSION['loggedin'] ? 'Aktif' : 'Pasif') . "</p>";
echo "<p>Kullanıcı: " . $_SESSION['username'] . "</p>";

// Test için basit bir HTML form
?>
<!DOCTYPE html>
<html>
<head>
    <title>KYC Test</title>
</head>
<body>
    <form action="kyc_handler.php" method="POST" enctype="multipart/form-data">
        <input type="hidden" name="action" value="upload_kyc">
        
        <div>
            <label>Kimlik Ön Yüz:</label>
            <input type="file" name="kimlik_on" accept="image/*" required>
        </div>
        
        <div>
            <label>Kimlik Arka Yüz:</label>
            <input type="file" name="kimlik_arka" accept="image/*" required>
        </div>
        
        <button type="submit">Gönder</button>
    </form>
</body>
</html>