cavin dot name Fractals, Arts, Programming & Rambles

CSE_CMS v2 — Overview & Architecture

CSE_CMS v2 is a modern ground-up rewrite of the original database-free, folder-driven CSE_CMS created in 2008.

It keeps the exact same core philosophy: your filesystem is your website. Folders become navigation menus and URLs; plain text, HTML, and Markdown files become web pages — managed effortlessly via FTP or local files, with no database and no external libraries or CDNs.

Core Principles

  • Zero Database: Everything lives as ordinary files and folders. Backups are just copying a folder.
  • Zero External Dependencies: Pure PHP 8.2+ on the server and vanilla HTML5/CSS3/JS in the browser. No Composer packages, no frameworks, and no third-party CDNs — making it virtually maintenance-free for years.
  • Native Multilingual Support: Top-level 2-letter folders (en/, fr/, de/, or any language you add) define language trees, linked together via optional CSE_translate files.
  • 100% Backwards-Compatible Content: Existing v1 articles, CSE_content homepages, CSE_Gallery.txt photo galleries, .link aliases, .embed/.exbed frames, CSE_hot featured links, CSE_lock private folders, plugins, and historical statistics all work seamlessly.
  • Strict Separation of Content, Structure, and Style: Content (en/, fr/, de/), Layout Templates (templates/), and Visual Themes (themes/) are independent files that visitors can even mix and match on the fly.

High-Level Request Flow

  1. Apache .htaccess routes all page URLs (at any folder depth) to a single front controller (index.php), while serving static assets (assets/, media/, themes/, and gallery images) directly and blocking direct web access to internal/config files.
  2. Router extracts the language code and resolves either a special route (search, plugins, statistics, sitemap, theme/template switch) or a content path.
  3. Content Repository safely resolves the target folder or file inside the language root, checks any CSE_lock access rules, and renders Markdown (.md), HTML, custom folder layouts (CSE_content), or photo galleries (CSE_Gallery.txt).
  4. Renderer combines the rendered body, dynamic Table of Contents, breadcrumbs, and sidebar widgets into the active Template (templates/<name>/layout.php) styled by the active Theme (themes/<name>/theme.css).

What's Next?