summaryrefslogtreecommitdiff
path: root/Authentication/Username/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'Authentication/Username/index.php')
-rw-r--r--Authentication/Username/index.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/Authentication/Username/index.php b/Authentication/Username/index.php
new file mode 100644
index 0000000..63b4aed
--- /dev/null
+++ b/Authentication/Username/index.php
@@ -0,0 +1,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)); \ No newline at end of file