How nguyenquynhtrang180206/elo_quiz works
Đấu Trường Tri Thức is a PHP/MySQL 1-vs-1 quiz arena with student and administrator areas. Students find a match, enter a live room, play a quiz, and receive an Elo update; they can also use rankings and learning-community features. Administrators manage questions, users, matches, settings, surveys, and reports. The graph emphasizes documented and indexed runtime relationships. Some admin and survey pages are represented by their exact directories because their individual implementations were not sampled.
Main entry points: admin Admin management · ThiDau.php Live quiz match · index.php Student dashboard · bootstrap.php Request bootstrap
Components 27
Web entry and shared services
- Application entry
index.php - Request bootstrap
core/bootstrap.php - Authentication
core/Auth.php - PDO database
core/Database.php - Game configuration
core/Config.php
Match and ranking
- Matchmaking
core/GhepDoi.php - Match search and room
client/timtran.php - Live quiz match
core/ThiDau.php - Match room UI
client/phong.php - Elo rating
core/Elo.php - Match modifiers
core/LoLChampions.php
Student features
- Student dashboard
client/index.php - Subject rankings
client/bxh.php - Learning community
core/CongDongHelper.php - Community pages
client/congdong.php - Friends
core/BanBeHelper.php - Notifications
core/ThongBaoHelper.php
Administration
- Admin management
admin - Question bank
admin/cauhoi.php - Question import
core/NhapCauHoi.php - Question operations
core/CauHoiHelper.php - Admin audit log
core/NhatKy.php - Pagination
core/Paginator.php - Spreadsheet export
core/XlsxWriter.php - Surveys and analytics
admin
Other components
- Student
- Administrator
Connections 35
- Student → Application entry: opens site
index.php - Administrator → Admin management: manages
- Application entry → Request bootstrap: loads
index.php - Request bootstrap → PDO database: loads
core/bootstrap.php - Request bootstrap → Authentication: loads
core/bootstrap.php - Request bootstrap → Game configuration: loads
core/bootstrap.php - PDO database → Game configuration: reads connection
core/Database.php - Match search and room → Matchmaking: uses
client/timtran.php - Match search and room → Live quiz match: uses
- Match room UI → Live quiz match: uses
client/phong.php - Match room UI → Matchmaking: uses
client/phong.php - Match room UI → Match modifiers: loads modifiers
client/phong.php - Live quiz match → Elo rating: updates rating
core/ThiDau.php - Live quiz match → Matchmaking: uses pairing
core/ThiDau.php - Live quiz match → Match modifiers: uses modifiers
core/ThiDau.php - Elo rating → Match modifiers: reads modifier
core/Elo.php - Student dashboard → Matchmaking: uses
client/index.php - Student dashboard → Learning community: uses
client/index.php - Student dashboard → Elo rating: reads ratings
client/index.php - Subject rankings → Elo rating: reads ratings
client/bxh.php - Community pages → Learning community: uses
client/congdong.php - Community pages → Notifications: uses
client/congdong.php - Student dashboard → Notifications: loads
- Question bank → Question operations: uses
admin/cauhoi.php - Question bank → Pagination: uses
admin/cauhoi.php - Question bank → Admin audit log: records actions
admin/cauhoi.php - Question import → Question operations: uses
core/NhapCauHoi.php - Admin management → Authentication: requires admin
admin/layout/header.php - Admin management → PDO database: queries data
admin/index.php - Admin management → Surveys and analytics: manages and reports
- Admin management → Admin audit log: records actions
admin/cauhoi.php - Admin management → Spreadsheet export: exports data
admin/Nhatky_xuat.php - Admin management → Pagination: paginates lists
admin/nhatky.php - Learning community → Notifications: creates alerts
core/CongDongHelper.php - Friends → Notifications: uses
core/BanBeHelper.php