Dedup Notications code and move to a modal instead of a drop menu

This commit is contained in:
johnnyq
2025-02-08 19:54:49 -05:00
parent 4ed0767f1c
commit a69b60703b
5 changed files with 82 additions and 74 deletions

View File

@@ -35,6 +35,8 @@ if (isset($_GET['dismiss_notification'])) {
if (isset($_GET['dismiss_all_notifications'])) {
validateCSRFToken($_GET['csrf_token']);
$sql = mysqli_query($mysqli,"SELECT * FROM notifications WHERE notification_user_id = $session_user_id AND notification_dismissed_at IS NULL");
$num_notifications = mysqli_num_rows($sql);