From 3d1cd02f27518f1a04374c7c8320cd5d82ede6e9 Mon Sep 17 00:00:00 2001 From: Minteck Date: Thu, 23 Feb 2023 19:34:56 +0100 Subject: Updated 40 files, added 37 files, deleted 1103 files and renamed 3905 files (automated) --- pages/dashboard.inc | 231 ---------------------------------------------------- 1 file changed, 231 deletions(-) delete mode 100644 pages/dashboard.inc (limited to 'pages/dashboard.inc') diff --git a/pages/dashboard.inc b/pages/dashboard.inc deleted file mode 100644 index 08e063b..0000000 --- a/pages/dashboard.inc +++ /dev/null @@ -1,231 +0,0 @@ - - -
-
-
-

Date

- - -
-

Next fronters (edit)

- - -
Fronters today
-
    - $id): $member = getMemberWithoutSystem($id[0]); ?> -
  • - - Merged members - - " style="height: 24px; vertical-align: middle;"> - - - and " style="height: 24px; vertical-align: middle;"> - - with " style="height: 24px; vertical-align: middle;"> - and " style="height: 24px; vertical-align: middle;"> - -
  • - -
- -
Fronters tomorrow
-
    - $id): $member = getSystemMember($_PROFILE["login"] === "raindrops" ? "gdapd" : "ynmuc", $id[0]); ?> -
  • - - Merged members - - " style="height: 24px; vertical-align: middle;"> - - - and " style="height: 24px; vertical-align: middle;"> - - with " style="height: 24px; vertical-align: middle;"> - and " style="height: 24px; vertical-align: middle;"> - -
  • - -
- -
Fronters on
-
    - $id): $member = getSystemMember($_PROFILE["login"] === "raindrops" ? "gdapd" : "ynmuc", $id[0]); ?> -
  • - - Merged members - - " style="height: 24px; vertical-align: middle;"> - - - and " style="height: 24px; vertical-align: middle;"> - - with " style="height: 24px; vertical-align: middle;"> - and " style="height: 24px; vertical-align: middle;"> - -
  • - -
- -
-

Next events

- parseFile($_SERVER['DOCUMENT_ROOT'] . "/includes/data/calendar/calendar.ics"); - $events = []; - - foreach ($cal->getEvents()->sorted() as $event) { - $events[] = [ - "id" => $event['UID'], - "date" => [ - "created" => $event['CREATED']->format('c'), - "modified" => $event['LAST-MODIFIED']->format('c'), - "start" => $event['DTSTART']->format('c'), - "end" => $event['DTEND']->format('c'), - "duration" => strtotime($event['DTEND']->format('c')) - strtotime($event['DTSTART']->format('c')), - "full_day" => strtotime($event['DTEND']->format('c')) - strtotime($event['DTSTART']->format('c')) >= 86400, - "days" => ( - strtotime($event['DTEND']->format('c')) - strtotime($event['DTSTART']->format('c')) >= 86400 ? - round((strtotime($event['DTEND']->format('c')) - strtotime($event['DTSTART']->format('c'))) / 86400) : - null - ) - ], - "name" => $event['SUMMARY'], - "description" => $event['DESCRIPTION'] ?? "", - ]; - } - - $events = array_values(array_filter($events, function ($i) { - return ( - strtotime($i["date"]["end"]) > time() && - strtotime($i["date"]["start"]) < time() + 2629800 - ); - })); - - ?> -
    - -
  • - - - - Started , ends - - - - · - - - - - · - - - for - · - -
  • - -
-
-
- - -- cgit