summaryrefslogtreecommitdiff
path: root/pages/api/timeline.php
blob: ccd19f9e8637b91d135531cebef5427c7e624a3b (plain)
1
2
3
4
5
6
7
8
9
10
11
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" || $i === "hrbom" || (($isLowerLoggedIn || $isLoggedIn) && $i === $app["other"]["id"]);
});

require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/components/timeline.inc";
displayTimeline($systems);