summaryrefslogtreecommitdiff
path: root/Authentication/Username/index.php
blob: 9a848709180d2f8983b34571c5d5d748d6e44bd8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
<?php

require_once $_SERVER['DOCUMENT_ROOT'] . "/Private/SessionManager.php"; global $_PROFILE;
header("Content-Type: application/json");

$a = [
    "name" => $_PROFILE["name"],
    "id" => $_PROFILE['id'],
    "system" => json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/Private/Data/Systems.json"), true)[$_PROFILE['id']],
];

die(json_encode($a));