How vijay11-08/rku_placementportal works
1. This repository is a monolithic PHP 8.2+ placement management portal backed by MySQL 8.0. The architecture is not service-based; instead, the application is split into role-specific PHP entry points and shared core files, with Bootstrap/jQuery used for the UI.
2. The main architectural boundary is role-based access. Separate top-level directories exist for Admin, TPO, Faculty, Student, and Recruiter. Each role has its own index.php and layout shell (*_layout.php), which suggests the same database and shared business rules are rendered through different permissioned interfaces.
3. The root layer contains the common application flow: landing pages, login/registration/password reset, authentication helpers, CSRF protection, rate limiting, and global layout. This is the primary ingress for the system, and most role pages appear to assume an authenticated session established here.
4. The core domain is campus recruitment drives. Drive creation, approval, listing, editing, attendance, selection reports, and student applications appear across all panels. Recruiters create or manage drives, TPO/Admin approve and review them, faculty screen students, and students browse drives and apply from the same underlying drive model.
5. Student data is a major shared subsystem. The Student panel exposes a multi-step registration/profile workflow (Step1 through Step5), academic details, projects, internships, certifications, resume checking, and profile completion calculation. The same student profile data is then consumed by faculty, TPO, admin, and recruiters for screening and portfolio review.
6. Notification handling is a distinct subsystem rather than just scattered mail calls. The notifications/ folder contains controller/service/model/view-style files plus events and an API, while root and role pages include notification views. This implies a centralized event-to-notification flow, likely backed by MySQL and surfaced through polling/AJAX in the UI.
7. Communication features are built into the portal at the role layer. There are dedicated broadcast pages for email and WhatsApp in Admin, TPO, Faculty, and Recruiter areas, plus shared mail support via PHPMailer in assets/PHPMailer and config_mail.php. That makes outbound communication a first-class business function, not an external add-on.
8. Data access is centralized around MySQL configuration files such as db_config.php and db_recruiter.php, with helper layers for auth, logging, settings, and email. The presence of models/ActivityLog.php and helpers/Logger.php indicates some shared persistence abstractions, but most business pages still appear to be self-contained PHP scripts using the common connection and helper layer.
9. The application stores uploaded artifacts in a structured uploads/ tree: resumes, student documents, drive attachments, certificates, internship proof, offers, and QR codes. This file store is part of the architecture because many workflows depend on document submission and retrieval, especially student onboarding and recruiter selection.
10. There is a small async boundary under ajax/ for dependent UI data like batches, branches, departments, divisions, and semesters. These endpoints support dynamic form behavior and likely power the filtering/search screens across the role panels.
11. Background and operational concerns are handled in a lightweight way. A cron/cleanup_logs.php job manages log cleanup, root scripts like auto_migrate.php, check_db.php, and db_inspector.php support database setup/validation, and logs/mail.log captures mail activity. This is a classic PHP deployment model with some built-in admin/maintenance tooling rather than a separate ops service.
12. Overall, the system’s critical data flows are: login/authentication into a role shell; profile/drive/student data stored in MySQL and documents in uploads/; drive approval and selection moving across Recruiter → TPO → Faculty → Student → Admin; and notifications/broadcasts propagating events back out through email, WhatsApp, and in-app notice boards.
Main entry points: db_config.php DB config · notification_service.php Notifications · index.php Student panel · CreateDrive.php Recruiter drives
Components 22
Shared core
Common ingress, auth, persistence, and cross-cutting services.
- Public entry · Landing, login, registration, reset, and session entry flow.
index.php - Auth core · Login processing, OTP/reset flow, CSRF, and rate limiting.
auth.php - Global layout · Shared site chrome used by the public-facing pages.
layout.php - DB config · Primary MySQL connection and recruiter-specific connection config.
db_config.php - Helpers · Mail, logging, settings, AJAX auth, and upload helpers.
helpers/email_helper.php - Notifications · Central notification controller, service, model, API, and events.
notifications/notification_service.php - AJAX data · Dependent dropdown and filter endpoints for batches, branches, departments, divisions, semesters.
ajax/get_batches.php
Role panels
Permissioned PHP shells and their major workflows.
- Student panel · Student-facing shell for onboarding, profile, and applications.
Student/index.php - Profile steps · Multi-step registration and profile completion workflow.
Student/Step1.php - Student docs · Academic details, projects, internships, certifications, resume checking, and uploads.
Student/AcademicDetails.php - Student drives · Drive browsing, details, applications, notice board, and notifications.
Student/PlacementDrives.php - Recruiter panel · Recruiter shell for company profile, drives, and candidate actions.
Recruiter/index.php - Recruiter drives · Create/edit drives, manage listings, applications, shortlists, selections, feedback.
Recruiter/CreateDrive.php - Faculty panel · Faculty shell for screening, drive oversight, and communications.
Faculty/index.php - Faculty review · Student review, drive attendance, selection reports, portfolios, and debar/deregistration.
Faculty/StudentPortfolio.php - TPO panel · Training and placement office shell for approvals and administration.
TPO/index.php - TPO approval · Drive approval, student approval, reports, company management, and recruitment coordination.
TPO/Placment_Drive_Approval.php - Admin panel · Admin shell for master data, settings, reports, and oversight.
Admin/index.php - Admin master · Users, branches, batches, departments, drives, logs, notices, and broadcasts.
Admin/UniversalDashboard.php
Data & assets
Database, uploads, and operational storage.
- Uploads · Structured storage for resumes, student documents, drives, offers, certificates, QR codes, and internships.
- Mail log · Captured outbound mail activity and notification traces.
logs/mail.log
Operations
Maintenance scripts and background jobs.
- Cleanup job · Log cleanup and lightweight scheduled maintenance.
cron/cleanup_logs.php
Connections 25
- Public entry → Auth core: authenticate · Public login and recovery flow establishes the session.
- Public entry → Global layout: render · Shared public pages use the common layout shell.
- Auth core → DB config: reads/writes · Authentication and session state rely on MySQL.
- Helpers → DB config: uses · Shared helpers wrap common persistence and side effects.
- Helpers → Mail log: writes · Outbound mail activity is recorded for operational traceability.
- Notifications → DB config: stores · Notifications are persisted centrally.
- Notifications → Helpers: sends · Notification delivery reuses mail and logging helpers.
- Student panel → Profile steps: navigates · Student shell exposes the registration/profile workflow.
- Student panel → Student docs: navigates · Student shell exposes academic and document management.
- Student panel → Student drives: navigates · Students browse drives, applications, and notices.
- Profile steps → DB config: persists · Profile steps save student data into MySQL.
- Student docs → Uploads: uploads · Student artifacts are stored in the uploads tree.
- Student drives → Notifications: receives · Application and status events surface through notifications.
- Recruiter panel → Recruiter drives: navigates · Recruiter shell exposes drive and candidate workflows.
- Recruiter drives → DB config: reads/writes · Drive creation, feedback, and selection operate on shared data.
- Recruiter drives → Uploads: attaches · Drive postings and related documents are stored as files.
- Faculty panel → Faculty review: navigates · Faculty shell exposes screening and report workflows.
- Faculty review → DB config: reads/writes · Faculty views and updates shared student/drive records.
- TPO panel → TPO approval: navigates · TPO shell exposes approval and reporting workflows.
- TPO approval → DB config: reads/writes · TPO approval and student management use shared MySQL data.
- Admin panel → Admin master: navigates · Admin shell exposes master data, reports, and broadcasts.
- Admin master → DB config: reads/writes · Administrative changes persist through the central database.
- Admin master → Notifications: publishes · Admin actions can trigger notices and broadcasts.
- AJAX data → DB config: reads · Async UI endpoints resolve reference data from MySQL.
- Cleanup job → Mail log: cleans · Scheduled maintenance trims operational logs.