dashboard - first draft of complete redesign
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user