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,7 +9,7 @@
|
||||
* de admin-statistiekpagina landen met pure CSS kan inkleuren. Wordt via
|
||||
* de CLI uitgevoerd en schrijft public/assets/img/world-map.svg.
|
||||
*
|
||||
* @since 2.6.4
|
||||
* @since 2.6.5
|
||||
* @package CodePress
|
||||
*/
|
||||
|
||||
@@ -78,7 +78,7 @@ function nameToAlpha2(): array
|
||||
* verzamelt paden per ISO alpha-2 code en schrijft de SVG naar
|
||||
* public/assets/img/world-map.svg.
|
||||
*
|
||||
* @since 2.6.4
|
||||
* @since 2.6.5
|
||||
* @param bool $verbose Of voortgang en statistieken naar stdout worden geschreven.
|
||||
* @return bool True bij succes, false bij een download- of parse-fout.
|
||||
*/
|
||||
@@ -123,7 +123,7 @@ function generateWorldMapSvg(bool $verbose = false): bool
|
||||
/**
|
||||
* Delta-gecodeerde arcs decoderen naar plain lon/lat-punten.
|
||||
*
|
||||
* @since 2.6.4
|
||||
* @since 2.6.5
|
||||
*/
|
||||
// Decode delta-encoded arcs into plain lon/lat pairs. Projection happens
|
||||
// later, after antimeridian handling, because that works in degrees.
|
||||
@@ -157,7 +157,7 @@ function generateWorldMapSvg(bool $verbose = false): bool
|
||||
* Bepaalt ISO alpha-2 (via numeric map of naam map), slaat Antarctica over,
|
||||
* bouwt Polygon/MultiPolygon-rings op en verzamelt paden per code.
|
||||
*
|
||||
* @since 2.6.4
|
||||
* @since 2.6.5
|
||||
*/
|
||||
foreach ($topo['objects']['countries']['geometries'] as $geo) {
|
||||
$rawId = $geo['id'] ?? '';
|
||||
@@ -297,7 +297,7 @@ function generateWorldMapSvg(bool $verbose = false): bool
|
||||
* class, d en <title>, voegt inline CSS toe en schrijft het resultaat naar
|
||||
* de output-map.
|
||||
*
|
||||
* @since 2.6.4
|
||||
* @since 2.6.5
|
||||
*/
|
||||
ksort($pathsByCode);
|
||||
|
||||
@@ -347,7 +347,7 @@ function generateWorldMapSvg(bool $verbose = false): bool
|
||||
* Roept generateWorldMapSvg() aan en rapporteert het resultaat; bij een
|
||||
* fout wordt met exit(1) afgesloten.
|
||||
*
|
||||
* @since 2.6.4
|
||||
* @since 2.6.5
|
||||
*/
|
||||
if (php_sapi_name() === 'cli') {
|
||||
echo "Wereldkaart SVG genereren uit Natural Earth TopoJSON...\n";
|
||||
|
||||
Reference in New Issue
Block a user