#55 - 05/12/2025 20:54:22
Add detailed entry policy messages to empresa.php
Enhanced feedback for denied sector entry by outputting specific messages about bilateral free trade agreements and entry policies before the general denial message.
Versão 1.0.0
Add detailed entry policy messages to empresa.php
Enhanced feedback for denied sector entry by outputting specific messages about bilateral free trade agreements and entry policies before the general denial message.
Remove error logging and topic approval logic
Problema da criação do tópico no forum arrumado. Variavel e conexão estavam errado.
Eliminates custom error logging and reporting code, as well as the logic for handling topic approval/disapproval via POST requests. Also refactors some SQL statement handling and error catching for improved consistency and resource management.
Set minimum input value to 1 for action forms
Changed the minimum value for several <input type="number"> fields from 0 to 1 in action forms to prevent users from submitting zero-value actions. This improves validation and ensures meaningful input for campaign, health, security, reputation, and loan-related actions.
Refactor military state logic and queries
Simplifies and restructures the logic for loading military state data, handling errors, and fetching unit information. Removes complex battle and group management code from the main file, focusing on data retrieval and error handling for each area type. Also removes an unused CSS file.
Update og:image meta tag in divisao.php
Replaced dynamic military group image with a static banner image for the Open Graph og:image meta tag to ensure consistent social sharing visuals.
Handle 404 and 500 errors with HTTP response codes
Replaces calls to the 404 error page with direct HTTP response codes for 404 and 500 errors in divisao.php. This improves error handling by setting the appropriate response code instead of immediately including the error page.
Refactor military division battle logic
Simplifies and restructures the battle logic for military divisions, consolidating POST request handling and improving error reporting. Updates SQL queries for group counts, fixes parameter bindings, and unifies response messages for attack, defense, and retreat actions. Also improves code readability and maintainability by reducing repetition and grouping related logic.
Update army chief card image
Replaces the image for the army chief action card with a new file to better represent the content.
Implementa paginação e melhorias na gestão do exército
Adiciona paginação em diversas consultas SQL para recursos militares, grupos, estados, redes e organizações, melhorando a performance e usabilidade. Refatora tratamento de erros para reportar automaticamente e aprimora validações de entrada. Atualiza metadados, scripts e layout da página do exército nacional.
Restrict conflict sections to police leader
Updated conditional checks to ensure that conflict-related sections are only displayed when the current character is the police leader. This prevents unauthorized access to these sections by other users.