Update bootstrap.php documentation and clean up error reporting settings
This commit is contained in:
parent
434c2b07bf
commit
20337b8680
@ -1,15 +1,18 @@
|
||||
<?php
|
||||
|
||||
// Zentraler Bootstrap: muss vor jeglicher HTML-Ausgabe inkludiert werden.
|
||||
// - startet die Session genau einmal
|
||||
// - setzt sinnvolle PHP-Error-Settings für die Entwicklung
|
||||
// - lädt die Rollen des eingeloggten Users bei jedem Request
|
||||
/**
|
||||
* @file bootstrap.php
|
||||
* @brief Zentrale Initialisierung der Anwendung
|
||||
*
|
||||
* Startet die Session, lädt die Datenbankverbindung
|
||||
* und aktualisiert die Benutzerrollen.
|
||||
*/
|
||||
|
||||
require_once __DIR__ . '/db.php';
|
||||
|
||||
ini_set('display_errors', '1');
|
||||
ini_set('display_startup_errors', '1');
|
||||
error_reporting(E_ALL);
|
||||
//ini_set('display_errors', '1');
|
||||
//ini_set('display_startup_errors', '1');
|
||||
//error_reporting(E_ALL);
|
||||
|
||||
if (session_status() !== PHP_SESSION_ACTIVE)
|
||||
{
|
||||
@ -46,4 +49,3 @@ else
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user