Initiales CMS: Deutschsprachiges Blog-System mit Admin-Bereich
Vollständiges, schlankes PHP/SQLite-CMS für IT-, KI- und Gaming-Inhalte: - Core: DB-Singleton, Auth mit Passwort-Hashing, Session-Cookies, CSRF-Schutz, Login-Rate-Limit, Bild-Upload mit serverseitiger Validierung - Admin: Dashboard, Artikel/Seiten-Verwaltung mit Quill WYSIWYG-Editor, Kategorien, Navigation (Drag & Drop), Medienbibliothek, Profil - Frontend: Responsive Dark-Theme, Artikel-Grid, Kategorie-Filter, Archiv, Paginierung, SEO-Meta-Tags - Sicherheit: Prepared Statements, HTML-Sanitizer, .htaccess-Schutz für sensible Verzeichnisse, PHP-Ausführungsschutz im Upload-Ordner - Installation: install.php erstellt DB-Schema und Admin-Account https://claude.ai/code/session_01Xsg4j2t4S9goMuWVpF3ezG
This commit is contained in:
20
config/config.php
Normal file
20
config/config.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
/**
|
||||
* Konfiguration - DasPoschi CMS
|
||||
*/
|
||||
|
||||
define('DB_PATH', __DIR__ . '/../data/cms.db');
|
||||
define('SITE_TITLE', 'DasPoschi');
|
||||
define('SITE_DESCRIPTION', 'IT, KI & Gaming');
|
||||
define('SITE_URL', ''); // Basis-URL, leer = relativ
|
||||
define('TIMEZONE', 'Europe/Berlin');
|
||||
|
||||
define('UPLOAD_DIR', __DIR__ . '/../uploads/');
|
||||
define('UPLOAD_URL', '/uploads/');
|
||||
define('UPLOAD_MAX_SIZE', 5 * 1024 * 1024); // 5 MB
|
||||
define('ALLOWED_MIME_TYPES', ['image/jpeg', 'image/png', 'image/gif', 'image/webp']);
|
||||
|
||||
define('ITEMS_PER_PAGE', 10);
|
||||
define('LOGIN_MAX_ATTEMPTS', 5);
|
||||
define('LOGIN_LOCKOUT_MINUTES', 15);
|
||||
define('SESSION_LIFETIME', 3600);
|
||||
Reference in New Issue
Block a user