<?php
/**
 * Application Constants
 */

// Set UTF-8 as default encoding for all string operations
ini_set('default_charset', 'UTF-8');
if (extension_loaded('mbstring')) {
    mb_internal_encoding('UTF-8');
}

// Database Configuration (MySQL)
define('DB_HOST', getenv('DB_HOST') ?: 'localhost');
define('DB_NAME', getenv('DB_NAME') ?: 'hanafiv1_cr');
define('DB_USER', getenv('DB_USER') ?: 'hanafiv1_cr');
define('DB_PASS', getenv('DB_PASS') ?: 'Mh1577472812');
define('DB_CHARSET', 'utf8mb4');

// Didar API
define('DIDAR_API_BASE', 'https://app.didar.me/api');

// Logging
define('LOG_FILE', __DIR__ . '/../../logs/app.log');
define('ERROR_LOG_FILE', __DIR__ . '/../../logs/error.log');

// Timezone
date_default_timezone_set('Asia/Tehran');

// Temporary offline UI mode (no external assets).
