How hilal-verse/campus-environment-enhancement-initiative works
What this project is (type + purpose)
This is a classic PHP + MySQL monolithic web application (runs on Apache/XAMPP) for a Campus Environment Feedback/Complaint system:
• Students: register/login, submit feedback, view their own submissions and status.
• Admins: login, review all submissions, update status + add responses.
• Security: sessions, role-based access, prepared statements, password hashing.
• A browser-based UI (HTML/CSS/JS)
• A PHP server-side app (pages + action endpoints)
• A MySQL database
• Session/auth and role gates
• Admin vs student flows
Application layer (server / PHP)
Role dashboards:
• student/student_dashboard.php
• admin/admin_dashboard.php
Action endpoints (backend “controllers”):
• actions/login_form.php
• actions/sign_up_form.php
• actions/logout.php
• actions/get_complaint_details.php
• actions/update_complaint_details.php
Configuration:
• config/config.example.php (implies config/config.php exists locally with DB creds)
Data layer
• database/campus_feedback_system.sql
Documentation
• docs/Documentaion.txt (not runtime, but helps understand flows)
Browser (UI)
• Public pages: login/signup/index
• Dashboards: student/admin
Apache/PHP Runtime (Monolith App)
• Page controllers: student_dashboard.php, admin_dashboard.php
• Action endpoints: actions/*
• Auth/session + RBAC (cross-cutting)
• DB config module (config/config.php)
Architectural pattern(s) to highlight (based on structure)
This repo strongly suggests a Page Controller + Action Script pattern typical in PHP:
• Pages: public/*.html, student/*.php, admin/*.php (render UI)
• Actions: actions/*.php (handle POST/AJAX, DB operations, returns/redirects)
Also call out cross-cutting concerns:
• RBAC: routes/scripts separated by role (student vs admin)
• Session protection: enforced before serving dashboards/actions
• DB access: centralized via config + prepared statements (from README)
Labels
Use explicit labels that match the repo to reduce ambiguity:
• “Student Dashboard (student/student_dashboard.php)”
• “Admin Dashboard (admin/admin_dashboard.php)”
• “Login Handler (actions/login_form.php)”
• “Update Complaint (actions/update_complaint_details.php)”
• “DB Config (config/config.php)”
• “MySQL (campus_feedback_system)”
• “HTTP GET (HTML/CSS/JS)”
• “HTTP POST (form)”
• “AJAX JSON (if applicable)”
• “SQL SELECT/INSERT/UPDATE (prepared statements)”
Browser/UI
• Public pages (index/login/signup)
• Student dashboard
• Admin dashboard
• Loads static assets (CSS/JS)
Apache + PHP Application
• Router is implicit (file-based endpoints)
• Modules:
• actions/* (login, signup, logout, get details, update details)
• student/*
• admin/*
• Shared:
• Session/Auth/RBAC
• DB connector/config
MySQL DB
• Users/Auth tables
• Complaints/Feedback tables
Then connect:
• Browser → specific PHP scripts (by name) → DB
• DB → PHP → Browser (HTML render / JSON / redirects)