File-based admin panel accessible at /admin.php with: - Session-based auth with bcrypt hashing and brute-force protection - Dashboard with site statistics and quick actions - Content manager: browse, create, edit, delete files - Config editor with JSON validation - Plugin overview with status indicators - User management: add, remove, change passwords - CSRF protection on all forms, path traversal prevention - Updated README (NL/EN) and guides with admin documentation
18 lines
519 B
PHP
18 lines
519 B
PHP
<?php
|
|
|
|
return [
|
|
'name' => 'CodePress Admin',
|
|
'version' => '1.0.0',
|
|
'debug' => $_ENV['APP_DEBUG'] ?? false,
|
|
'timezone' => 'Europe/Amsterdam',
|
|
|
|
// Paths
|
|
'admin_root' => __DIR__ . '/../',
|
|
'codepress_root' => __DIR__ . '/../../',
|
|
'content_dir' => __DIR__ . '/../../content/',
|
|
'config_json' => __DIR__ . '/../../config.json',
|
|
'plugins_dir' => __DIR__ . '/../../plugins/',
|
|
'admin_config' => __DIR__ . '/admin.json',
|
|
'log_file' => __DIR__ . '/../storage/logs/admin.log',
|
|
];
|