1 2 3 4 5 6 7 8 9 10 11
<?php require_once $_SERVER['DOCUMENT_ROOT'] . "/Private/SessionManager.php"; global $_PROFILE; header("Content-Type: application/json"); $a = [ "name" => $_PROFILE["name"], "id" => $_PROFILE['id'] ]; die(json_encode($a));