<?php
// Enable error display
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);

echo "<h2>Testing email_login_notification.php</h2>";
echo "<hr>";

$file = __DIR__ . '/dashboard/email_login_notification.php';

if (file_exists($file)) {
    echo "✓ File exists: $file<br><br>";
    
    echo "<h3>File Contents:</h3>";
    echo "<pre style='background:#f5f5f5; padding:10px;'>";
    echo htmlspecialchars(file_get_contents($file));
    echo "</pre>";
    
    echo "<hr>";
    echo "<h3>Testing if file can be included:</h3>";
    
    // Set up minimal environment
    session_start();
    $_SESSION['uname'] = 'stanlee';
    
    try {
        include_once($file);
        echo "✓ File included successfully!<br>";
    } catch (Exception $e) {
        echo "✗ Error including file: " . $e->getMessage() . "<br>";
    }
} else {
    echo "✗ File NOT found: $file<br>";
}
?>
