# ericsk-max/is-project1 architecture

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

- Interactive diagram: https://gitdiagram.com/ericsk-max/is-project1
- Repository: https://github.com/ericsk-max/is-project1

## Overview

This is a small PHP web application for account signup, login, a user dashboard, and feedback, backed by MariaDB. Visitors use the PHP pages to submit forms; the pages validate input, use shared session/security and database-connection helpers, and read or write application data. The README documents the Apache/PHP/MariaDB deployment and SQL setup. The excerpts show the page-level database operations; the schema is represented by its SQL directory. The referenced runtime config.php is not in the tree, so its setup is noted without treating the sample as the loaded config.

Main entry points: [`includes/header.php`](https://github.com/ericsk-max/is-project1/blob/main/includes/header.php) (Navigation header), [`login.php`](https://github.com/ericsk-max/is-project1/blob/main/login.php) (Login), [`includes/bootstrap.php`](https://github.com/ericsk-max/is-project1/blob/main/includes/bootstrap.php) (Session and DB helpers), [`dashboard.php`](https://github.com/ericsk-max/is-project1/blob/main/dashboard.php) (Dashboard)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_pages["Web pages"]
  node_home["Home page<br/>[index.php]"]
  node_signup["Signup<br/>[signup.php]"]
  node_login["Login<br/>[login.php]"]
  node_dashboard["Dashboard<br/>[dashboard.php]"]
  node_feedback["Feedback<br/>[feedback.php]"]
  node_logout["Logout<br/>[logout.php]"]
end

subgraph group_shared["Shared runtime"]
  node_bootstrap["Session and DB helpers<br/>[bootstrap.php]"]
  node_header["Navigation header<br/>[header.php]"]
  node_footer["Page footer<br/>[footer.php]"]
  node_dbconfig["DB config sample<br/>[config.sample.php]"]
end

subgraph group_data["Data layer"]
  node_mariadb[("MariaDB data")]
end

node_visitor(("Visitor"))

node_visitor -->|"opens"| node_home
node_visitor -->|"submits form"| node_signup
node_visitor -->|"submits form"| node_login
node_visitor -->|"submits feedback"| node_feedback
node_home -->|"loads"| node_bootstrap
node_signup -->|"loads"| node_bootstrap
node_login -->|"loads"| node_bootstrap
node_dashboard -->|"loads"| node_bootstrap
node_feedback -->|"loads"| node_bootstrap
node_logout -->|"loads"| node_bootstrap
node_home -->|"renders"| node_header
node_signup -->|"renders"| node_header
node_login -->|"renders"| node_header
node_dashboard -->|"renders"| node_header
node_feedback -->|"renders"| node_header
node_home -->|"renders"| node_footer
node_signup -->|"renders"| node_footer
node_login -->|"renders"| node_footer
node_dashboard -->|"renders"| node_footer
node_feedback -->|"renders"| node_footer
node_header -->|"links"| node_home
node_header -->|"links"| node_signup
node_header -->|"links"| node_login
node_header -->|"links"| node_feedback
node_header -->|"links"| node_dashboard
node_header -->|"links"| node_logout
node_signup -->|"checks and creates user"| node_mariadb
node_login -->|"reads credentials"| node_mariadb
node_dashboard -->|"reads profile"| node_mariadb
node_feedback -->|"saves and lists"| node_mariadb
node_bootstrap -->|"connects"| node_mariadb
node_login -->|"redirects"| node_dashboard
node_dashboard -->|"redirects unauthenticated"| node_login
node_logout -->|"redirects"| node_home
node_visitor -.->|"requests"| node_logout
node_dbconfig -.->|"copied as runtime config"| node_bootstrap

click node_home "https://github.com/ericsk-max/is-project1/blob/main/index.php"
click node_signup "https://github.com/ericsk-max/is-project1/blob/main/signup.php"
click node_login "https://github.com/ericsk-max/is-project1/blob/main/login.php"
click node_dashboard "https://github.com/ericsk-max/is-project1/blob/main/dashboard.php"
click node_feedback "https://github.com/ericsk-max/is-project1/blob/main/feedback.php"
click node_logout "https://github.com/ericsk-max/is-project1/blob/main/logout.php"
click node_bootstrap "https://github.com/ericsk-max/is-project1/blob/main/includes/bootstrap.php"
click node_header "https://github.com/ericsk-max/is-project1/blob/main/includes/header.php"
click node_footer "https://github.com/ericsk-max/is-project1/blob/main/includes/footer.php"
click node_dbconfig "https://github.com/ericsk-max/is-project1/blob/main/config.sample.php"
click node_mariadb "https://github.com/ericsk-max/is-project1/tree/main/sql"

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_home,node_signup,node_login,node_dashboard,node_feedback,node_logout toneBlue
class node_bootstrap,node_header,node_footer,node_dbconfig toneAmber
class node_mariadb toneMint
class node_visitor toneIndigo
```

## Components

### Web pages

- [Home page](https://github.com/ericsk-max/is-project1/blob/main/index.php): `index.php`
- [Signup](https://github.com/ericsk-max/is-project1/blob/main/signup.php): `signup.php`
- [Login](https://github.com/ericsk-max/is-project1/blob/main/login.php): `login.php`
- [Dashboard](https://github.com/ericsk-max/is-project1/blob/main/dashboard.php): `dashboard.php`
- [Feedback](https://github.com/ericsk-max/is-project1/blob/main/feedback.php): `feedback.php`
- [Logout](https://github.com/ericsk-max/is-project1/blob/main/logout.php): `logout.php`

### Shared runtime

- [Session and DB helpers](https://github.com/ericsk-max/is-project1/blob/main/includes/bootstrap.php): `includes/bootstrap.php`
- [Navigation header](https://github.com/ericsk-max/is-project1/blob/main/includes/header.php): `includes/header.php`
- [Page footer](https://github.com/ericsk-max/is-project1/blob/main/includes/footer.php): `includes/footer.php`
- [DB config sample](https://github.com/ericsk-max/is-project1/blob/main/config.sample.php): `config.sample.php`

### Data layer

- [MariaDB data](https://github.com/ericsk-max/is-project1/tree/main/sql): `sql`

### Other components

- **Visitor**

## Connections

- Visitor → Home page: opens (evidence: `README.md`)
- Visitor → Signup: submits form (evidence: `signup.php`)
- Visitor → Login: submits form (evidence: `login.php`)
- Visitor → Feedback: submits feedback (evidence: `feedback.php`)
- Home page → Session and DB helpers: loads (evidence: `index.php`)
- Signup → Session and DB helpers: loads (evidence: `signup.php`)
- Login → Session and DB helpers: loads (evidence: `login.php`)
- Dashboard → Session and DB helpers: loads (evidence: `dashboard.php`)
- Feedback → Session and DB helpers: loads (evidence: `feedback.php`)
- Logout → Session and DB helpers: loads (evidence: `logout.php`)
- Home page → Navigation header: renders (evidence: `index.php`)
- Signup → Navigation header: renders (evidence: `signup.php`)
- Login → Navigation header: renders (evidence: `login.php`)
- Dashboard → Navigation header: renders (evidence: `dashboard.php`)
- Feedback → Navigation header: renders (evidence: `feedback.php`)
- Home page → Page footer: renders (evidence: `index.php`)
- Signup → Page footer: renders (evidence: `signup.php`)
- Login → Page footer: renders (evidence: `login.php`)
- Dashboard → Page footer: renders (evidence: `dashboard.php`)
- Feedback → Page footer: renders (evidence: `feedback.php`)
- Navigation header → Home page: links (evidence: `includes/header.php`)
- Navigation header → Signup: links (evidence: `includes/header.php`)
- Navigation header → Login: links (evidence: `includes/header.php`)
- Navigation header → Feedback: links (evidence: `includes/header.php`)
- Navigation header → Dashboard: links (evidence: `includes/header.php`)
- Navigation header → Logout: links (evidence: `includes/header.php`)
- Signup → MariaDB data: checks and creates user (evidence: `signup.php`)
- Login → MariaDB data: reads credentials (evidence: `login.php`)
- Dashboard → MariaDB data: reads profile (evidence: `dashboard.php`)
- Feedback → MariaDB data: saves and lists (evidence: `feedback.php`)
- Session and DB helpers → MariaDB data: connects (evidence: `includes/bootstrap.php`)
- Login → Dashboard: redirects (evidence: `login.php`)
- Dashboard → Login: redirects unauthenticated (evidence: `dashboard.php`)
- Logout → Home page: redirects (evidence: `logout.php`)
- Visitor → Logout: requests
- DB config sample → Session and DB helpers: copied as runtime config (evidence: `README.md`)
