2022-11-24 10:26:37 +00:00
|
|
|
<?php
|
|
|
|
session_start();
|
2022-12-03 12:57:42 +00:00
|
|
|
header('Content-Type: application/json');
|
2022-11-24 10:26:37 +00:00
|
|
|
if (isset($_SESSION["username"]))
|
|
|
|
{
|
2022-12-15 14:50:58 +00:00
|
|
|
echo json_encode(array("message" => "ok", "username" => $_SESSION["username"], "admin" => $_SESSION["admin"]));
|
2022-11-24 10:26:37 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
echo json_encode(array("message" => "not logged in"));
|
|
|
|
}
|