Sindbad~EG File Manager

Current Path : /home/copmadinaarea/.trash/
Upload File :
Current File : /home/copmadinaarea/.trash/test-notification.php

<?php
session_start();
require_once 'config/database.php';
require_once 'includes/functions.php';

// Check if user is logged in
if (!isset($_SESSION['user_id'])) {
    echo "Please log in first.";
    exit();
}

// Create a test notification
$user_id = $_SESSION['user_id'];
$title = "Test Notification";
$message = "This is a test notification to verify the notification system is working properly.";
$type = "info";

if (createNotification($user_id, $title, $message, $type)) {
    echo "✅ Test notification created successfully!<br>";
    echo "Check your notification bell in the header - it should show a red badge.<br>";
    echo "<a href='dashboard/" . $_SESSION['user_level'] . ".php'>Go to Dashboard</a>";
} else {
    echo "❌ Failed to create test notification.";
}
?>

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists