Conn2Flow
Docs navigation

Reference / Libraries

admin-topbar.php library

Administrative admin-topbar behavior, persistence and permissions.

Path in the Gestor bibliotecas/admin-topbar.php

The header uses the server-authenticated user. Favorites live in usuarios_topbar_favoritos; width lives in usuarios_preferencias under admin_content_width. Missing columns cause reads to use defaults and writes to report unavailability.

  • admin_topbar_escape escapes UTF-8 text/attributes, substituting invalid characters.

  • admin_topbar_catalogo collects active pages in the current language, filtering module/action permissions and safe paths; it excludes mutation triggers and dynamic records.

  • admin_topbar_caminho_seguro rejects empty paths, traversal, URLs, control characters and markers.

  • admin_topbar_favoritos reads only the current user's favorites and retains authorized catalog items.

  • admin_topbar_largura_conteudo accepts normal, expanded and full; default normal.

  • admin_topbar_renderizar returns empty without a user, fills the component, injects escaped JSON state and queues admin-topbar.js.

  • admin_topbar_ajax starts interface security, requires session and POST, and adds/removes/reorders favorites or saves width. Reordering must contain exactly the current favorites without duplicates. User identity never comes from the client; 400/401/403/405/503 and 500 distinguish input, session, permission, method, schema and write errors.

See Administrative interface.

Generated functions

Generated from gestor/bibliotecas/admin-topbar.php · 7 functions

7 of 7

The Future is Hybrid: Human + AI.

Conn2Flow is the tool. If you need the Architect to design your company's strategy using this technology...

Hire Specialized Consulting