How misterizraiah/gestion-stages-php works
This is a small PHP internship-management application. Users submit credentials, which are checked against the users table; successful login stores the user in the session and routes admins to the stage overview or students to their own stage dashboard. Admin review and student viewing are distinct workflows. The supplied admin page offers validation/rejection forms, but their target handler is absent from the tree; the entreprise, etudiants and stages files are empty in the supplied excerpts, so their behavior cannot be mapped.
Main entry points: login.php Sign in · admin.php Admin overview · dashboard.php Student dashboard · logout.php Sign out
Components 9
Stage workflows
- Admin overview
public/admin.php - Student dashboard
public/dashboard.php - Stages table
Presentation
- Stylesheet
public/css/style.css
Other components
- User
Connections 15
- User → Sign in: submits credentials
- Sign in → Users table: checks credentials
- Sign in → PHP session: stores user
- Sign in → Admin overview: redirects admin
- Sign in → Student dashboard: redirects student
- Admin overview → PHP session: checks role
- Admin overview → Stages table: reads all stages
- Student dashboard → PHP session: checks role
- Student dashboard → Stages table: reads user stages
- User → Sign out: requests sign out
- Sign out → PHP session: destroys session
- Sign out → Sign in: redirects
- Sign in → Stylesheet: loads
- Admin overview → Stylesheet: loads
- Student dashboard → Stylesheet: loads