#82 - 19/12/2025 06:11:57
Update perfil.php
imagem.php adicionado ao perfil de usuário
Versão 1.0.0
Update perfil.php
imagem.php adicionado ao perfil de usuário
Add dynamic image serving endpoint
Introduces imagem.php to serve images for various entity types based on query parameters. The script maps entity types to database tables and image directories, retrieves the image filename from the database, and serves the file with appropriate headers. Returns 404 if the type or image is not found.
Update gabinete.php
Alterado a condição de golpe para regime_governo < 4;
Refactor chefe de estado gabinete and improve actions
Refactored chefe_de_estado/gabinete.php to improve error handling, modularize POST actions, and enhance AJAX responses. Updated UI for action cards, navigation, and meta tags. Synchronized dissolution logic and influence deduction with chefe_de_governo/gabinete.php. Minor CSS adjustments for layout consistency.
Refatora tratamento de erros e paginação no gabinete.php (Chefe de governo)
Substitui tratamento de erros por chamadas ao relatório automático em todas as operações críticas, melhorando a padronização e rastreabilidade dos erros. Implementa paginação eficiente na listagem de regiões/estados, ajusta mensagens de retorno e corrige pequenos detalhes de nomenclatura e lógica de negócio.
Alteração no decretos.php e criação de pagina-decreto.css para o Estado
O CSS da pagina de decretos do governo regional foi excluido durante a remoção em massa, então estou criando outro arquivo com o mesmo estilo anterior.
Refactor admin/mod checks to use 'funcao' field
Replaces checks for 'adm' or 'mod' with a single check for 'funcao', simplifying permission logic for topic selection and access.
Update painel.php
Agora é mostrado as sessões recentes;
Remoção de colunas inutilizadas;
Refactor community topic and comment permissions and forms
Unified user role checks using a single 'funcao_nivel' field and centralized access levels. Replaced legacy role checks (adm, mod, tradutor) with a numeric permission system, updated all permission checks and user role displays, and improved error handling for all actions. All forms now use AJAX-friendly classes, and avatar images have fallback handlers. Also added support for new JavaScript form handler and improved code structure for POST actions.
Improve avatar selection and error handling in character creation
Refactored avatar array to support user-uploaded images and updated image path logic. Enhanced error handling by simplifying exception blocks and improving file existence checks. Fixed issues with avatar image display and added a check to prevent users from having more than one living character.