<?php
// Common bootstrap for the application
// Loads config, auth, and ensures session/error settings are consistent.
require_once __DIR__ . 'config.php';
require_once __DIR__ . 'auth.php';

// Centralized error reporting (keep hidden in prod) s 
error_reporting(E_ALL);
ini_set('display_errors', '0'); 
ini_set('log_errors', '1');
if (!ini_get('error_log')) {
    ini_set('error_log', dirname(__DIR__) . '/my_custom_error.log');
}
