<?php
error_reporting(E_ALL);
ini_set('display_errors', 1);

echo "<pre style='font-family:monospace;font-size:13px;padding:20px'>";

// Simulasi apa yang index.php lakukan
echo "--- Test session_start ---\n";
session_start();
echo "✅ OK\n\n";

echo "--- Test require db + helpers ---\n";
require_once __DIR__ . '/config/db.php';
require_once __DIR__ . '/config/helpers.php';
echo "✅ OK\n\n";

// Cek isi index.php
echo "--- Isi index.php ---\n";
$idx = file_get_contents(__DIR__ . '/index.php');
echo htmlspecialchars($idx) . "\n\n";

echo "</pre>";
?>