1; }))[0] ?? null; $gender = "other"; if (isset($id)) { $id = substr($id, 1); if (!preg_match("/[a-zA-Z0-6]/m", $id)) { header("Location: /profile/$_USER"); die(); } if (!file_exists($_SERVER['DOCUMENT_ROOT'] . "/includes/data/profiles/" . $id . ".json")) { header("Location: /profile/$_USER"); die(); } $data = json_decode(pf_utf8_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/profiles/" . $id . ".json")), true); $title_pre = $data["nick_name"] ?? $data["first_name"] . " " . $data["last_name"]; $title = "lang_profile_title"; } else { header("Location: /profile/$_USER"); die(); } require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/header.php"; require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/navigation.php"; $requests = array_reverse($data["requests"]); foreach (array_filter(scandir($_SERVER["DOCUMENT_ROOT"] . "/includes/data/people"), function ($i) { return !str_starts_with($i, "."); }) as $_id) { $_d = json_decode(file_get_contents($_SERVER["DOCUMENT_ROOT"] . "/includes/data/people/" . $_id), true); if ($_d["delta"] === $id) { $gender = $_d["gender"]; } } ?>


()
" data-bs-toggle="tooltip">

, 1fr); grid-column-gap: 20px;">
; grid-gap: 10px;">
" style="width: 64px; height: 64px; border-radius: 100%;">
( )-
">-
·
·
", "<script>", $data["contents"]) ?>