How shahriarkabirayon/prison-management-system works
PMS is a PHP/MySQL web application for managing prison operations. A user signs in, reaches an authenticated dashboard, and follows links to manage prisoner and staff records, prison infrastructure, task assignments, visitor registrations and visits, and medical records. These are largely direct PHP pages that query or update the shared relational database; role checks protect selected operations. The graph preserves README-described capabilities, while some page-to-database links rely on the SOURCE INDEX rather than displayed excerpts, so those links are cited only where supported.
Main entry points: index.php Operations dashboard · pms.sql PMS relational data · view.php Prisoner records · login.php Sign in
Components 15
Access and navigation
- Sign in
PMS/auth/login.php - Session and roles
PMS/includes/auth.php - Operations dashboard
PMS/index.php
People and infrastructure
- Prisoner records
PMS/prisoners/view.php - Staff records
PMS/staff - User accounts
PMS/users - Prisons, blocks, cells
PMS/cells
Prison operations
- Task assignments
PMS/tasks - Visitor records
PMS/visitors - Prisoner visits
PMS/visits - Medical histories
PMS/medical
Persistence
- MySQL connection
PMS/config/db.php - PMS relational data
PMS/pms.sql
Other components
- PMS user
- MySQL server
Connections 26
- PMS user → Sign in: signs in
README.md - Sign in → Session and roles: loads session auth
PMS/auth/login.php - Sign in → MySQL connection: loads connection
PMS/auth/login.php - Operations dashboard → Session and roles: requires login
PMS/index.php - Operations dashboard → Prisoner records: links to
PMS/index.php - Operations dashboard → Staff records: links to
PMS/index.php - Operations dashboard → User accounts: links to
PMS/index.php - Operations dashboard → Prisons, blocks, cells: links to
PMS/index.php - Operations dashboard → Task assignments: links to
PMS/index.php - Operations dashboard → Visitor records: links to
PMS/index.php - Operations dashboard → Prisoner visits: links to
PMS/index.php - Operations dashboard → Medical histories: links to
PMS/index.php - Prisoner records → Task assignments: queries assignments
PMS/prisoners/view.php - Prisoner records → Prisoner visits: queries visit history
PMS/prisoners/view.php - Prisoner records → Medical histories: queries medical history
PMS/prisoners/view.php - MySQL connection → MySQL server: connects to
PMS/config/db.php - Sign in → PMS relational data: queries account data
PMS/auth/login.php - Prisoner records → PMS relational data: reads and updates
PMS/prisoners/view.php - Staff records → PMS relational data: reads and updates
PMS/staff/edit.php - User accounts → PMS relational data: creates accounts
PMS/users/add.php - Prisons, blocks, cells → PMS relational data: creates cells
PMS/cells/add.php - Task assignments → PMS relational data: assigns tasks
PMS/tasks/assign.php - Visitor records → PMS relational data: registers visitors
PMS/visitors/add.php - Prisoner visits → PMS relational data: records visits
PMS/visits/add.php - Medical histories → PMS relational data: records care
PMS/medical/add.php - PMS relational data → MySQL server: imported into
README.md