# donidonboom/tubespwd_a_2 architecture

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

- Interactive diagram: https://gitdiagram.com/donidonboom/tubespwd_a_2
- Repository: https://github.com/donidonboom/tubespwd_a_2

## Overview

Kost.In is a PHP web platform for finding, booking, and managing rental rooms. The main seeker journey runs from the home page through filtered search and property details to booking, payment-status tracking, and a printable invoice. Separate owner and administrator areas handle listings, booking decisions, verification, users, reviews, and site settings. Shared PHP functions provide database access, authentication, and booking operations. The map preserves README-described capabilities not confirmed in sampled implementation; those links are omitted where no source or explicit relationship was shown.

Main entry points: [`functions.php`](https://github.com/donidonboom/tubespwd_a_2/blob/main/functions.php) (Core PHP services), [`detail.php`](https://github.com/donidonboom/tubespwd_a_2/blob/main/detail.php) (Property details), [`cari.php`](https://github.com/donidonboom/tubespwd_a_2/blob/main/cari.php) (Search and filters), [`kost-form.php`](https://github.com/donidonboom/tubespwd_a_2/blob/main/kost-form.php) (Listing editor)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_discovery["Search and discovery"]
  node_home["Home and featured<br/>[index.php]"]
  node_search["Search and filters<br/>[cari.php]"]
  node_property["Property details<br/>[detail.php]"]
  node_favorites["Favorites<br/>[favorit.php]"]
  node_reviews["Property reviews<br/>[ulasan.php]"]
end

subgraph group_transactions["Booking lifecycle"]
  node_booking["Booking request<br/>[booking.php]"]
  node_orders["Orders and payment<br/>[pesanan.php]"]
  node_incoming["Owner booking decisions<br/>[booking-masuk.php]"]
  node_invoice["Printable invoice<br/>[invoice.php]"]
end

subgraph group_accounts["Accounts and shared services"]
  node_db[("MySQL database")]
  node_shared["Core PHP services<br/>[functions.php]"]
  node_config["Database configuration<br/>[config.php]"]
  node_signup["Registration<br/>[daftar.php]"]
  node_profile["Profile management<br/>[profil.php]"]
end

subgraph group_management["Owner and admin operations"]
  node_owner_dash["Owner dashboard<br/>[pemilik.php]"]
  node_owner_listings["Owner listings<br/>[kost-saya.php]"]
  node_listing_form["Listing editor<br/>[kost-form.php]"]
  node_admin_dash["Admin dashboard<br/>[admin.php]"]
  node_verification["Listing verification"]
  node_admin_users["User management<br/>[admin-pengguna.php]"]
  node_admin_reviews["Review moderation<br/>[admin-ulasan.php]"]
  node_admin_settings["Site settings"]
end

node_seeker(("Seeker"))
node_owner(("Property owner"))
node_admin(("Administrator"))
node_map["OpenStreetMap"]

node_seeker -->|"visits"| node_home
node_home -->|"opens search"| node_search
node_seeker -->|"filters listings"| node_search
node_search -->|"opens listing"| node_property
node_property -->|"starts booking"| node_booking
node_seeker -->|"saves listings"| node_favorites
node_booking -->|"tracks request"| node_orders
node_orders -->|"prints invoice"| node_invoice
node_owner -->|"views analytics"| node_owner_dash
node_owner -->|"creates listings"| node_listing_form
node_owner_listings -->|"edits listings"| node_listing_form
node_owner -->|"handles bookings"| node_incoming
node_incoming -->|"updates status"| node_shared
node_admin -->|"views dashboard"| node_admin_dash
node_admin -->|"reviews listings"| node_verification
node_admin -->|"manages accounts"| node_admin_users
node_admin -->|"moderates reviews"| node_admin_reviews
node_admin -->|"configures site"| node_admin_settings
node_property -->|"shows reviews"| node_reviews
node_listing_form -.->|"selects location"| node_map
node_shared -->|"loads settings"| node_config
node_shared -.->|"accesses"| node_db
node_home -->|"loads helpers"| node_shared
node_search -->|"loads helpers"| node_shared
node_property -->|"loads helpers"| node_shared
node_booking -->|"loads helpers"| node_shared
node_orders -->|"updates booking"| node_shared
node_signup -->|"loads helpers"| node_shared
node_profile -->|"loads helpers"| node_shared
node_owner_dash -->|"loads helpers"| node_shared
node_owner_listings -->|"loads helpers"| node_shared
node_listing_form -->|"loads helpers"| node_shared
node_admin_dash -->|"loads helpers"| node_shared
node_verification -->|"loads helpers"| node_shared
node_admin_reviews -->|"loads helpers"| node_shared
node_admin_settings -->|"loads helpers"| node_shared

click node_home "https://github.com/donidonboom/tubespwd_a_2/blob/main/index.php"
click node_search "https://github.com/donidonboom/tubespwd_a_2/blob/main/cari.php"
click node_property "https://github.com/donidonboom/tubespwd_a_2/blob/main/detail.php"
click node_favorites "https://github.com/donidonboom/tubespwd_a_2/blob/main/favorit.php"
click node_booking "https://github.com/donidonboom/tubespwd_a_2/blob/main/booking.php"
click node_orders "https://github.com/donidonboom/tubespwd_a_2/blob/main/pesanan.php"
click node_incoming "https://github.com/donidonboom/tubespwd_a_2/blob/main/booking-masuk.php"
click node_invoice "https://github.com/donidonboom/tubespwd_a_2/blob/main/invoice.php"
click node_shared "https://github.com/donidonboom/tubespwd_a_2/blob/main/functions.php"
click node_config "https://github.com/donidonboom/tubespwd_a_2/blob/main/config.php"
click node_signup "https://github.com/donidonboom/tubespwd_a_2/blob/main/daftar.php"
click node_profile "https://github.com/donidonboom/tubespwd_a_2/blob/main/profil.php"
click node_owner_dash "https://github.com/donidonboom/tubespwd_a_2/blob/main/pemilik.php"
click node_owner_listings "https://github.com/donidonboom/tubespwd_a_2/blob/main/kost-saya.php"
click node_listing_form "https://github.com/donidonboom/tubespwd_a_2/blob/main/kost-form.php"
click node_admin_dash "https://github.com/donidonboom/tubespwd_a_2/blob/main/admin.php"
click node_verification "https://github.com/donidonboom/tubespwd_a_2/blob/main/admin-verifikasi.php"
click node_admin_users "https://github.com/donidonboom/tubespwd_a_2/blob/main/admin-pengguna.php"
click node_admin_reviews "https://github.com/donidonboom/tubespwd_a_2/blob/main/admin-ulasan.php"
click node_admin_settings "https://github.com/donidonboom/tubespwd_a_2/blob/main/admin-pengaturan.php"
click node_reviews "https://github.com/donidonboom/tubespwd_a_2/blob/main/ulasan.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_home,node_search,node_property,node_favorites,node_reviews toneBlue
class node_booking,node_orders,node_incoming,node_invoice toneAmber
class node_db,node_shared,node_config,node_signup,node_profile toneMint
class node_owner_dash,node_owner_listings,node_listing_form,node_admin_dash,node_verification,node_admin_users,node_admin_reviews,node_admin_settings toneRose
class node_seeker,node_owner,node_admin,node_map toneIndigo
```

## Components

### Search and discovery

- [Home and featured](https://github.com/donidonboom/tubespwd_a_2/blob/main/index.php): `index.php`
- [Search and filters](https://github.com/donidonboom/tubespwd_a_2/blob/main/cari.php): `cari.php`
- [Property details](https://github.com/donidonboom/tubespwd_a_2/blob/main/detail.php): `detail.php`
- [Favorites](https://github.com/donidonboom/tubespwd_a_2/blob/main/favorit.php): `favorit.php`
- [Property reviews](https://github.com/donidonboom/tubespwd_a_2/blob/main/ulasan.php): `ulasan.php`

### Booking lifecycle

- [Booking request](https://github.com/donidonboom/tubespwd_a_2/blob/main/booking.php): `booking.php`
- [Orders and payment](https://github.com/donidonboom/tubespwd_a_2/blob/main/pesanan.php): `pesanan.php`
- [Owner booking decisions](https://github.com/donidonboom/tubespwd_a_2/blob/main/booking-masuk.php): `booking-masuk.php`
- [Printable invoice](https://github.com/donidonboom/tubespwd_a_2/blob/main/invoice.php): `invoice.php`

### Accounts and shared services

- **MySQL database**
- [Core PHP services](https://github.com/donidonboom/tubespwd_a_2/blob/main/functions.php): `functions.php`
- [Database configuration](https://github.com/donidonboom/tubespwd_a_2/blob/main/config.php): `config.php`
- [Registration](https://github.com/donidonboom/tubespwd_a_2/blob/main/daftar.php): `daftar.php`
- [Profile management](https://github.com/donidonboom/tubespwd_a_2/blob/main/profil.php): `profil.php`

### Owner and admin operations

- [Owner dashboard](https://github.com/donidonboom/tubespwd_a_2/blob/main/pemilik.php): `pemilik.php`
- [Owner listings](https://github.com/donidonboom/tubespwd_a_2/blob/main/kost-saya.php): `kost-saya.php`
- [Listing editor](https://github.com/donidonboom/tubespwd_a_2/blob/main/kost-form.php): `kost-form.php`
- [Admin dashboard](https://github.com/donidonboom/tubespwd_a_2/blob/main/admin.php): `admin.php`
- [Listing verification](https://github.com/donidonboom/tubespwd_a_2/blob/main/admin-verifikasi.php): `admin-verifikasi.php`
- [User management](https://github.com/donidonboom/tubespwd_a_2/blob/main/admin-pengguna.php): `admin-pengguna.php`
- [Review moderation](https://github.com/donidonboom/tubespwd_a_2/blob/main/admin-ulasan.php): `admin-ulasan.php`
- [Site settings](https://github.com/donidonboom/tubespwd_a_2/blob/main/admin-pengaturan.php): `admin-pengaturan.php`

### Other components

- **Seeker**
- **Property owner**
- **Administrator**
- **OpenStreetMap**

## Connections

- Seeker → Home and featured: visits (evidence: `index.php`)
- Home and featured → Search and filters: opens search (evidence: `index.php`)
- Seeker → Search and filters: filters listings (evidence: `README.md`)
- Search and filters → Property details: opens listing (evidence: `README.md`)
- Property details → Booking request: starts booking (evidence: `README.md`)
- Seeker → Favorites: saves listings (evidence: `README.md`)
- Booking request → Orders and payment: tracks request (evidence: `README.md`)
- Orders and payment → Printable invoice: prints invoice (evidence: `README.md`)
- Property owner → Owner dashboard: views analytics (evidence: `README.md`)
- Property owner → Listing editor: creates listings (evidence: `README.md`)
- Owner listings → Listing editor: edits listings (evidence: `README.md`)
- Property owner → Owner booking decisions: handles bookings (evidence: `booking-masuk.php`)
- Owner booking decisions → Core PHP services: updates status (evidence: `booking-masuk.php`)
- Administrator → Admin dashboard: views dashboard (evidence: `README.md`)
- Administrator → Listing verification: reviews listings (evidence: `README.md`)
- Administrator → User management: manages accounts (evidence: `admin-pengguna.php`)
- Administrator → Review moderation: moderates reviews (evidence: `README.md`)
- Administrator → Site settings: configures site (evidence: `README.md`)
- Property details → Property reviews: shows reviews (evidence: `detail.php`)
- Listing editor → OpenStreetMap: selects location (evidence: `README.md`)
- Core PHP services → Database configuration: loads settings (evidence: `functions.php`)
- Core PHP services → MySQL database: accesses
- Home and featured → Core PHP services: loads helpers (evidence: `index.php`)
- Search and filters → Core PHP services: loads helpers (evidence: `cari.php`)
- Property details → Core PHP services: loads helpers (evidence: `detail.php`)
- Booking request → Core PHP services: loads helpers (evidence: `booking.php`)
- Orders and payment → Core PHP services: updates booking (evidence: `pesanan.php`)
- Registration → Core PHP services: loads helpers (evidence: `daftar.php`)
- Profile management → Core PHP services: loads helpers (evidence: `profil.php`)
- Owner dashboard → Core PHP services: loads helpers (evidence: `pemilik.php`)
- Owner listings → Core PHP services: loads helpers (evidence: `kost-saya.php`)
- Listing editor → Core PHP services: loads helpers (evidence: `kost-form.php`)
- Admin dashboard → Core PHP services: loads helpers (evidence: `admin.php`)
- Listing verification → Core PHP services: loads helpers (evidence: `admin-verifikasi.php`)
- Review moderation → Core PHP services: loads helpers (evidence: `admin-ulasan.php`)
- Site settings → Core PHP services: loads helpers (evidence: `admin-pengaturan.php`)
