12 lines
249 B
PHP
12 lines
249 B
PHP
<?php
|
|
session_start();
|
|
header('Content-Type: application/json');
|
|
if ($_SESSION["admin"])
|
|
{
|
|
echo json_encode(array("message" => "ok", "admin" => $_SESSION["admin"]));
|
|
}
|
|
else
|
|
{
|
|
echo json_encode(array("message" => "not logged in as admin"));
|
|
}
|