div TODOs

This commit is contained in:
2026-02-16 13:56:01 +01:00
parent 12141485ae
commit 510a248edb
36 changed files with 1500 additions and 1533 deletions

View File

@@ -2,41 +2,18 @@
/**
* bootstrap.php
*
* Initialisierung der Anwendung
* - Config laden
* - Session starten
* - DB-Verbindung über _sql.php
* - Helper einbinden
* Application initialization.
*/
/* =========================
* Config laden
* ========================= */
require_once __DIR__ . '/config.php';
// TODO: Config-Datei mit DB-Zugang, Pfaden, globalen Settings füllen
date_default_timezone_set(defined('APP_TIMEZONE') ? APP_TIMEZONE : 'UTC');
/* =========================
* Session starten
* ========================= */
session_start();
// TODO: Single-User Auth prüfen
// z.B. $_SESSION['user'] setzen oder Login erzwingen
if (session_status() !== PHP_SESSION_ACTIVE) {
session_start();
}
/* =========================
* DB-Verbindung initialisieren
* ========================= */
require_once __DIR__ . '/lib/_sql.php';
// TODO: Host, User, Passwort, DB aus config.php nutzen
$sql = new SQL();
/* =========================
* Helper laden
* ========================= */
require_once __DIR__ . '/lib/helpers.php';
/* =========================
* Optional: Fehlerbehandlung
* ========================= */
// error_reporting(E_ALL);
// ini_set('display_errors', 1);
require_once __DIR__ . '/lib/auth.php';