How leosousajesus/sistema-denuncias works
EcoAlert is a PHP web application for citizens to report environmental incidents and for staff to manage them. The main journey is report creation with location and optional image, processing and protocol issuance, then public status tracking or map viewing; staff authenticate, review and update or delete reports. The graph includes the documented geolocation integrations and admin workflow. README describes some capabilities whose wiring is not visible in sampled source; those relationships are omitted rather than inferred.
Main entry points: db.php MySQL connection · index.php Landing page · painel.php Admin dashboard · denuncia.php Report form
Components 19
Citizen reporting
- Landing page
index.php - Report form
denuncia.php - Location lookup
denuncia.php - Report processor
process/salvar_denuncia.php
Public follow-up
- Submission confirmation
sucesso.php - Protocol tracking
status.php - Incident map
mapa.php
Staff oversight
- Staff login
admin/login.php - Admin dashboard
admin/painel.php - Report management
admin/detalhe.php - Session logout
admin/logout.php
Persistence and shared UI
- Denunciation database
banco/db_sistema_denuncia.sql - MySQL connection
includes/db.php - Public header
includes/header.php - Public footer
includes/footer.php
Other components
- Citizen
- OpenStreetMap tiles
- Nominatim geocoding
- Leaflet maps
Connections 24
- Citizen → Landing page: opens
index.php - Landing page → Report form: starts report
index.php - Landing page → Protocol tracking: opens tracking
index.php - Landing page → Incident map: opens map
index.php - Report form → Location lookup: selects location
denuncia.php - Location lookup → Nominatim geocoding: reverse geocodes
README.md - Location lookup → Leaflet maps: renders picker
denuncia.php - Leaflet maps → OpenStreetMap tiles: loads tiles
- Report form → Report processor: submits form
- Report processor → MySQL connection: inserts report
process/salvar_denuncia.php - MySQL connection → Denunciation database: writes
- Report processor → Submission confirmation: redirects
process/salvar_denuncia.php - Submission confirmation → Protocol tracking: links to
sucesso.php - Protocol tracking → MySQL connection: queries protocol
status.php - Incident map → MySQL connection: queries reports
mapa.php - Incident map → Leaflet maps: renders markers
mapa.php - Staff login → MySQL connection: authenticates
- Admin dashboard → MySQL connection: queries reports
admin/painel.php - Admin dashboard → Report management: opens details
admin/detalhe.php - Report management → MySQL connection: reads and updates
admin/detalhe.php - Admin dashboard → Session logout: links logout
admin/painel.php - Session logout → Staff login: ends session
- Landing page → Public header: includes
index.php - Landing page → Public footer: includes
index.php