From dacc439b1b1b561c2a51a192e5b12017897ce597 Mon Sep 17 00:00:00 2001 From: Edwin Noorlander Date: Tue, 14 Jul 2026 15:39:34 +0200 Subject: [PATCH] Update version to 1.6.0 and refresh guides with clean URLs --- guide/en.codepress.md | 33 +++++++++++++++++---------------- guide/nl.codepress.md | 33 +++++++++++++++++---------------- version.php | 11 ++++++++++- 3 files changed, 44 insertions(+), 33 deletions(-) diff --git a/guide/en.codepress.md b/guide/en.codepress.md index cfba1ca..3745a60 100644 --- a/guide/en.codepress.md +++ b/guide/en.codepress.md @@ -52,7 +52,7 @@ CodePress CMS is a lightweight, file-based content management system built with - **Theme support** via `themes/` directory with theme.json per theme ### Admin Console -- Built-in admin panel at `/admin.php` +- Built-in admin panel at `/admin` - **Dashboard** with statistics (pages, directories, plugins) and quick actions - **Content management** - Browse files, upload, create, edit, rename, move and delete - **CodeMirror editor** with toolbar (bold, italic, heading, link, image, list, media insert) @@ -249,7 +249,7 @@ Media files (images, PDFs, video, audio) can be placed in any `content/` subdire ### Access -- **URL**: `/admin.php` +- **URL**: `/admin` - **Default login**: `admin` / `admin` ### Routes @@ -367,21 +367,22 @@ plugins: HTMLBlock, MQTTTracker ## URL Structure ### Frontend Page URLs -- **Home**: `/` or `?page=index&lang=en` -- **Page**: `?page=folder/page&lang=en` -- **Search**: `?search=query` -- **Guide**: `?guide` -- **Language switch**: `?lang=nl` or `?lang=en` +- **Home**: `/` or `/en/` +- **Page**: `/en/folder/page` +- **Search**: `?search=query` (via search form) +- **Guide**: `/en/guide` +- **Language switch**: `/nl` or `/en` ### Media URLs - **Media**: `/-media/path/to/file.jpg` (from any content subdirectory) - **Assets**: `/-assets/file.jpg` (from content/-assets/, backward compatible) ### Admin URLs -- **Admin**: `admin.php?route=dashboard` -- **Edit content**: `admin.php?route=content-edit&file=page.md` -- **New content**: `admin.php?route=content-new&dir=folder` -- **Edit theme**: `admin.php?route=theme&edit=themename` +- **Admin**: `/admin` +- **Dashboard**: `/admin/dashboard` +- **Edit content**: `/admin/content-edit?file=page.md` +- **New content**: `/admin/content-new?dir=folder` +- **Edit theme**: `/admin/theme?edit=themename` ## SEO Optimization @@ -510,21 +511,21 @@ The MQTTTracker plugin stores `broker_host`, `broker_port`, `client_id`, `userna ### How do I add new content? -1. Via the admin panel: `admin.php?route=content-new` +1. Via the admin panel: `/admin/content-new` 2. Or upload files to the `content/` directory 3. Organize in logical directories 4. Use correct filenames and extensions ### How do I move a file or directory? -1. Go to `admin.php?route=content` +1. Go to `/admin/content` 2. Click "Move" next to the item 3. Select the target directory 4. Confirm the move ### How do I create a new theme? -1. Go to `admin.php?route=theme` +1. Go to `/admin/theme` 2. Enter a name and click "Create" 3. Adjust colors, heights and background 4. Activate the theme @@ -564,8 +565,8 @@ The MQTTTracker plugin stores `broker_host`, `broker_port`, `client_id`, `userna ## Version -Current version: **1.5.0** (codename: "Enhanced") -Release date: 2025-11-26 +Current version: **1.6.0** (codename: "Enhanced") +Release date: 2026-07-14 ## Support diff --git a/guide/nl.codepress.md b/guide/nl.codepress.md index 4996de6..ed85a40 100644 --- a/guide/nl.codepress.md +++ b/guide/nl.codepress.md @@ -52,7 +52,7 @@ CodePress CMS is een lichtgewicht, file-based content management systeem gebouwd - **Thema ondersteuning** via `themes/` map met theme.json per thema ### Admin Console -- Ingebouwd admin paneel op `/admin.php` +- Ingebouwd admin paneel op `/admin` - **Dashboard** met statistieken (aantal pagina's, mappen, plugins) en snelle acties - **Content beheer** - Bestanden browsen, uploaden, aanmaken, bewerken, hernoemen, verplaatsen en verwijderen - **CodeMirror editor** met toolbar (vet, cursief, kop, link, afbeelding, lijst, media invoegen) @@ -250,7 +250,7 @@ Media bestanden (afbeeldingen, PDFs, video, audio) kunnen in elke `content/` sub ### Toegang -- **URL**: `/admin.php` +- **URL**: `/admin` - **Standaard login**: `admin` / `admin` ### Routes @@ -368,21 +368,22 @@ plugins: HTMLBlock, MQTTTracker ## URL Structuur ### Frontend Pagina URLs -- **Home**: `/` of `?page=index&lang=nl` -- **Pagina**: `?page=map/pagina&lang=nl` -- **Zoeken**: `?search=zoekterm` -- **Handleiding**: `?guide` -- **Taal wisselen**: `?lang=nl` of `?lang=en` +- **Home**: `/` of `/nl/` +- **Pagina**: `/nl/map/pagina` +- **Zoeken**: `?search=zoekterm` (via zoekformulier) +- **Handleiding**: `/nl/guide` +- **Taal wisselen**: `/nl` of `/en` ### Media URLs - **Media**: `/-media/pad/naar/bestand.jpg` (uit elke content subdirectory) - **Assets**: `/-assets/bestand.jpg` (uit content/-assets/, backward compatible) ### Admin URLs -- **Admin**: `admin.php?route=dashboard` -- **Content bewerken**: `admin.php?route=content-edit&file=pagina.md` -- **Content nieuw**: `admin.php?route=content-new&dir=map` -- **Thema bewerken**: `admin.php?route=theme&edit=themanaam` +- **Admin**: `/admin` +- **Dashboard**: `/admin/dashboard` +- **Content bewerken**: `/admin/content-edit?file=pagina.md` +- **Content nieuw**: `/admin/content-new?dir=map` +- **Thema bewerken**: `/admin/theme?edit=themanaam` ## SEO Optimalisatie @@ -511,21 +512,21 @@ De MQTTTracker plugin slaat `broker_host`, `broker_port`, `client_id`, `username ### Hoe voeg ik nieuwe content toe? -1. Via het admin paneel: `admin.php?route=content-new` +1. Via het admin paneel: `/admin/content-new` 2. Of upload bestanden naar de `content/` map 3. Organiseer in logische mappen 4. Gebruik juiste bestandsnamen en extensies ### Hoe verplaats ik een bestand of map? -1. Ga naar `admin.php?route=content` +1. Ga naar `/admin/content` 2. Klik op "Verplaatsen" naast het item 3. Selecteer de doelmap 4. Bevestig de verplaatsing ### Hoe maak ik een nieuw thema? -1. Ga naar `admin.php?route=theme` +1. Ga naar `/admin/theme` 2. Voer een naam in en klik "Aanmaken" 3. Pas kleuren, hoogtes en achtergrond aan 4. Activeer het thema @@ -565,8 +566,8 @@ De MQTTTracker plugin slaat `broker_host`, `broker_port`, `client_id`, `username ## Versie -Huidige versie: **1.5.0** (codenaam: "Enhanced") -Releasedatum: 2025-11-26 +Huidige versie: **1.6.0** (codenaam: "Enhanced") +Releasedatum: 2026-07-14 ## Ondersteuning diff --git a/version.php b/version.php index 01a06b9..4149d5e 100644 --- a/version.php +++ b/version.php @@ -13,8 +13,17 @@ return [ 'changelog' => [ '1.6.0' => [ - 'date' => '2026-06-24', + 'date' => '2026-07-14', 'changes' => [ + 'Clean URLs: /nl/page/path instead of ?page=...&lang=nl', + 'Clean admin URLs: /admin/route instead of admin.php?route=...', + 'Apache .htaccess rewrite rules for clean URLs', + 'PHP dev server router (cms/router.php) for local clean URLs', + 'CSRF token on admin login form', + 'Directory listing blocked (Options -Indexes)', + 'Secure cookies (HttpOnly, Secure, SameSite)', + 'Backup/sourcemap files blocked in .htaccess', + 'Version disclosure disabled (meta generator removed)', 'Media browser modal with upload and recursive content tree scan', 'CodeMirror editor with formatting toolbar (bold, italic, heading, link, image, list)', 'Media button in editor toolbar with image size prompt (Markdown vs HTML mode)',