# fadaffara/telkom-company-profile-109062500059 architecture

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

- Interactive diagram: https://gitdiagram.com/fadaffara/telkom-company-profile-109062500059
- Repository: https://github.com/fadaffara/telkom-company-profile-109062500059

## Overview

This is a small PHP/MySQL company-profile teaching site. Visitors browse the home page, institutional profile, study programs, and news; they can open a news item or submit a contact message. A separate local admin form adds news. Shared page chrome and a database connection support these features. The sampled source shows the main page queries, form submissions, and redirects; the SQL schema and stylesheet are present in the tree but were not sampled, so their internal details are not inferred.

Main entry points: [`includes/header.php`](https://github.com/fadaffara/telkom-company-profile-109062500059/blob/main/includes/header.php) (Shared header), [`config/database.php`](https://github.com/fadaffara/telkom-company-profile-109062500059/blob/main/config/database.php) (Database connection), [`news.php`](https://github.com/fadaffara/telkom-company-profile-109062500059/blob/main/news.php) (News listing), [`contact.php`](https://github.com/fadaffara/telkom-company-profile-109062500059/blob/main/contact.php) (Contact form)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Public website"]
  node_home["Home page<br/>[index.php]"]
  node_profile["Profile page<br/>[profile.php]"]
end

subgraph group_content["Content features"]
  node_programs["Study programs<br/>[programs.php]"]
  node_news_list["News listing<br/>[news.php]"]
  node_news_detail["News detail<br/>[news_detail.php]"]
end

subgraph group_submissions["Submissions"]
  node_admin_form["News entry form<br/>[add_news.php]"]
  node_admin_save["Save news<br/>[save_news.php]"]
  node_contact_form["Contact form<br/>[contact.php]"]
  node_contact_process["Process message"]
end

subgraph group_shared["Shared runtime"]
  node_header["Shared header<br/>[header.php]"]
  node_footer["Shared footer<br/>[footer.php]"]
  node_db_connection["Database connection<br/>[database.php]"]
  node_database[("MySQL database<br/>[telkom_profile.sql]")]
  node_styles["Page styling<br/>[style.css]"]
end

node_visitor(("Visitor"))

node_visitor -->|"requests"| node_home
node_visitor -->|"requests"| node_profile
node_visitor -->|"requests"| node_programs
node_visitor -->|"requests"| node_news_list
node_visitor -->|"requests"| node_news_detail
node_visitor -->|"requests"| node_contact_form
node_visitor -.->|"requests"| node_admin_form
node_home -->|"queries through"| node_db_connection
node_programs -->|"queries through"| node_db_connection
node_news_list -->|"queries through"| node_db_connection
node_news_detail -->|"queries through"| node_db_connection
node_db_connection -->|"connects"| node_database
node_home -->|"includes"| node_header
node_home -->|"includes"| node_footer
node_profile -->|"includes"| node_header
node_profile -->|"includes"| node_footer
node_programs -->|"includes"| node_header
node_programs -->|"includes"| node_footer
node_news_list -->|"includes"| node_header
node_news_list -->|"includes"| node_footer
node_news_detail -->|"includes"| node_header
node_news_detail -->|"includes"| node_footer
node_contact_form -->|"includes"| node_header
node_contact_form -->|"includes"| node_footer
node_header -->|"loads"| node_styles
node_visitor -->|"follows news link"| node_news_list
node_visitor -->|"opens item"| node_news_detail
node_visitor -->|"follows link"| node_programs
node_visitor -->|"follows link"| node_profile
node_visitor -->|"follows link"| node_contact_form
node_contact_form -->|"submits form"| node_contact_process
node_contact_process -->|"inserts through"| node_db_connection
node_contact_process -->|"stores message"| node_database
node_contact_process -->|"redirects"| node_contact_form
node_admin_form -->|"submits form"| node_admin_save
node_admin_save -->|"inserts through"| node_db_connection
node_admin_save -->|"stores news"| node_database
node_admin_save -->|"redirects"| node_news_list

click node_home "https://github.com/fadaffara/telkom-company-profile-109062500059/blob/main/index.php"
click node_profile "https://github.com/fadaffara/telkom-company-profile-109062500059/blob/main/profile.php"
click node_programs "https://github.com/fadaffara/telkom-company-profile-109062500059/blob/main/programs.php"
click node_news_list "https://github.com/fadaffara/telkom-company-profile-109062500059/blob/main/news.php"
click node_news_detail "https://github.com/fadaffara/telkom-company-profile-109062500059/blob/main/news_detail.php"
click node_admin_form "https://github.com/fadaffara/telkom-company-profile-109062500059/blob/main/admin/add_news.php"
click node_admin_save "https://github.com/fadaffara/telkom-company-profile-109062500059/blob/main/admin/save_news.php"
click node_contact_form "https://github.com/fadaffara/telkom-company-profile-109062500059/blob/main/contact.php"
click node_contact_process "https://github.com/fadaffara/telkom-company-profile-109062500059/blob/main/contact_process.php"
click node_header "https://github.com/fadaffara/telkom-company-profile-109062500059/blob/main/includes/header.php"
click node_footer "https://github.com/fadaffara/telkom-company-profile-109062500059/blob/main/includes/footer.php"
click node_db_connection "https://github.com/fadaffara/telkom-company-profile-109062500059/blob/main/config/database.php"
click node_database "https://github.com/fadaffara/telkom-company-profile-109062500059/blob/main/database/telkom_profile.sql"
click node_styles "https://github.com/fadaffara/telkom-company-profile-109062500059/blob/main/assets/css/style.css"

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_profile toneBlue
class node_programs,node_news_list,node_news_detail toneAmber
class node_admin_form,node_admin_save,node_contact_form,node_contact_process toneMint
class node_header,node_footer,node_db_connection,node_database,node_styles toneRose
class node_visitor toneIndigo
```

## Components

### Public website

- [Home page](https://github.com/fadaffara/telkom-company-profile-109062500059/blob/main/index.php): `index.php`
- [Profile page](https://github.com/fadaffara/telkom-company-profile-109062500059/blob/main/profile.php): `profile.php`

### Content features

- [Study programs](https://github.com/fadaffara/telkom-company-profile-109062500059/blob/main/programs.php): `programs.php`
- [News listing](https://github.com/fadaffara/telkom-company-profile-109062500059/blob/main/news.php): `news.php`
- [News detail](https://github.com/fadaffara/telkom-company-profile-109062500059/blob/main/news_detail.php): `news_detail.php`

### Submissions

- [News entry form](https://github.com/fadaffara/telkom-company-profile-109062500059/blob/main/admin/add_news.php): `admin/add_news.php`
- [Save news](https://github.com/fadaffara/telkom-company-profile-109062500059/blob/main/admin/save_news.php): `admin/save_news.php`
- [Contact form](https://github.com/fadaffara/telkom-company-profile-109062500059/blob/main/contact.php): `contact.php`
- [Process message](https://github.com/fadaffara/telkom-company-profile-109062500059/blob/main/contact_process.php): `contact_process.php`

### Shared runtime

- [Shared header](https://github.com/fadaffara/telkom-company-profile-109062500059/blob/main/includes/header.php): `includes/header.php`
- [Shared footer](https://github.com/fadaffara/telkom-company-profile-109062500059/blob/main/includes/footer.php): `includes/footer.php`
- [Database connection](https://github.com/fadaffara/telkom-company-profile-109062500059/blob/main/config/database.php): `config/database.php`
- [MySQL database](https://github.com/fadaffara/telkom-company-profile-109062500059/blob/main/database/telkom_profile.sql): `database/telkom_profile.sql`
- [Page styling](https://github.com/fadaffara/telkom-company-profile-109062500059/blob/main/assets/css/style.css): `assets/css/style.css`

### Other components

- **Visitor**

## Connections

- Visitor → Home page: requests
- Visitor → Profile page: requests
- Visitor → Study programs: requests
- Visitor → News listing: requests
- Visitor → News detail: requests
- Visitor → Contact form: requests
- Visitor → News entry form: requests
- Home page → Database connection: queries through (evidence: `index.php`)
- Study programs → Database connection: queries through (evidence: `programs.php`)
- News listing → Database connection: queries through (evidence: `news.php`)
- News detail → Database connection: queries through (evidence: `news_detail.php`)
- Database connection → MySQL database: connects (evidence: `config/database.php`)
- Home page → Shared header: includes (evidence: `index.php`)
- Home page → Shared footer: includes (evidence: `index.php`)
- Profile page → Shared header: includes (evidence: `profile.php`)
- Profile page → Shared footer: includes (evidence: `profile.php`)
- Study programs → Shared header: includes (evidence: `programs.php`)
- Study programs → Shared footer: includes (evidence: `programs.php`)
- News listing → Shared header: includes (evidence: `news.php`)
- News listing → Shared footer: includes (evidence: `news.php`)
- News detail → Shared header: includes (evidence: `news_detail.php`)
- News detail → Shared footer: includes (evidence: `news_detail.php`)
- Contact form → Shared header: includes (evidence: `contact.php`)
- Contact form → Shared footer: includes (evidence: `contact.php`)
- Shared header → Page styling: loads (evidence: `includes/header.php`)
- Visitor → News listing: follows news link
- Visitor → News detail: opens item
- Visitor → Study programs: follows link
- Visitor → Profile page: follows link
- Visitor → Contact form: follows link
- Contact form → Process message: submits form (evidence: `contact.php`)
- Process message → Database connection: inserts through (evidence: `contact_process.php`)
- Process message → MySQL database: stores message (evidence: `contact_process.php`)
- Process message → Contact form: redirects (evidence: `contact_process.php`)
- News entry form → Save news: submits form (evidence: `admin/add_news.php`)
- Save news → Database connection: inserts through (evidence: `admin/save_news.php`)
- Save news → MySQL database: stores news (evidence: `admin/save_news.php`)
- Save news → News listing: redirects (evidence: `admin/save_news.php`)
