v2.6.5 (Lyra): Dynamische pad-resolutie, WordPress-stijl docblocks, security-fix wachtwoord, git-historie schoon
- Bug: dashboard toonde 0 content (AdminPluginAPI::getContentDir() gaf relatief pad terug zonder normalisatie) - Dynamische pad-resolutie: PluginAPIInterface uitgebreid met getProjectRoot/getContentDir/getPluginsDir/getVersionInfo; CMSAPI en AdminPluginAPI implementeren deze universeel - public/index.php media-serving gebruikt $config['content_dir'] i.p.v. hardcoded /content - Navigation en Logs plugins halen paden via de API i.p.v. hardcoded dirname(__DIR__) - WordPress-stijl docblocks toegevoegd voor alle classes, methods, properties en functies (~450 docblocks, @since 2.6.5) - Security: hardcoded plaintext-wachtwoord 'admin' verwijderd uit AdminAuth.php; bij eerste installatie wordt een cryptografisch veilig wachtwoord gegenereerd (random_bytes, 16 tekens) en eenmalig op het inlogscherm getoond - Security: git-geschiedenis schoongemaakt (admin.json, admin.json.example, admin-console/config/admin.json verwijderd uit alle commits; filter-branch over alle branches + tags, gc --prune --aggressive) - README.md, README.en.md, AGENTS.md bijgewerkt - Test-scripts bijgewerkt naar clean-URL structuur + actuele ARIA-waarden - Versie verhoogd naar 2.6.5 - Tests: pentest 29/29, WCAG 25/25, functioneel 16/16, enhanced 25/25
This commit is contained in:
+9
-9
@@ -19,14 +19,14 @@
|
||||
* 2. Een CodePressCMS-instantie aanmaakt met de config.
|
||||
* 3. render() aanroept om de pagina uit te voeren.
|
||||
*
|
||||
* @since 2.6.4
|
||||
* @since 2.6.5
|
||||
* @package CodePress
|
||||
*/
|
||||
|
||||
/**
|
||||
* Configuratie-systeem laden: defaults en config.json-merge.
|
||||
*
|
||||
* @since 2.6.4
|
||||
* @since 2.6.5
|
||||
*/
|
||||
// Load configuration system - handles default settings and config.json merging
|
||||
require_once 'config.php';
|
||||
@@ -34,7 +34,7 @@ require_once 'config.php';
|
||||
/**
|
||||
* Composer-autoloader laden indien aanwezig.
|
||||
*
|
||||
* @since 2.6.4
|
||||
* @since 2.6.5
|
||||
*/
|
||||
// Load Composer autoloader
|
||||
$autoloader = dirname(__DIR__, 2) . '/vendor/autoload.php';
|
||||
@@ -45,7 +45,7 @@ if (file_exists($autoloader)) {
|
||||
/**
|
||||
* Core utility classes laden.
|
||||
*
|
||||
* @since 2.6.4
|
||||
* @since 2.6.5
|
||||
*/
|
||||
// Load core utility classes
|
||||
require_once 'class/Cache.php';
|
||||
@@ -59,7 +59,7 @@ require_once 'class/ThemeManager.php';
|
||||
/**
|
||||
* Logger-klassen laden voor gestructureerde logging met log levels.
|
||||
*
|
||||
* @since 2.6.4
|
||||
* @since 2.6.5
|
||||
*/
|
||||
// Load Logger class - structured logging with log levels
|
||||
require_once 'class/Logger.php';
|
||||
@@ -68,7 +68,7 @@ require_once 'class/LogManager.php';
|
||||
/**
|
||||
* Plugin-systeem laden (interfaces, API's en PluginManager).
|
||||
*
|
||||
* @since 2.6.4
|
||||
* @since 2.6.5
|
||||
*/
|
||||
// Load Plugin system
|
||||
require_once 'plugin/PluginAPIInterface.php';
|
||||
@@ -79,7 +79,7 @@ require_once 'plugin/PluginManager.php';
|
||||
/**
|
||||
* ContentAPI laden: CMS-data-toegang voor PHP content-bestanden.
|
||||
*
|
||||
* @since 2.6.4
|
||||
* @since 2.6.5
|
||||
*/
|
||||
// Load ContentAPI class - provides CMS data access for PHP content files
|
||||
require_once 'class/ContentAPI.php';
|
||||
@@ -87,7 +87,7 @@ require_once 'class/ContentAPI.php';
|
||||
/**
|
||||
* Hoofdclass laden: content parsing, navigation, search en page rendering.
|
||||
*
|
||||
* @since 2.6.4
|
||||
* @since 2.6.5
|
||||
*/
|
||||
// Load main CMS class - handles content parsing, navigation, search, and page rendering
|
||||
require_once 'class/CodePressCMS.php';
|
||||
@@ -95,7 +95,7 @@ require_once 'class/CodePressCMS.php';
|
||||
/**
|
||||
* Logger initialiseren (debug-mode kan via config worden ingeschakeld).
|
||||
*
|
||||
* @since 2.6.4
|
||||
* @since 2.6.5
|
||||
*/
|
||||
// Initialize logger (debug mode can be enabled in config)
|
||||
Logger::init();
|
||||
Reference in New Issue
Block a user