- add session validation_errors bootstrap initialization - render global flash + validation messages in header - remove footer alert-based flash handling - persist structured validation errors across save handlers - mark NEXT_STEPS package 1 tasks as done
24 lines
528 B
PHP
24 lines
528 B
PHP
<?php
|
|
/**
|
|
* bootstrap.php
|
|
*
|
|
* Application initialization.
|
|
*/
|
|
|
|
require_once __DIR__ . '/config.php';
|
|
date_default_timezone_set(defined('APP_TIMEZONE') ? APP_TIMEZONE : 'UTC');
|
|
|
|
if (session_status() !== PHP_SESSION_ACTIVE) {
|
|
session_start();
|
|
}
|
|
|
|
if (!isset($_SESSION['validation_errors']) || !is_array($_SESSION['validation_errors'])) {
|
|
$_SESSION['validation_errors'] = [];
|
|
}
|
|
|
|
require_once __DIR__ . '/lib/_sql.php';
|
|
$sql = new SQL();
|
|
|
|
require_once __DIR__ . '/lib/helpers.php';
|
|
require_once __DIR__ . '/lib/auth.php';
|