How abidhasan7-it/msu_campus_event_management works
1. Overall shape
- This is a classic server-rendered PHP monolith for an event management system.
- There is no separate frontend/backend split; most user actions map directly to individual .php pages that render HTML, process forms, and talk to the database.
2. Primary technology stack
- Backend: PHP.
- Persistence: MySQL/MariaDB, with schema/data setup in uevent.sql.
- UI: Bootstrap CSS plus a custom stylesheet in css/style.css.
- Shared assets include images/ and an uploads/ subfolder, suggesting event or user image/file storage.
3. Core architectural boundary: database access
- classes/db1.php is the central database helper/connection layer.
- Most business pages likely include this file directly rather than using a broader service layer, so the database access boundary is thin and tightly coupled to page handlers.
4. Authentication and session entry points
- login_form.php, register.php, and logout.php form the authentication boundary.
- index.php is the public landing page, while authenticated areas branch into admin and role-specific pages after login.
- The README exposes an admin credential pair (admin / admin123), indicating a built-in admin account for initial access or demo use.
5. Admin subsystem
- adminPage.php is the main admin dashboard.
- createEventForm.php, deleteEvent.php, viewEvent.php, and RegisteredEvents.php support event lifecycle management and monitoring.
- deleteStudent.php, updateStudent.php, and updateStaff.php indicate admin-level CRUD operations over users/records.
6. Role-specific coordinator flows
- Staff_cordinator.php and Stu_cordinator.php are separate coordinator-facing pages, implying role-based navigation and permissions.
- These likely surface different views or responsibilities for staff coordinators versus student coordinators rather than a shared generic dashboard.
7. Student/user data management
- Stu_details.php, usn.php, register.php, and updateStudent.php suggest a student record workflow centered on student identity/details.
- The presence of update/delete pages implies the system maintains mutable user records in the database, not just event registrations.
8. Event lifecycle flow
- Event creation begins in createEventForm.php, persists to the database, and is later consumed by viewEvent.php and RegisteredEvents.php.
- deleteEvent.php handles removal, so events appear to be fully managed inside the app rather than synced to external systems.
- This flow is likely the main business path: create event → register/view → manage registrations → delete when needed.
9. Shared presentation layer
- utils/header.php, utils/adminHeader.php, utils/footer.php, and utils/styles.php provide reusable page chrome and styling hooks.
- This indicates a shared layout pattern across pages, but still within a page-by-page PHP rendering model rather than a templating framework.
10. Data/files on disk
- The images/uploads directory suggests uploaded artifacts are stored locally on the web server.
- That makes file storage part of the application runtime boundary, alongside the database, rather than an external object store.
11. Likely request/data flow
- Browser requests a PHP page → page includes shared header/db helper → page reads or writes MySQL data → page renders HTML back to the browser.
- Form submissions are handled by the same page or a dedicated handler page, which keeps the architecture simple but tightly coupled.
12. What to draw in an architecture diagram
- Show a single PHP web application boundary with:
- Public/auth pages
- Admin dashboard and CRUD handlers
- Coordinator/student role pages
- Shared UI includes
- A MySQL database
- Local upload storage
- The important emphasis is that the app is a procedural, server-rendered CRUD system centered on events and user records, with role-based entry points layered over one shared database.
Main entry points: db1.php DB helper · adminPage.php Admin dashboard · index.php Home · viewEvent.php View event
Components 25
Public & auth
Landing, login, registration, and general pages
- Home · Public landing page
EventManagementSystems/index.php - Login · User sign-in form
EventManagementSystems/login_form.php - Register · User registration page
EventManagementSystems/register.php - Logout · Ends the current session
EventManagementSystems/logout.php - About us · Static informational page
EventManagementSystems/aboutus.php - Contact · Static contact page
EventManagementSystems/contact.php
Admin & management
Dashboard and CRUD pages for events and users
- Admin dashboard · Main admin entry point
EventManagementSystems/adminPage.php - Create event · Creates new events
EventManagementSystems/createEventForm.php - View event · Displays event records
EventManagementSystems/viewEvent.php - Registrations · Views registered events
EventManagementSystems/RegisteredEvents.php - Delete event · Removes events from the system
EventManagementSystems/deleteEvent.php - Update student · Edits student records
EventManagementSystems/updateStudent.php - Delete student · Removes student records
EventManagementSystems/deleteStudent.php - Update staff · Edits staff records
EventManagementSystems/updateStaff.php
Role portals
Coordinator and student-facing entry pages
- Staff coordinator · Staff coordinator entry page
EventManagementSystems/Staff_cordinator.php - Student coordinator · Student coordinator entry page
EventManagementSystems/Stu_cordinator.php - Student details · Student details workflow
EventManagementSystems/Stu_details.php - USN lookup · Student identifier lookup
EventManagementSystems/usn.php
Shared app layer
Common includes, styling, and database helper
- DB helper · Central database connection/helper
EventManagementSystems/classes/db1.php - Header · Common page header
EventManagementSystems/utils/header.php - Admin header · Admin page chrome
EventManagementSystems/utils/adminHeader.php - Footer · Common page footer
EventManagementSystems/utils/footer.php - Styles · Shared style hooks
EventManagementSystems/utils/styles.php
Connections 39
- Home → Login: sign in · Public entry to authentication
- Home → Register: sign up · Public entry to account creation
- Home → About us: info · Static navigation
- Home → Contact: info · Static navigation
- Login → DB helper: auth query · Validates credentials against the database
- Register → DB helper: insert user · Creates new user records
- Logout → Home: return · Ends session and returns to public page
- Admin dashboard → Create event: manage · Admin event creation path
- Admin dashboard → View event: manage · Admin event inspection path
- Admin dashboard → Registrations: manage · Admin registration monitoring path
- Admin dashboard → Update student: manage · Student CRUD from admin dashboard
- Admin dashboard → Delete student: manage · Student removal from admin dashboard
- Admin dashboard → Update staff: manage · Staff CRUD from admin dashboard
- Create event → DB helper: write event · Persists created events
- View event → DB helper: read event · Loads event data for display
- Registrations → DB helper: read registrations · Queries registered event records
- Delete event → DB helper: delete event · Removes event rows
- Update student → DB helper: update user · Modifies student records
- Delete student → DB helper: delete user · Removes student records
- Update staff → DB helper: update user · Modifies staff records
- Staff coordinator → View event: browse · Role-specific event access
- Staff coordinator → Registrations: monitor · Role-specific registration view
- Student coordinator → Student details: manage · Student coordinator workflow
- Student coordinator → USN lookup: lookup · USN-based student lookup
- Student details → DB helper: read/write · Student detail persistence
- USN lookup → DB helper: lookup · Retrieves student identity data
- Header → Styles: style · Shared UI composition
- Admin header → Styles: style · Admin UI composition
- Header → DB helper: include · Shared include used by pages that access data
- Admin header → DB helper: include · Admin include used by management pages
- Home → Header: include · Common page chrome
- Admin dashboard → Admin header: include · Admin page chrome
- Home → Footer: include · Common page footer
- Login → Footer: include · Common page footer
- Register → Footer: include · Common page footer
- Admin dashboard → Footer: include · Common page footer
- DB helper → Schema: schema · Database structure defined in SQL dump
- Create event → Uploads: store files · Event assets or uploads kept locally
- View event → Uploads: serve files · Displays stored uploaded assets