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"]))
|
|
|
|
{
|
|
|
|
echo json_encode(array("message" => "ok"));
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
echo json_encode(array("message" => "not logged in"));
|
|
|
|
}
|