<?php require_once __DIR__ . '/includes/auth.php'; ?>
<?php
// Enable error reporting
error_reporting(E_ALL);
ini_set('display_errors', 1);

// Test basic PHP
echo "PHP is working<br>";

// Test includes
echo "Testing includes...<br>";
try {
    include 'includes/auth.php';
    echo "auth.php included successfully<br>";
} catch (Exception $e) {
    echo "Error including auth.php: " . $e->getMessage() . "<br>";
}

try {
    include 'includes/header.php';
    echo "header.php included successfully<br>";
} catch (Exception $e) {
    echo "Error including header.php: " . $e->getMessage() . "<br>";
}

// Test database
echo "Testing database...<br>";
try {
    $conn = getDBConnection();
    echo "Database connected successfully<br>";
    $conn->close();
} catch (Exception $e) {
    echo "Database error: " . $e->getMessage() . "<br>";
}

echo "Test completed<br>";
?>
