diff options
author | RaindropsSys <contact@minteck.org> | 2023-06-25 20:10:39 +0200 |
---|---|---|
committer | RaindropsSys <contact@minteck.org> | 2023-06-25 20:10:39 +0200 |
commit | 5adf2b8517c21845dd0b406dee910514ff78640d (patch) | |
tree | 433c26dd202a8e201cef5b2ea7786e038ffd84d7 /pages/api | |
parent | 395cc068abf1aadb34be8b03e5567e24aa8a898d (diff) | |
download | pluralconnect-5adf2b8517c21845dd0b406dee910514ff78640d.tar.gz pluralconnect-5adf2b8517c21845dd0b406dee910514ff78640d.tar.bz2 pluralconnect-5adf2b8517c21845dd0b406dee910514ff78640d.zip |
Updated 6 files and added 2 files (automated)
Diffstat (limited to 'pages/api')
-rw-r--r-- | pages/api/timeline.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/pages/api/timeline.php b/pages/api/timeline.php new file mode 100644 index 0000000..392d5de --- /dev/null +++ b/pages/api/timeline.php @@ -0,0 +1,12 @@ +<?php + +require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/util/functions.inc"; global $app; +require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/util/session.inc"; global $isLoggedIn; global $isLowerLoggedIn; global $_PROFILE; + +$systems = array_filter(array_keys($_GET), function ($i) { + global $isLowerLoggedIn; global $isLoggedIn; global $app; + return $i === "gdapd" || $i === "ynmuc" || (($isLowerLoggedIn || $isLoggedIn) && $i === $app["other"]["id"]); +}); + +require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/components/timeline.inc"; +displayTimeline($systems);
\ No newline at end of file |