Date
Next fronters (edit)
Fronters today
$id): $member = getMemberWithoutSystem($id[0]); ?>
-
Merged members
" style="height: 24px; vertical-align: middle;"> = getMiniName($member["display_name"] ?? $member["name"]) ?>
and " style="height: 24px; vertical-align: middle;"> = getMiniName($member2["display_name"] ?? $member2["name"]) ?>
with " style="height: 24px; vertical-align: middle;"> = getMiniName($member2["display_name"] ?? $member2["name"]) ?>
and " style="height: 24px; vertical-align: middle;"> = getMiniName($member2["display_name"] ?? $member2["name"]) ?>
Fronters tomorrow
$id): $member = getSystemMember($_PROFILE["login"] === "raindrops" ? "gdapd" : "ynmuc", $id[0]); ?>
-
Merged members
" style="height: 24px; vertical-align: middle;"> = getMiniName($member["display_name"] ?? $member["name"]) ?>
and " style="height: 24px; vertical-align: middle;"> = getMiniName($member2["display_name"] ?? $member2["name"]) ?>
with " style="height: 24px; vertical-align: middle;"> = getMiniName($member2["display_name"] ?? $member2["name"]) ?>
and " style="height: 24px; vertical-align: middle;"> = getMiniName($member2["display_name"] ?? $member2["name"]) ?>
Fronters on = date('l', time() + 172800) ?>
$id): $member = getSystemMember($_PROFILE["login"] === "raindrops" ? "gdapd" : "ynmuc", $id[0]); ?>
-
Merged members
" style="height: 24px; vertical-align: middle;"> = getMiniName($member["display_name"] ?? $member["name"]) ?>
and " style="height: 24px; vertical-align: middle;"> = getMiniName($member2["display_name"] ?? $member2["name"]) ?>
with " style="height: 24px; vertical-align: middle;"> = getMiniName($member2["display_name"] ?? $member2["name"]) ?>
and " style="height: 24px; vertical-align: middle;"> = getMiniName($member2["display_name"] ?? $member2["name"]) ?>
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 = timeAgo($event["date"]["start"]) ?>, ends = timeIn($event["date"]["end"]) ?>
= ucfirst(relativeDate($event["date"]["start"], false)) ?>
·
= ucfirst(relativeDate($event["date"]["start"])) ?>
·
for = duration($event["date"]["duration"]) ?>
·
= $event["name"] ?>