diff options
Diffstat (limited to 'api/me.php')
-rw-r--r-- | api/me.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/api/me.php b/api/me.php new file mode 100644 index 0000000..048bcd4 --- /dev/null +++ b/api/me.php @@ -0,0 +1,13 @@ +<?php + +require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/session.php"; global $isLoggedIn; +if (!$isLoggedIn) header("Location: /login") and die(); +global $_PROFILE; + +header("Content-Type: application/json"); + +if ($_PROFILE['name'] === "Cloudburst System") { + die('{"name": "Cloudburst System", "id": "cloudburst", "pluralkit": "ynmuc"}'); +} else { + die('{"name": "Raindrops System", "id": "raindrops", "pluralkit": "gdapd"}'); +} |