Banner do POLIHOS - Simulador de políticas e economia

Registros de alterações do POLIHOS.com

Versão 1.0.0

Registro público de alterações

18/01/2026

  1. #145 - 18/01/2026 17:56:21

    Ensure string type for nl2br usage across codebase

    Refactored multiple files to explicitly cast variables to string before passing them to nl2br, preventing potential type errors and ensuring consistent output formatting. Also added null coalescing operators to date handling in some files to avoid errors when date fields are missing.

  2. #144 - 18/01/2026 17:56:21

    Improve error handling and reporting in auth flows

    Refactored login, registration, and recovery scripts to use a centralized automatic error reporting mechanism. Standardized error responses to use 'aviso' and improved user feedback. Updated email footer links to use .php extensions. Removed unused backup files.

17/01/2026

  1. #143 - 17/01/2026 01:58:02

    Comment out AdSense loading and disable color toggle

    AdSense loading calls have been commented out in all cookie notice scripts to prevent automatic ad loading. The HTML color toggle logic is now disabled by wrapping it in an `if(false)` block, likely for debugging or to temporarily remove the feature.

  2. #142 - 17/01/2026 00:36:40

    Update favicon assets and manifest, improve icon usage

    Moved and expanded favicon assets to 'imagem/icone', added multiple icon formats and sizes, and updated .htaccess to serve the new PNG favicon. The manifest.webmanifest was enhanced with new metadata, icon references, and categories. Updated header.php to check for user ID before showing notifications, and improved icon display in sobre/polihos.php to reflect new assets.

16/01/2026

  1. #141 - 16/01/2026 20:58:23

    Security hardening: CSP headers, nonce support and image handler cleanup

    Implements centralized security headers using auto_prepend_file.

    Removes redundant onerror handlers from avatar and profile images across multiple PHP files.

    Adds nonce support to inline scripts to ensure full CSP compliance.

    Updates manifest.webmanifest icons and metadata.

    Cleans up unused duplicated error report files.

  2. #140 - 16/01/2026 20:58:23

    Improve text overflow handling and limit topic titles

    Added 'line-break: anywhere' to relevant CSS classes to improve word breaking and text overflow in topic and comment displays. Introduced a PHP function to limit topic title length in the topic list and updated the database insert to restrict title length to 120 characters.

  3. #139 - 16/01/2026 04:26:53

    Improve meta tags and fix notification link parameter

    Enhanced meta tags for social sharing and SEO in comentario.php and topico.php, including better descriptions, Open Graph, and Twitter Card support. Also fixed a URL parameter in configuracao.php from '&local=1' to '?local=1' for correct navigation.

  4. #138 - 16/01/2026 03:50:53

    Implement user notifications module and UI improvements

    Added a notifications section to user configuration with pagination, mark-as-read (single and all), and improved notification display. Updated CSS for notification UI, badges, and responsive design. Modified session handling to include unread notification count and updated navigation/header to show notification badges. Also improved date formatting for comments and topics, and included Font Awesome for icons.

15/01/2026

  1. #137 - 15/01/2026 22:57:31

    Improve pagination UI and update category labels

    Refactored pagination in comentario.php and topico.php to include a summary of displayed results and improved layout using a new .table-pagination container. Updated category 5 icon and label in index.php from 'Updates' to 'Atualizações'. Enhanced CSS for comment rows, pagination, and word breaking in topico.css for better readability and layout consistency.

  2. #136 - 15/01/2026 20:03:28

    Add pagination and info to comunidade topics list

    Implemented server-side pagination for the comunidade topics list, including calculation of total pages, current page, and offset. Updated the UI to display pagination controls and information about the current range of topics shown. Adjusted CSS for pagination layout and improved consistency. Minor text change from UTC to GMT in topic metadata. Added line-height to global background CSS for consistency.

Voltar ao topo ↑