dashboard - first draft of complete redesign

This commit is contained in:
2026-09-03 08:19:00 +02:00
parent c5c052ac87
commit 87fc43db87
11 changed files with 759 additions and 816 deletions
@@ -9,7 +9,9 @@ if (!in_array($generalPermission, [1, '1', true, 't', 'true'], true)) {
exit();
}
contentpanel_cleanup_expired_news();
$today = date('Y-m-d');
contentpanel_cleanup_expired_news();
contentpanel_cleanup_expired_announcements($pdo, $today);
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
$action = trim((string) ($_POST['action'] ?? ''));
@@ -52,8 +54,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
$flash = $_SESSION['contentpanel_flash'] ?? null;
unset($_SESSION['contentpanel_flash']);
$today = date('Y-m-d');
$services = contentpanel_fetch_services($pdo, $today);
$services = contentpanel_fetch_services($pdo, $today);
$announcements = contentpanel_fetch_announcements($pdo, $today);
$newsItems = contentpanel_list_news();
$pdo = null;