<?php
define('DB_HOST', 'localhost');         
define('DB_NAME', 'astrolpq_test_ims');   
define('DB_USER', 'astrolpq_ft');               
define('DB_PASS', 'final@Br_2025');

define('BASE_URL', 'IMS');
define('APP_NAME', ''); 
define('DEBUG_MODE', true) .'';

define('ENCRYPTION_KEY', '7116f0feaf7966a19a46f79247b5cacba9c62c391056dfbf8fad10909484cc35');
define('SESSION_TIMEOUT', 1800);

define('SMTP_HOST', 'smtp.example.com');
define('SMTP_USER', 'user@example.com'); 
define('SMTP_PASS', 'password');         
define('SMTP_PORT', 587);                
define('SMTP_SECURE', 'tls');          

define('MAX_FILE_SIZE', 50 * 1024 * 1024);
define('ALLOWED_FILE_TYPES', [
    'image/jpeg', 'image/png', 'image/gif', 'image/webp',
    'application/pdf',
    'application/msword',
    'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
    'application/vnd.ms-excel',
    'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
]);
define('CHAT_ALLOWED_VOICE_TYPES', ['audio/webm', 'audio/ogg', 'audio/mp4', 'audio/mpeg']);

define('LOG_DIR', __DIR__ . '/../logs'); 
define('LOG_LEVEL', 'DEBUG');

define('DEFAULT_TIMEZONE', 'Africa/Blantyre');
date_default_timezone_set(DEFAULT_TIMEZONE);

if (DEBUG_MODE) {
    error_reporting(E_ALL);
    ini_set('display_errors', 1);
} else {
    error_reporting(0);
    ini_set('display_errors', 0);
}
?>
