<?php
include '../includes/auth.php';
include '../includes/db.php';

// Simple test to check if headers work
header('Content-Type: text/html; charset=UTF-8');
?>
<!DOCTYPE html>
<html>
<head>
    <title>Header Test</title>
</head>
<body>
    <h1>Header Test Success!</h1>
    <p>If you can see this page, the header issue has been fixed.</p>
    <p>Event ID: <?php echo htmlspecialchars($notification_event_id ?? 'Not detected'); ?></p>
    <p>User ID: <?php echo htmlspecialchars($notification_user_id ?? 'Not detected'); ?></p>
    <p>User Role: <?php echo htmlspecialchars($notification_user_role ?? 'Not detected'); ?></p>
    
    <?php
    // Test notification rendering
    if (function_exists('render_notification_system')) {
        echo '<h2>Notification System Available</h2>';
        render_notification_system();
    } else {
        echo '<h2>Notification System Not Available</h2>';
    }
    ?>
</body>
</html>
