summaryrefslogtreecommitdiff
path: root/api/me.php
blob: 385e66280a8c1ba712d069bd64e9015949665990 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<?php

require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/session.inc"; global $isLoggedIn;
if (!$isLoggedIn) header("Location: /-/login") and die();
global $_PROFILE;

header("Content-Type: application/json");

if ($_PROFILE['login'] === "raindrops") {
    die('{"name": "Raindrops System", "id": "raindrops", "pluralkit": "gdapd"}');
} else {
    die('{"name": "Cloudburst System", "id": "cloudburst", "pluralkit": "ynmuc"}');
}