How rayhan-bin-maleque/campus-event-management-system works
This is a PHP/MySQL campus event management system. The main user journey is student event discovery and registration, followed by payment and ticketing; staff verify tickets and record attendance. Separate role workflows cover event creation and approval, administrative user/report/log management, and AJAX search. The map follows the documented MVC routing and sampled controller calls. Several feature paths are documented but their implementations were not sampled, so those branches are included without speculative internal call links.
Main entry points: index.php Request router · database.php MySQL database · organizer_controller.php Organizer events · student_controller.php Student participation
Components 23
Web entry
- Request router
index.php - Dynamic search
controllers/ajax_controller.php
Role workflows
- Authentication
controllers/auth_controller.php - Admin management
controllers/admin_controller.php - Organizer events
controllers/organizer_controller.php - Student participation
controllers/student_controller.php - Staff attendance
controllers/staff_controller.php - Login and registration
views/auth/login.php - Admin screens
views/admin/dashboard.php - Organizer screens
views/organizer/dashboard.php - Student screens
views/student/dashboard.php - Staff screens
views/staff/verify_ticket.php
Event operations
- Event operations
models/event_model.php - Registrations
models/registration_model.php - Payments and revenue
models/payment_model.php - Ticketing
models/ticket_model.php - Attendance
models/attendance_model.php - Event finances
models/finance_model.php
Data and security
- User records
models/user_model.php - Activity logs
models/log_model.php - MySQL database
config/database.php - Session and access helpers
config/functions.php
Other components
- Browser user
Connections 47
- Browser user → Request router: requests pages
README.md - Request router → Session and access helpers: loads helpers
index.php - Request router → MySQL database: opens connection
index.php - Request router → Authentication: routes auth
index.php - Request router → Admin management: routes admin
index.php - Request router → Organizer events: routes organizer
index.php - Request router → Student participation: routes student
index.php - Request router → Staff attendance: routes staff
index.php - Request router → Dynamic search: routes AJAX
index.php - Authentication → User records: authenticates users
controllers/auth_controller.php - Authentication → Activity logs: records activity
controllers/auth_controller.php - Authentication → Login and registration: renders forms
controllers/auth_controller.php - Admin management → User records: manages users
controllers/admin_controller.php - Admin management → Event operations: approves events
controllers/admin_controller.php - Admin management → Payments and revenue: exports revenue
controllers/admin_controller.php - Admin management → Activity logs: reviews activity
- Admin management → Admin screens: renders screens
- Organizer events → Event operations: manages events
controllers/organizer_controller.php - Organizer events → Event finances: tracks expenses
- Organizer events → Payments and revenue: reads revenue
controllers/organizer_controller.php - Organizer events → Attendance: reads attendance
controllers/organizer_controller.php - Organizer events → Activity logs: records changes
controllers/organizer_controller.php - Organizer events → Organizer screens: renders dashboard
controllers/organizer_controller.php - Student participation → Event operations: lists events
controllers/student_controller.php - Student participation → Registrations: registers students
controllers/student_controller.php - Student participation → Payments and revenue: creates payments
controllers/student_controller.php - Student participation → Ticketing: creates tickets
- Student participation → Activity logs: records activity
- Student participation → Student screens: renders screens
- Staff attendance → Event operations: lists events
controllers/staff_controller.php - Staff attendance → Attendance: creates attendance
controllers/staff_controller.php - Staff attendance → Ticketing: looks up tickets
controllers/staff_controller.php - Staff attendance → Payments and revenue: updates payment
controllers/staff_controller.php - Staff attendance → Activity logs: records activity
controllers/staff_controller.php - Staff attendance → Staff screens: renders verification
- Dynamic search → User records: searches users
- Dynamic search → Event operations: searches events
- Dynamic search → Attendance: searches attendance
- Dynamic search → Activity logs: searches logs
controllers/ajax_controller.php - Event operations → MySQL database: queries
- Registrations → MySQL database: queries
- Payments and revenue → MySQL database: queries
- Ticketing → MySQL database: queries
- Attendance → MySQL database: queries
- Event finances → MySQL database: queries
- User records → MySQL database: queries
- Activity logs → MySQL database: queries