# connorgarbett/loginwebsite architecture

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

- Interactive diagram: https://gitdiagram.com/connorgarbett/loginwebsite
- Repository: https://github.com/connorgarbett/loginwebsite

## Overview

This is a small PHP login and registration app. A user submits the form to the PHP page, which checks credentials or registers an account using MariaDB. The page also links a stylesheet. The source excerpt shows these connections; the contents of sql.txt were not provided, so its role is omitted.

Main entry points: [`index.php`](https://github.com/connorgarbett/loginwebsite/blob/main/index.php) (Login page), [`styles.css`](https://github.com/connorgarbett/loginwebsite/blob/main/styles.css) (Page styles)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web interface"]
  node_page["Login page<br/>[index.php]"]
  node_styles["Page styles<br/>[styles.css]"]
end

subgraph group_auth["Account handling"]
  node_login["Credential check<br/>[index.php]"]
  node_registration["Account registration<br/>[index.php]"]
end

subgraph group_data["Account storage"]
  node_mariadb[("MariaDB")]
end

node_user(("User"))

node_user -->|"submits form"| node_page
node_page -->|"links stylesheet"| node_styles
node_page -->|"handles login"| node_login
node_page -->|"handles registration"| node_registration
node_login -->|"reads password hash"| node_mariadb
node_registration -->|"checks username"| node_mariadb
node_registration -->|"stores account"| node_mariadb

click node_page "https://github.com/connorgarbett/loginwebsite/blob/main/index.php"
click node_styles "https://github.com/connorgarbett/loginwebsite/blob/main/styles.css"
click node_login "https://github.com/connorgarbett/loginwebsite/blob/main/index.php"
click node_registration "https://github.com/connorgarbett/loginwebsite/blob/main/index.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_page,node_styles,node_user toneBlue
class node_login,node_registration toneAmber
class node_mariadb toneMint
```

## Components

### Web interface

- [Login page](https://github.com/connorgarbett/loginwebsite/blob/main/index.php): `index.php`
- [Page styles](https://github.com/connorgarbett/loginwebsite/blob/main/styles.css): `styles.css`

### Account handling

- [Credential check](https://github.com/connorgarbett/loginwebsite/blob/main/index.php): `index.php`
- [Account registration](https://github.com/connorgarbett/loginwebsite/blob/main/index.php): `index.php`

### Account storage

- **MariaDB**

### Other components

- **User**

## Connections

- User → Login page: submits form (evidence: `index.php`)
- Login page → Page styles: links stylesheet (evidence: `index.php`)
- Login page → Credential check: handles login (evidence: `index.php`)
- Login page → Account registration: handles registration (evidence: `index.php`)
- Credential check → MariaDB: reads password hash (evidence: `index.php`)
- Account registration → MariaDB: checks username (evidence: `index.php`)
- Account registration → MariaDB: stores account (evidence: `index.php`)
