How aguscax/preguntados works
Cerebrito is a PHP MVC web app for quiz games and community question management. A player enters through the front controller and router, authenticates or registers, plays timed question rounds, and can view rankings and share a public profile. Editors moderate suggested and reported questions; administrators inspect statistics and manage user roles. The graph reflects documented MVC wiring and sampled controller calls; unsampled feature details are represented at the module level, so their internal links are limited to documented relationships.
Main entry points: MyDatabase.php MySQL database · Configuration.php Dependency configuration · RegistroController.php Account registration · index.php Front controller
Components 24
Request and MVC
- Front controller
index.php - Route dispatcher
helper/Router.php - Dependency configuration
app/Configuration.php - Request input
helper/Request.php - Mustache rendering
helper/MustacheRender.php - MySQL database
helper/MyDatabase.php - Quiz schema
app/sql/preguntados.sql
Accounts and profiles
- Login
app/controller/LoginController.php - Authentication data
app/model/LoginModel.php - Account registration
app/controller/RegistroController.php - Registration data
app/model/RegistroModel.php - Activation email
helper/Mailer.php - Profile and QR
app/controller/PerfilController.php - Profile data
app/model/PerfilModel.php
Quiz gameplay
- Timed quiz and proposals
app/controller/PreguntaController.php - Questions and reports
app/model/PreguntaModel.php - Ranking
app/controller/RankingController.php - Ranking data
app/model/RankingModel.php
Moderation and administration
- Question moderation
app/controller/EditorController.php - Moderation data
app/model/EditorModel.php - Admin dashboard and roles
app/controller/AdministradorController.php - Admin statistics and users
app/model/AdministradorModel.php - PNG chart renderer
helper/CpChartLib.php
Other components
- Web user
Connections 26
- Web user → Front controller: sends request
README.md - Front controller → Route dispatcher: dispatches
README.md - Front controller → Dependency configuration: creates
index.php - Route dispatcher → Dependency configuration: requests controller
helper/Router.php - Dependency configuration → Mustache rendering: constructs
app/Configuration.php - Dependency configuration → MySQL database: constructs
app/Configuration.php - MySQL database → Quiz schema: uses schema
README.md - Login → Authentication data: authenticates with
README.md - Account registration → Registration data: registers through
README.md - Account registration → Activation email: sends activation
app/Configuration.php - Account registration → Request input: reads input
app/controller/RegistroController.php - Profile and QR → Profile data: reads and updates
app/controller/PerfilController.php - Profile and QR → Mustache rendering: renders profile
README.md - Timed quiz and proposals → Questions and reports: loads and records
app/controller/PreguntaController.php - Question moderation → Moderation data: moderates with
app/controller/EditorController.php - Question moderation → Request input: reads input
app/controller/EditorController.php - Admin dashboard and roles → Admin statistics and users: queries and updates
app/controller/AdministradorController.php - Admin dashboard and roles → PNG chart renderer: renders chart
app/controller/AdministradorController.php - Ranking → Ranking data: loads ranking
README.md - Authentication data → MySQL database: queries
README.md - Registration data → MySQL database: queries
README.md - Profile data → MySQL database: queries
README.md - Questions and reports → MySQL database: queries
README.md - Moderation data → MySQL database: queries
README.md - Admin statistics and users → MySQL database: queries
README.md - Ranking data → MySQL database: queries
README.md