summaryrefslogtreecommitdiff
path: root/pages/api/timeline.php
diff options
context:
space:
mode:
Diffstat (limited to 'pages/api/timeline.php')
-rw-r--r--pages/api/timeline.php12
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