# abdoun/abdoun_cms architecture

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

- Interactive diagram: https://gitdiagram.com/abdoun/abdoun_cms
- Repository: https://github.com/abdoun/abdoun_cms

## Overview

This is a PHP content-management website with public-facing pages and a separate administrative console. The public workflow selects a language, loads a template, fills its page regions, and emits HTML; the admin workflow builds the console and dispatches requested app actions subject to permissions. The tree also shows search, CV submission, news-map, media, RSS, and rich-text/file-browser capabilities. Several implementation files were not sampled, so their internal call relationships are omitted rather than inferred.

Main entry points: [`public_html/index.php`](https://github.com/abdoun/abdoun_cms/blob/master/public_html/index.php) (Public entry), [`public_html/admin/index.php`](https://github.com/abdoun/abdoun_cms/blob/master/public_html/admin/index.php) (Admin shell), [`public_html/admin/main.php`](https://github.com/abdoun/abdoun_cms/blob/master/public_html/admin/main.php) (Admin action dispatch), [`public_html/classes/modules/mysql_db/mysql_db.php`](https://github.com/abdoun/abdoun_cms/blob/master/public_html/classes/modules/mysql_db/mysql_db.php) (MySQL database)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Public website"]
  node_publicentry["Public entry<br/>[index.php]"]
  node_template["Template rendering<br/>[index.php]"]
  node_publicpage["Page composition"]
  node_language["Language resources"]
  node_rss["RSS feed<br/>[rss.php]"]
end

subgraph group_admin["Administration"]
  node_adminentry["Admin shell<br/>[index.php]"]
  node_adminroute["Admin action dispatch<br/>[main.php]"]
  node_adminconfig["Admin configuration<br/>[config.inc.php]"]
  node_editor["Rich-text editor"]
  node_filebrowser["Media file browser"]
end

subgraph group_content["Content features"]
  node_controls["Content controls<br/>[controls.php]"]
  node_search["Search<br/>[search_result.php]"]
  node_cv["CV submission<br/>[add_cv.php]"]
  node_newsmap["News map<br/>[news_map.php]"]
  node_marquee["News ticker<br/>[marquee.php]"]
  node_embed["Embedded media<br/>[embed.php]"]
end

subgraph group_platform["Shared platform"]
  node_publicconfig["Public configuration<br/>[config.inc.php]"]
  node_database[("MySQL database<br/>[mysql_db.php]")]
end

node_visitor(("Site visitor"))
node_adminuser(("Admin user"))

node_visitor -->|"requests page"| node_publicentry
node_publicentry -->|"loads config"| node_publicconfig
node_publicentry -->|"queries language"| node_database
node_publicentry -->|"loads template"| node_template
node_publicentry -->|"loads translation"| node_language
node_publicentry -->|"renders page"| node_publicpage
node_publicentry -->|"adds feed link"| node_rss
node_adminuser -->|"opens console"| node_adminentry
node_adminentry -->|"loads config"| node_adminconfig
node_adminentry -->|"opens database"| node_database
node_adminentry -->|"requests action"| node_adminroute
node_adminroute -->|"loads config"| node_adminconfig
node_adminroute -->|"opens database"| node_database
node_adminentry -.->|"offers editing"| node_editor
node_adminentry -.->|"offers file browsing"| node_filebrowser

click node_publicentry "https://github.com/abdoun/abdoun_cms/blob/master/public_html/index.php"
click node_template "https://github.com/abdoun/abdoun_cms/blob/master/public_html/index.php"
click node_publicpage "https://github.com/abdoun/abdoun_cms/tree/master/public_html/classes/block/page/app"
click node_language "https://github.com/abdoun/abdoun_cms/tree/master/public_html/language"
click node_rss "https://github.com/abdoun/abdoun_cms/blob/master/public_html/rss.php"
click node_adminentry "https://github.com/abdoun/abdoun_cms/blob/master/public_html/admin/index.php"
click node_adminroute "https://github.com/abdoun/abdoun_cms/blob/master/public_html/admin/main.php"
click node_adminconfig "https://github.com/abdoun/abdoun_cms/blob/master/admin_init_conf/config.inc.php"
click node_publicconfig "https://github.com/abdoun/abdoun_cms/blob/master/init_conf/config.inc.php"
click node_database "https://github.com/abdoun/abdoun_cms/blob/master/public_html/classes/modules/mysql_db/mysql_db.php"
click node_controls "https://github.com/abdoun/abdoun_cms/blob/master/public_html/classes/block/controls/controls.php"
click node_search "https://github.com/abdoun/abdoun_cms/blob/master/public_html/classes/block/page/app/search_result/search_result.php"
click node_cv "https://github.com/abdoun/abdoun_cms/blob/master/public_html/classes/block/page/app/add_cv/add_cv.php"
click node_newsmap "https://github.com/abdoun/abdoun_cms/blob/master/public_html/classes/block/page/app/news_map/news_map.php"
click node_marquee "https://github.com/abdoun/abdoun_cms/blob/master/public_html/classes/block/marquee/marquee.php"
click node_embed "https://github.com/abdoun/abdoun_cms/blob/master/public_html/classes/modules/embed/embed.php"
click node_editor "https://github.com/abdoun/abdoun_cms/tree/master/public_html/admin/ck-editor/ckeditor"
click node_filebrowser "https://github.com/abdoun/abdoun_cms/tree/master/public_html/admin/ck-editor/ckfinder"

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_publicentry,node_template,node_publicpage,node_language,node_rss,node_adminuser toneBlue
class node_adminentry,node_adminroute,node_adminconfig,node_editor,node_filebrowser toneAmber
class node_controls,node_search,node_cv,node_newsmap,node_marquee,node_embed toneMint
class node_publicconfig,node_database toneRose
class node_visitor toneIndigo
```

## Components

### Public website

- [Public entry](https://github.com/abdoun/abdoun_cms/blob/master/public_html/index.php): `public_html/index.php`
- [Template rendering](https://github.com/abdoun/abdoun_cms/blob/master/public_html/index.php): `public_html/index.php`
- [Page composition](https://github.com/abdoun/abdoun_cms/tree/master/public_html/classes/block/page/app): `public_html/classes/block/page/app`
- [Language resources](https://github.com/abdoun/abdoun_cms/tree/master/public_html/language): `public_html/language`
- [RSS feed](https://github.com/abdoun/abdoun_cms/blob/master/public_html/rss.php): `public_html/rss.php`

### Administration

- [Admin shell](https://github.com/abdoun/abdoun_cms/blob/master/public_html/admin/index.php): `public_html/admin/index.php`
- [Admin action dispatch](https://github.com/abdoun/abdoun_cms/blob/master/public_html/admin/main.php): `public_html/admin/main.php`
- [Admin configuration](https://github.com/abdoun/abdoun_cms/blob/master/admin_init_conf/config.inc.php): `admin_init_conf/config.inc.php`
- [Rich-text editor](https://github.com/abdoun/abdoun_cms/tree/master/public_html/admin/ck-editor/ckeditor): `public_html/admin/ck-editor/ckeditor`
- [Media file browser](https://github.com/abdoun/abdoun_cms/tree/master/public_html/admin/ck-editor/ckfinder): `public_html/admin/ck-editor/ckfinder`

### Content features

- [Content controls](https://github.com/abdoun/abdoun_cms/blob/master/public_html/classes/block/controls/controls.php): `public_html/classes/block/controls/controls.php`
- [Search](https://github.com/abdoun/abdoun_cms/blob/master/public_html/classes/block/page/app/search_result/search_result.php): `public_html/classes/block/page/app/search_result/search_result.php`
- [CV submission](https://github.com/abdoun/abdoun_cms/blob/master/public_html/classes/block/page/app/add_cv/add_cv.php): `public_html/classes/block/page/app/add_cv/add_cv.php`
- [News map](https://github.com/abdoun/abdoun_cms/blob/master/public_html/classes/block/page/app/news_map/news_map.php): `public_html/classes/block/page/app/news_map/news_map.php`
- [News ticker](https://github.com/abdoun/abdoun_cms/blob/master/public_html/classes/block/marquee/marquee.php): `public_html/classes/block/marquee/marquee.php`
- [Embedded media](https://github.com/abdoun/abdoun_cms/blob/master/public_html/classes/modules/embed/embed.php): `public_html/classes/modules/embed/embed.php`

### Shared platform

- [Public configuration](https://github.com/abdoun/abdoun_cms/blob/master/init_conf/config.inc.php): `init_conf/config.inc.php`
- [MySQL database](https://github.com/abdoun/abdoun_cms/blob/master/public_html/classes/modules/mysql_db/mysql_db.php): `public_html/classes/modules/mysql_db/mysql_db.php`

### Other components

- **Site visitor**
- **Admin user**

## Connections

- Site visitor → Public entry: requests page
- Public entry → Public configuration: loads config (evidence: `public_html/index.php`)
- Public entry → MySQL database: queries language (evidence: `public_html/index.php`)
- Public entry → Template rendering: loads template (evidence: `public_html/index.php`)
- Public entry → Language resources: loads translation (evidence: `public_html/index.php`)
- Public entry → Page composition: renders page (evidence: `public_html/index.php`)
- Public entry → RSS feed: adds feed link (evidence: `public_html/index.php`)
- Admin user → Admin shell: opens console
- Admin shell → Admin configuration: loads config (evidence: `public_html/admin/index.php`)
- Admin shell → MySQL database: opens database (evidence: `public_html/admin/index.php`)
- Admin shell → Admin action dispatch: requests action (evidence: `public_html/admin/index.php`)
- Admin action dispatch → Admin configuration: loads config (evidence: `public_html/admin/main.php`)
- Admin action dispatch → MySQL database: opens database (evidence: `public_html/admin/main.php`)
- Admin shell → Rich-text editor: offers editing
- Admin shell → Media file browser: offers file browsing
