feat: added adminpanel with overview; added holiday page with functionality; added payout page + functionality; added notification Feature

This commit is contained in:
Ioannis20x
2025-07-08 12:31:34 +02:00
parent f64500c9a0
commit a2bfd6079c
5 changed files with 155 additions and 3 deletions

19
get_notifications.php Normal file
View File

@@ -0,0 +1,19 @@
<?php
require 'config.php';
require 'db.php';
$result = $dbhandle->query("
SELECT n.id, u.discord_name, n.message, n.type, n.created_at
FROM notifications n
JOIN users u ON n.user_id = u.id
WHERE n.is_read = 0
ORDER BY n.created_at DESC
");
while ($row = $result->fetch_assoc()) {
echo "<div class='notif'>";
echo "<b>".htmlspecialchars($row['discord_name'])."</b> ";
echo htmlspecialchars($row['message']);
echo " <small>(".htmlspecialchars($row['created_at']).")</small>";
echo "</div>";
}