<?php
declare(strict_types=1);

if (session_status() === PHP_SESSION_NONE) {
    session_start();
}

// This app is under the domain root
define('BASE_URL', '');

// ENV
define('APP_ENV', 'local'); // keep as 'local' while we debug

// Error reporting for debugging
if (APP_ENV === 'local') {
    ini_set('display_errors', '1');
    ini_set('display_startup_errors', '1');
    error_reporting(E_ALL);
} else {
    ini_set('display_errors', '0');
    error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED);
}

// DB CONFIG – adjust to match cPanel
define('BASE_URL', '');
define('APP_ENV', 'local');       // or 'production'

define('DB_HOST', 'localhost');
define('DB_NAME', 'parentseveningit_pedb');
define('DB_USER', 'parentseveningit_pedba');
define('DB_PASS', '?,*zQ%c@vSqH-taa');
define('DB_CHARSET', 'utf8mb4');