<?php
require __DIR__ . '/config.php';
$user = $_SESSION['committee_user'] ?? '';
if (!$user || !isset($CEGIC_ACCOUNTS[$user])) cegic_json(['ok' => false]);
$account = $CEGIC_ACCOUNTS[$user];
cegic_json(['ok' => true, 'user' => $user, 'name' => $account['name'], 'icon' => $account['icon']]);
