# jsticks779/efootball-league-manager architecture

> Architecture diagram of the GitHub repository jsticks779/efootball-league-manager, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-05). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/jsticks779/efootball-league-manager
- Repository: https://github.com/jsticks779/efootball-league-manager

## Overview

Efootball League is a PHP/MySQL tournament manager. Players register and log in, view scheduled matches and standings, submit match-fee transaction details, and follow match results; admins generate fixtures, verify payments, manage scores and users, and produce reports. The README also documents proof uploads and season reset. Database-backed behavior is visible through sampled PHP pages and db.php; other README capabilities are retained as components, but their specific wiring is not shown in the excerpts.

Main entry points: [`db.php`](https://github.com/jsticks779/efootball-league-manager/blob/master/db.php) (Database Connection), [`admin.php`](https://github.com/jsticks779/efootball-league-manager/blob/master/admin.php) (Admin Panel), [`index.php`](https://github.com/jsticks779/efootball-league-manager/blob/master/index.php) (Player Dashboard), [`login.php`](https://github.com/jsticks779/efootball-league-manager/blob/master/login.php) (Authentication)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Player Access"]
  node_welcome["Welcome<br/>[welcome.php]"]
  node_registration["Registration<br/>[register.php]"]
  node_login["Authentication<br/>[login.php]"]
end

subgraph group_competition["League Operations"]
  node_dashboard["Player Dashboard<br/>[index.php]"]
  node_scheduling["Fixture Scheduling<br/>[admin.php]"]
  node_results["Scores and Standings<br/>[admin.php]"]
  node_proof["Result Proof Upload<br/>[index.php]"]
  node_payment["Fee Submission<br/>[payment.php]"]
  node_paymentverify["Payment Submission<br/>[verify_payment.php]"]
end

subgraph group_admin["Administration"]
  node_adminpanel["Admin Panel<br/>[admin.php]"]
  node_reports["Match Reports<br/>[view_report.php]"]
  node_cleanup["Fixture Cleanup"]
  node_recalc["Stats Recalculation<br/>[recalculate.php]"]
end

subgraph group_foundation["Shared Foundation"]
  node_database[("MySQL Database")]
  node_connection["Database Connection<br/>[db.php]"]
  node_theme["Theme Preference<br/>[theme.js]"]
end

node_visitors(("Players"))
node_admin(("League Admin"))

node_visitors -->|"visit"| node_welcome
node_welcome -->|"login link"| node_login
node_welcome -->|"join link"| node_registration
node_visitors -->|"register"| node_registration
node_registration -->|"queries"| node_connection
node_visitors -->|"sign in"| node_login
node_login -->|"queries"| node_connection
node_login -->|"redirects"| node_dashboard
node_dashboard -->|"queries"| node_connection
node_dashboard -->|"payment link"| node_payment
node_dashboard -.->|"proof link"| node_proof
node_payment -->|"submits details"| node_paymentverify
node_paymentverify -->|"updates match"| node_connection
node_admin -->|"manage league"| node_adminpanel
node_adminpanel -->|"queries"| node_connection
node_adminpanel -->|"generates fixtures"| node_scheduling
node_adminpanel -->|"edits scores"| node_results
node_adminpanel -->|"report link"| node_reports
node_reports -->|"queries"| node_connection
node_adminpanel -.->|"cleanup link"| node_cleanup
node_adminpanel -.->|"recalculation link"| node_recalc
node_cleanup -->|"deletes matches"| node_connection
node_recalc -->|"reads and updates"| node_connection
node_connection -->|"connects"| node_database
node_visitors -.->|"toggle theme"| node_theme

click node_welcome "https://github.com/jsticks779/efootball-league-manager/blob/master/welcome.php"
click node_registration "https://github.com/jsticks779/efootball-league-manager/blob/master/register.php"
click node_login "https://github.com/jsticks779/efootball-league-manager/blob/master/login.php"
click node_dashboard "https://github.com/jsticks779/efootball-league-manager/blob/master/index.php"
click node_scheduling "https://github.com/jsticks779/efootball-league-manager/blob/master/admin.php"
click node_results "https://github.com/jsticks779/efootball-league-manager/blob/master/admin.php"
click node_proof "https://github.com/jsticks779/efootball-league-manager/blob/master/index.php"
click node_payment "https://github.com/jsticks779/efootball-league-manager/blob/master/payment.php"
click node_paymentverify "https://github.com/jsticks779/efootball-league-manager/blob/master/verify_payment.php"
click node_adminpanel "https://github.com/jsticks779/efootball-league-manager/blob/master/admin.php"
click node_reports "https://github.com/jsticks779/efootball-league-manager/blob/master/view_report.php"
click node_cleanup "https://github.com/jsticks779/efootball-league-manager/blob/master/clean_duplicates.php"
click node_recalc "https://github.com/jsticks779/efootball-league-manager/blob/master/recalculate.php"
click node_database "https://github.com/jsticks779/efootball-league-manager/blob/master/database/efootball_league.sql"
click node_connection "https://github.com/jsticks779/efootball-league-manager/blob/master/db.php"
click node_theme "https://github.com/jsticks779/efootball-league-manager/blob/master/theme.js"

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_welcome,node_registration,node_login toneBlue
class node_dashboard,node_scheduling,node_results,node_proof,node_payment,node_paymentverify toneAmber
class node_adminpanel,node_reports,node_cleanup,node_recalc toneMint
class node_database,node_connection,node_theme toneRose
class node_visitors,node_admin toneIndigo
```

## Components

### Player Access

- [Welcome](https://github.com/jsticks779/efootball-league-manager/blob/master/welcome.php): `welcome.php`
- [Registration](https://github.com/jsticks779/efootball-league-manager/blob/master/register.php): `register.php`
- [Authentication](https://github.com/jsticks779/efootball-league-manager/blob/master/login.php): `login.php`

### League Operations

- [Player Dashboard](https://github.com/jsticks779/efootball-league-manager/blob/master/index.php): `index.php`
- [Fixture Scheduling](https://github.com/jsticks779/efootball-league-manager/blob/master/admin.php): `admin.php`
- [Scores and Standings](https://github.com/jsticks779/efootball-league-manager/blob/master/admin.php): `admin.php`
- [Result Proof Upload](https://github.com/jsticks779/efootball-league-manager/blob/master/index.php): `index.php`
- [Fee Submission](https://github.com/jsticks779/efootball-league-manager/blob/master/payment.php): `payment.php`
- [Payment Submission](https://github.com/jsticks779/efootball-league-manager/blob/master/verify_payment.php): `verify_payment.php`

### Administration

- [Admin Panel](https://github.com/jsticks779/efootball-league-manager/blob/master/admin.php): `admin.php`
- [Match Reports](https://github.com/jsticks779/efootball-league-manager/blob/master/view_report.php): `view_report.php`
- [Fixture Cleanup](https://github.com/jsticks779/efootball-league-manager/blob/master/clean_duplicates.php): `clean_duplicates.php`
- [Stats Recalculation](https://github.com/jsticks779/efootball-league-manager/blob/master/recalculate.php): `recalculate.php`

### Shared Foundation

- [MySQL Database](https://github.com/jsticks779/efootball-league-manager/blob/master/database/efootball_league.sql): `database/efootball_league.sql`
- [Database Connection](https://github.com/jsticks779/efootball-league-manager/blob/master/db.php): `db.php`
- [Theme Preference](https://github.com/jsticks779/efootball-league-manager/blob/master/theme.js): `theme.js`

### Other components

- **Players**
- **League Admin**

## Connections

- Players → Welcome: visit (evidence: `welcome.php`)
- Welcome → Authentication: login link (evidence: `welcome.php`)
- Welcome → Registration: join link (evidence: `welcome.php`)
- Players → Registration: register (evidence: `register.php`)
- Registration → Database Connection: queries (evidence: `register.php`)
- Players → Authentication: sign in (evidence: `login.php`)
- Authentication → Database Connection: queries (evidence: `login.php`)
- Authentication → Player Dashboard: redirects (evidence: `login.php`)
- Player Dashboard → Database Connection: queries (evidence: `index.php`)
- Player Dashboard → Fee Submission: payment link (evidence: `index.php`)
- Player Dashboard → Result Proof Upload: proof link (evidence: `index.php`)
- Fee Submission → Payment Submission: submits details (evidence: `payment.php`)
- Payment Submission → Database Connection: updates match (evidence: `verify_payment.php`)
- League Admin → Admin Panel: manage league (evidence: `admin.php`)
- Admin Panel → Database Connection: queries (evidence: `admin.php`)
- Admin Panel → Fixture Scheduling: generates fixtures (evidence: `admin.php`)
- Admin Panel → Scores and Standings: edits scores (evidence: `admin.php`)
- Admin Panel → Match Reports: report link (evidence: `admin.php`)
- Match Reports → Database Connection: queries (evidence: `view_report.php`)
- Admin Panel → Fixture Cleanup: cleanup link
- Admin Panel → Stats Recalculation: recalculation link
- Fixture Cleanup → Database Connection: deletes matches (evidence: `clean_duplicates.php`)
- Stats Recalculation → Database Connection: reads and updates (evidence: `recalculate.php`)
- Database Connection → MySQL Database: connects (evidence: `db.php`)
- Players → Theme Preference: toggle theme
