# abdulrahman-it/ehtiyaj architecture

> Architecture diagram of the GitHub repository abdulrahman-it/ehtiyaj, 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/abdulrahman-it/ehtiyaj
- Repository: https://github.com/abdulrahman-it/ehtiyaj

## Overview

Ehtiya is a student-support web application: students create and browse study-help requests, submit offers, and use conversations after offers are accepted; account, notification, and administration features support that activity. The graph separates those domain capabilities from shared PHP bootstrap and helper layers. The excerpts establish selected database reads, shared dependencies, and image-upload behavior; other listed capabilities are included from the file tree and SOURCE INDEX without assuming unshown call flows.

Main entry points: [`Ehtiya/htdocs/includes/bootstrap.php`](https://github.com/abdulrahman-it/ehtiyaj/blob/main/Ehtiya/htdocs/includes/bootstrap.php) (Shared bootstrap), [`Ehtiya/htdocs/auth/register.php`](https://github.com/abdulrahman-it/ehtiyaj/blob/main/Ehtiya/htdocs/auth/register.php) (Registration and login), [`Ehtiya/htdocs/requests/index.php`](https://github.com/abdulrahman-it/ehtiyaj/blob/main/Ehtiya/htdocs/requests/index.php) (Request discovery), [`Ehtiya/htdocs/requests/create.php`](https://github.com/abdulrahman-it/ehtiyaj/blob/main/Ehtiya/htdocs/requests/create.php) (Request creation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_accounts["Accounts and shared services"]
  node_auth["Registration and login<br/>[register.php]"]
  node_bootstrap["Shared bootstrap<br/>[bootstrap.php]"]
  node_config["Application configuration<br/>[config.php]"]
  node_majors["Major catalog<br/>[majors.php]"]
  node_throttle["Login throttling<br/>[login_throttle.php]"]
  node_profile["Student profile<br/>[profile.php]"]
end

subgraph group_requests["Requests and offers"]
  node_requests["Request discovery<br/>[index.php]"]
  node_request_create["Request creation<br/>[create.php]"]
  node_request_edit["Request editing<br/>[edit.php]"]
  node_request_view["Request details<br/>[view.php]"]
  node_my_requests["My requests<br/>[my.php]"]
  node_offers["Offer history<br/>[my.php]"]
  node_upload["Image upload<br/>[upload.php]"]
end

subgraph group_communication["Communication"]
  node_chat["Conversations<br/>[view.php]"]
  node_notifications["Notification inbox<br/>[index.php]"]
end

subgraph group_operations["Platform administration"]
  node_suggestions["Assistance suggestions<br/>[suggest.php]"]
  node_admin_dashboard["Admin overview<br/>[index.php]"]
  node_admin_management["Admin management<br/>[users.php]"]
  node_admin_navigation["Admin navigation helpers<br/>[navigation.php]"]
end

node_visitor(("Visitor"))
node_student(("Student"))
node_admin(("Administrator"))
node_database[("MySQL database")]

node_visitor -->|"registers or signs in"| node_auth
node_student -->|"creates request"| node_request_create
node_student -->|"browses requests"| node_requests
node_student -->|"manages offers"| node_offers
node_student -->|"opens conversation"| node_chat
node_student -->|"checks inbox"| node_notifications
node_student -->|"updates profile"| node_profile
node_admin -->|"reviews platform"| node_admin_dashboard
node_admin -->|"manages records"| node_admin_management
node_auth -->|"loads shared services"| node_bootstrap
node_auth -->|"uses login limits"| node_throttle
node_bootstrap -->|"loads configuration"| node_config
node_bootstrap -->|"loads catalog"| node_majors
node_requests -->|"loads shared services"| node_bootstrap
node_request_create -->|"loads shared services"| node_bootstrap
node_request_edit -->|"loads shared services"| node_bootstrap
node_request_view -->|"loads shared services"| node_bootstrap
node_my_requests -->|"loads shared services"| node_bootstrap
node_offers -->|"loads shared services"| node_bootstrap
node_request_create -->|"uses image handling"| node_upload
node_request_edit -->|"uses image handling"| node_upload
node_chat -->|"uses image handling"| node_upload
node_requests -->|"queries requests"| node_database
node_notifications -->|"reads and updates"| node_database
node_offers -->|"updates offers"| node_database
node_admin -.->|"uses navigation helpers"| node_admin_navigation

click node_auth "https://github.com/abdulrahman-it/ehtiyaj/blob/main/Ehtiya/htdocs/auth/register.php"
click node_bootstrap "https://github.com/abdulrahman-it/ehtiyaj/blob/main/Ehtiya/htdocs/includes/bootstrap.php"
click node_config "https://github.com/abdulrahman-it/ehtiyaj/blob/main/Ehtiya/htdocs/config/config.php"
click node_majors "https://github.com/abdulrahman-it/ehtiyaj/blob/main/Ehtiya/htdocs/includes/majors.php"
click node_throttle "https://github.com/abdulrahman-it/ehtiyaj/blob/main/Ehtiya/htdocs/includes/login_throttle.php"
click node_profile "https://github.com/abdulrahman-it/ehtiyaj/blob/main/Ehtiya/htdocs/student/profile.php"
click node_requests "https://github.com/abdulrahman-it/ehtiyaj/blob/main/Ehtiya/htdocs/requests/index.php"
click node_request_create "https://github.com/abdulrahman-it/ehtiyaj/blob/main/Ehtiya/htdocs/requests/create.php"
click node_request_edit "https://github.com/abdulrahman-it/ehtiyaj/blob/main/Ehtiya/htdocs/requests/edit.php"
click node_request_view "https://github.com/abdulrahman-it/ehtiyaj/blob/main/Ehtiya/htdocs/requests/view.php"
click node_my_requests "https://github.com/abdulrahman-it/ehtiyaj/blob/main/Ehtiya/htdocs/requests/my.php"
click node_offers "https://github.com/abdulrahman-it/ehtiyaj/blob/main/Ehtiya/htdocs/offers/my.php"
click node_upload "https://github.com/abdulrahman-it/ehtiyaj/blob/main/Ehtiya/htdocs/includes/upload.php"
click node_chat "https://github.com/abdulrahman-it/ehtiyaj/blob/main/Ehtiya/htdocs/chat/view.php"
click node_notifications "https://github.com/abdulrahman-it/ehtiyaj/blob/main/Ehtiya/htdocs/notifications/index.php"
click node_suggestions "https://github.com/abdulrahman-it/ehtiyaj/blob/main/Ehtiya/htdocs/assistance-types/suggest.php"
click node_admin_dashboard "https://github.com/abdulrahman-it/ehtiyaj/blob/main/Ehtiya/htdocs/admin/index.php"
click node_admin_management "https://github.com/abdulrahman-it/ehtiyaj/blob/main/Ehtiya/htdocs/admin/users.php"
click node_admin_navigation "https://github.com/abdulrahman-it/ehtiyaj/blob/main/Ehtiya/htdocs/admin/includes/navigation.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_auth,node_bootstrap,node_config,node_majors,node_throttle,node_profile toneBlue
class node_requests,node_request_create,node_request_edit,node_request_view,node_my_requests,node_offers,node_upload,node_database toneAmber
class node_chat,node_notifications toneMint
class node_suggestions,node_admin_dashboard,node_admin_management,node_admin_navigation toneRose
class node_visitor,node_student,node_admin toneIndigo
```

## Components

### Accounts and shared services

- [Registration and login](https://github.com/abdulrahman-it/ehtiyaj/blob/main/Ehtiya/htdocs/auth/register.php): `Ehtiya/htdocs/auth/register.php`
- [Shared bootstrap](https://github.com/abdulrahman-it/ehtiyaj/blob/main/Ehtiya/htdocs/includes/bootstrap.php): `Ehtiya/htdocs/includes/bootstrap.php`
- [Application configuration](https://github.com/abdulrahman-it/ehtiyaj/blob/main/Ehtiya/htdocs/config/config.php): `Ehtiya/htdocs/config/config.php`
- [Major catalog](https://github.com/abdulrahman-it/ehtiyaj/blob/main/Ehtiya/htdocs/includes/majors.php): `Ehtiya/htdocs/includes/majors.php`
- [Login throttling](https://github.com/abdulrahman-it/ehtiyaj/blob/main/Ehtiya/htdocs/includes/login_throttle.php): `Ehtiya/htdocs/includes/login_throttle.php`
- [Student profile](https://github.com/abdulrahman-it/ehtiyaj/blob/main/Ehtiya/htdocs/student/profile.php): `Ehtiya/htdocs/student/profile.php`

### Requests and offers

- [Request discovery](https://github.com/abdulrahman-it/ehtiyaj/blob/main/Ehtiya/htdocs/requests/index.php): `Ehtiya/htdocs/requests/index.php`
- [Request creation](https://github.com/abdulrahman-it/ehtiyaj/blob/main/Ehtiya/htdocs/requests/create.php): `Ehtiya/htdocs/requests/create.php`
- [Request editing](https://github.com/abdulrahman-it/ehtiyaj/blob/main/Ehtiya/htdocs/requests/edit.php): `Ehtiya/htdocs/requests/edit.php`
- [Request details](https://github.com/abdulrahman-it/ehtiyaj/blob/main/Ehtiya/htdocs/requests/view.php): `Ehtiya/htdocs/requests/view.php`
- [My requests](https://github.com/abdulrahman-it/ehtiyaj/blob/main/Ehtiya/htdocs/requests/my.php): `Ehtiya/htdocs/requests/my.php`
- [Offer history](https://github.com/abdulrahman-it/ehtiyaj/blob/main/Ehtiya/htdocs/offers/my.php): `Ehtiya/htdocs/offers/my.php`
- [Image upload](https://github.com/abdulrahman-it/ehtiyaj/blob/main/Ehtiya/htdocs/includes/upload.php): `Ehtiya/htdocs/includes/upload.php`

### Communication

- [Conversations](https://github.com/abdulrahman-it/ehtiyaj/blob/main/Ehtiya/htdocs/chat/view.php): `Ehtiya/htdocs/chat/view.php`
- [Notification inbox](https://github.com/abdulrahman-it/ehtiyaj/blob/main/Ehtiya/htdocs/notifications/index.php): `Ehtiya/htdocs/notifications/index.php`

### Platform administration

- [Assistance suggestions](https://github.com/abdulrahman-it/ehtiyaj/blob/main/Ehtiya/htdocs/assistance-types/suggest.php): `Ehtiya/htdocs/assistance-types/suggest.php`
- [Admin overview](https://github.com/abdulrahman-it/ehtiyaj/blob/main/Ehtiya/htdocs/admin/index.php): `Ehtiya/htdocs/admin/index.php`
- [Admin management](https://github.com/abdulrahman-it/ehtiyaj/blob/main/Ehtiya/htdocs/admin/users.php): `Ehtiya/htdocs/admin/users.php`
- [Admin navigation helpers](https://github.com/abdulrahman-it/ehtiyaj/blob/main/Ehtiya/htdocs/admin/includes/navigation.php): `Ehtiya/htdocs/admin/includes/navigation.php`

### Other components

- **Visitor**
- **Student**
- **Administrator**
- **MySQL database**

## Connections

- Visitor → Registration and login: registers or signs in (evidence: `Ehtiya/htdocs/auth/register.php`)
- Student → Request creation: creates request (evidence: `Ehtiya/htdocs/requests/create.php`)
- Student → Request discovery: browses requests (evidence: `Ehtiya/htdocs/requests/index.php`)
- Student → Offer history: manages offers (evidence: `Ehtiya/htdocs/offers/my.php`)
- Student → Conversations: opens conversation (evidence: `Ehtiya/htdocs/chat/view.php`)
- Student → Notification inbox: checks inbox (evidence: `Ehtiya/htdocs/notifications/index.php`)
- Student → Student profile: updates profile (evidence: `Ehtiya/htdocs/student/profile.php`)
- Administrator → Admin overview: reviews platform (evidence: `Ehtiya/htdocs/admin/index.php`)
- Administrator → Admin management: manages records (evidence: `Ehtiya/htdocs/admin/users.php`)
- Registration and login → Shared bootstrap: loads shared services (evidence: `Ehtiya/htdocs/auth/register.php`)
- Registration and login → Login throttling: uses login limits
- Shared bootstrap → Application configuration: loads configuration (evidence: `Ehtiya/htdocs/includes/bootstrap.php`)
- Shared bootstrap → Major catalog: loads catalog (evidence: `Ehtiya/htdocs/includes/bootstrap.php`)
- Request discovery → Shared bootstrap: loads shared services (evidence: `Ehtiya/htdocs/requests/index.php`)
- Request creation → Shared bootstrap: loads shared services (evidence: `Ehtiya/htdocs/requests/create.php`)
- Request editing → Shared bootstrap: loads shared services (evidence: `Ehtiya/htdocs/requests/edit.php`)
- Request details → Shared bootstrap: loads shared services (evidence: `Ehtiya/htdocs/requests/view.php`)
- My requests → Shared bootstrap: loads shared services (evidence: `Ehtiya/htdocs/requests/my.php`)
- Offer history → Shared bootstrap: loads shared services (evidence: `Ehtiya/htdocs/offers/my.php`)
- Request creation → Image upload: uses image handling (evidence: `Ehtiya/htdocs/requests/create.php`)
- Request editing → Image upload: uses image handling (evidence: `Ehtiya/htdocs/requests/edit.php`)
- Conversations → Image upload: uses image handling (evidence: `Ehtiya/htdocs/chat/view.php`)
- Request discovery → MySQL database: queries requests (evidence: `Ehtiya/htdocs/requests/index.php`)
- Notification inbox → MySQL database: reads and updates (evidence: `Ehtiya/htdocs/notifications/index.php`)
- Offer history → MySQL database: updates offers (evidence: `Ehtiya/htdocs/offers/my.php`)
- Administrator → Admin navigation helpers: uses navigation helpers
