How guilletacacho/preguntados-pwii works
Preguntados is a PHP/MySQL trivia site. Players register or sign in, play timed category-based question rounds, and can review results, suggest questions, or report errors; moderators process suggestions and reports and manage questions/categories, while administrators manage accounts and review statistics and administrative history. The graph separates these domain stages and the MVC, routing, and persistence layers. Some capabilities are documented but their implementation was not sampled, so those links are dashed; the README also references SQL and configuration files absent from the supplied tree.
Main entry points: Configuration.php Controller factory · MyDatabase.php MySQL database · ModeradorPreguntasController.php Question and category management · PartidaController.php Timed gameplay
Components 21
Runtime
- Request router
helper/Router.php - Controller factory
app/Configuration.php
Player experience
- Login
app/controller/LoginController.php - Registration
app/controller/RegistroController.php - Email verification
app/controller/EmailController.php - Home and curiosities
app/controller/HomeController.php - Timed gameplay
app/controller/PartidaController.php - Adaptive difficulty
helper/Dificultad.php - Rankings
app/controller/RankingController.php - Player profile
app/controller/PerfilController.php - Presence
app/controller/PresenceController.php - Question suggestions
app/model/SugerenciaModel.php
Moderation
- Question and category management
app/controller/ModeradorPreguntasController.php - Question reports
app/controller/ModeradorReportesController.php - Suggestion review
app/controller/ModeradorSugerenciasController.php
Administration
- Accounts and statistics
app/controller/AdminController.php
Application services
- MySQL database
helper/MyDatabase.php - Template rendering
helper/MustacheRender.php - SMTP mail
helper/MailHelper.php - SMTP service
Other components
- Site user
Connections 30
- Site user → Request router: sends requests
- Request router → Controller factory: resolves controller
helper/Router.php - Controller factory → Login: constructs
app/Configuration.php - Controller factory → Registration: constructs
app/Configuration.php - Controller factory → Email verification: constructs
app/Configuration.php - Controller factory → Home and curiosities: constructs
app/Configuration.php - Controller factory → Timed gameplay: constructs
app/Configuration.php - Controller factory → Rankings: constructs
app/Configuration.php - Controller factory → Question and category management: constructs
app/Configuration.php - Controller factory → Question reports: constructs
app/Configuration.php - Controller factory → Suggestion review: constructs
app/Configuration.php - Controller factory → Accounts and statistics: constructs
app/Configuration.php - Controller factory → MySQL database: creates connection
app/Configuration.php - Controller factory → Template rendering: creates renderer
app/Configuration.php - Registration → SMTP mail: uses mailer
app/Configuration.php - SMTP mail → SMTP service: sends messages
- Timed gameplay → Adaptive difficulty: uses rules
app/controller/PartidaController.php - Request router → Timed gameplay: closes active game
helper/Router.php - Question suggestions → Suggestion review: stores suggestions
- Question and category management → Suggestion review: reviews suggestions
- Question and category management → Question reports: manages reports
- Login → MySQL database: reads credentials
- Registration → MySQL database: stores account
- Timed gameplay → MySQL database: stores game data
- Rankings → MySQL database: reads rankings
- Player profile → MySQL database: reads profile
- Presence → MySQL database: updates presence
- Question and category management → MySQL database: updates questions
- Question reports → MySQL database: updates reports
- Accounts and statistics → MySQL database: manages accounts