# deniiissutl/benchwarriors architecture

> Architecture diagram of the GitHub repository deniiissutl/benchwarriors, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-23). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/deniiissutl/benchwarriors
- Repository: https://github.com/deniiissutl/benchwarriors

## Overview

Benchwarriors is a PHP gym-community web app: visitors enter through login, then browse fitness recipes, running routes, workout routines and rankings, and a user profile. The home screen summarizes daily advice and recent food and training. These pages currently render from sample arrays rather than a database; login, registration and password-reset screens exist, but the README says account forms are not yet connected to MySQL. The map preserves these documented areas while limiting edges to relationships shown in excerpts or the README.

Main entry points: [`includes/head.php`](https://github.com/deniiissutl/benchwarriors/blob/main/includes/head.php) (Shared page head), [`vistas/rutas.php`](https://github.com/deniiissutl/benchwarriors/blob/main/vistas/rutas.php) (Running routes), [`vistas/rutinas.php`](https://github.com/deniiissutl/benchwarriors/blob/main/vistas/rutinas.php) (Training routines), [`vistas/main.php`](https://github.com/deniiissutl/benchwarriors/blob/main/vistas/main.php) (Home dashboard)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Entry and accounts"]
  node_entrypoint["App entry redirect<br/>[index.php]"]
  node_login["Login<br/>[login.php]"]
  node_register["Registration<br/>[register.php]"]
  node_password["Password reset<br/>[resetpass.php]"]
end

subgraph group_fitness["Fitness content"]
  node_home["Home dashboard<br/>[main.php]"]
  node_recipes["Recipes<br/>[recetas.php]"]
  node_routes["Running routes<br/>[rutas.php]"]
  node_routines["Training routines<br/>[rutinas.php]"]
end

subgraph group_community["User and social"]
  node_profile["Profile<br/>[perfil.php]"]
end

subgraph group_shared["Shared runtime"]
  node_sampledata["Sample content data<br/>[datos.php]"]
  node_htmlhelpers["Escaping and exercise icons<br/>[funciones.php]"]
  node_head["Shared page head<br/>[head.php]"]
  node_footer["Page navigation<br/>[footer.php]"]
  node_homebutton["Home shortcut<br/>[boton-inicio.php]"]
end

node_visitor(("Visitor"))
node_maps["Google Maps"]

node_visitor -->|"opens app"| node_entrypoint
node_entrypoint -->|"redirects to"| node_login
node_visitor -.->|"submits credentials"| node_login
node_visitor -.->|"registers at"| node_register
node_visitor -.->|"requests reset"| node_password
node_home -->|"reads"| node_sampledata
node_recipes -->|"reads"| node_sampledata
node_routes -->|"reads"| node_sampledata
node_routines -->|"reads"| node_sampledata
node_profile -->|"reads"| node_sampledata
node_home -->|"includes"| node_head
node_recipes -->|"includes"| node_head
node_routes -->|"includes"| node_head
node_routines -->|"includes"| node_head
node_profile -->|"includes"| node_head
node_head -->|"loads"| node_htmlhelpers
node_home -->|"includes"| node_footer
node_recipes -->|"includes"| node_footer
node_routes -->|"includes"| node_footer
node_routines -->|"includes"| node_footer
node_profile -->|"includes"| node_footer
node_recipes -->|"includes"| node_homebutton
node_routes -->|"includes"| node_homebutton
node_routines -->|"includes"| node_homebutton
node_profile -->|"includes"| node_homebutton
node_homebutton -->|"links to"| node_home
node_routes -->|"opens map"| node_maps
node_routines -->|"renders exercise icons"| node_htmlhelpers
node_home -->|"renders exercise icons"| node_htmlhelpers

click node_entrypoint "https://github.com/deniiissutl/benchwarriors/blob/main/index.php"
click node_login "https://github.com/deniiissutl/benchwarriors/blob/main/vistas/login.php"
click node_register "https://github.com/deniiissutl/benchwarriors/blob/main/vistas/register.php"
click node_password "https://github.com/deniiissutl/benchwarriors/blob/main/vistas/resetpass.php"
click node_home "https://github.com/deniiissutl/benchwarriors/blob/main/vistas/main.php"
click node_recipes "https://github.com/deniiissutl/benchwarriors/blob/main/vistas/recetas.php"
click node_routes "https://github.com/deniiissutl/benchwarriors/blob/main/vistas/rutas.php"
click node_routines "https://github.com/deniiissutl/benchwarriors/blob/main/vistas/rutinas.php"
click node_profile "https://github.com/deniiissutl/benchwarriors/blob/main/vistas/perfil.php"
click node_sampledata "https://github.com/deniiissutl/benchwarriors/blob/main/includes/datos.php"
click node_htmlhelpers "https://github.com/deniiissutl/benchwarriors/blob/main/includes/funciones.php"
click node_head "https://github.com/deniiissutl/benchwarriors/blob/main/includes/head.php"
click node_footer "https://github.com/deniiissutl/benchwarriors/blob/main/includes/footer.php"
click node_homebutton "https://github.com/deniiissutl/benchwarriors/blob/main/includes/boton-inicio.php"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_entrypoint,node_login,node_register,node_password toneBlue
class node_home,node_recipes,node_routes,node_routines toneAmber
class node_profile toneMint
class node_sampledata,node_htmlhelpers,node_head,node_footer,node_homebutton toneRose
class node_visitor,node_maps toneIndigo
```

## Components

### Entry and accounts

- [App entry redirect](https://github.com/deniiissutl/benchwarriors/blob/main/index.php): `index.php`
- [Login](https://github.com/deniiissutl/benchwarriors/blob/main/vistas/login.php): `vistas/login.php`
- [Registration](https://github.com/deniiissutl/benchwarriors/blob/main/vistas/register.php): `vistas/register.php`
- [Password reset](https://github.com/deniiissutl/benchwarriors/blob/main/vistas/resetpass.php): `vistas/resetpass.php`

### Fitness content

- [Home dashboard](https://github.com/deniiissutl/benchwarriors/blob/main/vistas/main.php): `vistas/main.php`
- [Recipes](https://github.com/deniiissutl/benchwarriors/blob/main/vistas/recetas.php): `vistas/recetas.php`
- [Running routes](https://github.com/deniiissutl/benchwarriors/blob/main/vistas/rutas.php): `vistas/rutas.php`
- [Training routines](https://github.com/deniiissutl/benchwarriors/blob/main/vistas/rutinas.php): `vistas/rutinas.php`

### User and social

- [Profile](https://github.com/deniiissutl/benchwarriors/blob/main/vistas/perfil.php): `vistas/perfil.php`

### Shared runtime

- [Sample content data](https://github.com/deniiissutl/benchwarriors/blob/main/includes/datos.php): `includes/datos.php`
- [Escaping and exercise icons](https://github.com/deniiissutl/benchwarriors/blob/main/includes/funciones.php): `includes/funciones.php`
- [Shared page head](https://github.com/deniiissutl/benchwarriors/blob/main/includes/head.php): `includes/head.php`
- [Page navigation](https://github.com/deniiissutl/benchwarriors/blob/main/includes/footer.php): `includes/footer.php`
- [Home shortcut](https://github.com/deniiissutl/benchwarriors/blob/main/includes/boton-inicio.php): `includes/boton-inicio.php`

### Other components

- **Visitor**
- **Google Maps**

## Connections

- Visitor → App entry redirect: opens app (evidence: `README.md`)
- App entry redirect → Login: redirects to (evidence: `index.php`)
- Visitor → Login: submits credentials
- Visitor → Registration: registers at
- Visitor → Password reset: requests reset
- Home dashboard → Sample content data: reads (evidence: `vistas/main.php`)
- Recipes → Sample content data: reads (evidence: `vistas/recetas.php`)
- Running routes → Sample content data: reads (evidence: `vistas/rutas.php`)
- Training routines → Sample content data: reads (evidence: `vistas/rutinas.php`)
- Profile → Sample content data: reads (evidence: `vistas/perfil.php`)
- Home dashboard → Shared page head: includes (evidence: `vistas/main.php`)
- Recipes → Shared page head: includes (evidence: `vistas/recetas.php`)
- Running routes → Shared page head: includes (evidence: `vistas/rutas.php`)
- Training routines → Shared page head: includes (evidence: `vistas/rutinas.php`)
- Profile → Shared page head: includes (evidence: `vistas/perfil.php`)
- Shared page head → Escaping and exercise icons: loads (evidence: `includes/head.php`)
- Home dashboard → Page navigation: includes (evidence: `vistas/main.php`)
- Recipes → Page navigation: includes (evidence: `vistas/recetas.php`)
- Running routes → Page navigation: includes (evidence: `vistas/rutas.php`)
- Training routines → Page navigation: includes (evidence: `vistas/rutinas.php`)
- Profile → Page navigation: includes (evidence: `vistas/perfil.php`)
- Recipes → Home shortcut: includes (evidence: `vistas/recetas.php`)
- Running routes → Home shortcut: includes (evidence: `vistas/rutas.php`)
- Training routines → Home shortcut: includes (evidence: `vistas/rutinas.php`)
- Profile → Home shortcut: includes (evidence: `vistas/perfil.php`)
- Home shortcut → Home dashboard: links to (evidence: `includes/boton-inicio.php`)
- Running routes → Google Maps: opens map (evidence: `vistas/rutas.php`)
- Training routines → Escaping and exercise icons: renders exercise icons (evidence: `vistas/rutinas.php`)
- Home dashboard → Escaping and exercise icons: renders exercise icons (evidence: `vistas/main.php`)
