<?php
// Simple test file to check PHP functionality
echo "PHP is working!<br>";
echo "Current directory: " . __DIR__ . "<br>";
echo "File exists: " . (file_exists(__DIR__ . '/head_judge_override.php') ? 'YES' : 'NO') . "<br>";

// Test database connection
try {
    include '../includes/db.php';
    echo "Database connection: OK<br>";
    
    // Test auth file
    include '../includes/auth.php';
    echo "Auth file loaded: OK<br>";
    
    echo "Session status: " . session_status() . "<br>";
    echo "Session data: <pre>" . print_r($_SESSION, true) . "</pre>";
    
} catch (Exception $e) {
    echo "Error: " . $e->getMessage() . "<br>";
}
?>
