sidebar: mostrar IP local del cliente al pie del menú

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Lizandro Guarnizo
2026-07-09 10:32:23 -05:00
co-authored by Claude Sonnet 4.6
parent f5b38a331e
commit 60d186253e
+3
View File
@@ -244,6 +244,9 @@ if (class_exists('ModuleRegistry', false)) {
<?= htmlspecialchars($_user_name, ENT_QUOTES, 'UTF-8') ?>
</div>
<div class="sidebar-user-role"><?= htmlspecialchars($_role_label, ENT_QUOTES, 'UTF-8') ?></div>
<div style="font-size:.68rem;color:#94a3b8;margin-top:3px;letter-spacing:.02em">
<i class="fas fa-network-wired me-1"></i><?= htmlspecialchars(trim(explode(',', $_SERVER['HTTP_X_FORWARDED_FOR'] ?? $_SERVER['HTTP_X_REAL_IP'] ?? $_SERVER['REMOTE_ADDR'] ?? '')[0])) ?>
</div>
</div>
</nav>