diff options
Diffstat (limited to 'pages/api/me.php')
-rw-r--r-- | pages/api/me.php | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/pages/api/me.php b/pages/api/me.php deleted file mode 100644 index 0e91189..0000000 --- a/pages/api/me.php +++ /dev/null @@ -1,39 +0,0 @@ -<?php - -$app = $GLOBALS["ColdHazeApp"]; - -require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/util/session.inc"; global $isLoggedIn; global $isLowerLoggedIn; - -header("Content-Type: application/json"); - -if (!$isLoggedIn && !$isLowerLoggedIn) die('{"valid": false}'); -global $_PROFILE; - -if ($_PROFILE['login'] === "raindrops") { - die(json_encode([ - "valid" => true, - "name" => "Raindrops System", - "id" => "raindrops", - "pluralkit" => "gdapd", - "avatar" => getAsset("gdapd"), - "email" => $_PROFILE["profile"]["email"]["email"] - ])); -} else if ($_PROFILE["login"] === "Moonglow") { - die(json_encode([ - "valid" => true, - "name" => "Moonglow", - "id" => "moonglow", - "pluralkit" => "hrbom", - "avatar" => getAsset("hrbom"), - "email" => $_PROFILE["profile"]["email"]["email"] - ])); -} else { - die(json_encode([ - "valid" => true, - "name" => $app["other"]["name"], - "id" => $app["other"]["slug"], - "pluralkit" => $app["other"]["id"], - "avatar" => getAsset($app["other"]["id"]), - "email" => $_PROFILE["profile"]["email"]["email"] - ])); -}
\ No newline at end of file |