<?php
require_once __DIR__ . '/../auth.php';
header('Content-Type: application/json');
echo json_encode([
'ok' => true,
'authed' => $GLOBALS['__AUTHED'],
'lan' => $GLOBALS['__LAN'],
'username' => $GLOBALS['__USER']['username'] ?? null,
'is_owner' => !empty($GLOBALS['__USER']['is_owner']),
'auth_enabled' => (bool)$GLOBALS['__CFG']['auth_enabled'],
]);
← Back