<?php
/**
 * Flexi Access Bank - Core Configuration
 * Database and system settings
 */

// Database Configuration
define('DB_HOST', 'localhost');
define('DB_USER', 'flexiaccess_flexi');
define('DB_PASS', 'Casper2017$$$'); // Set your database password
define('DB_NAME', 'flexiaccess_flexi');

// Application Settings
define('SITE_NAME', 'Flexi Access Bank');
define('SITE_TAGLINE', 'Banking Without Boundaries');
define('SITE_EMAIL', 'support@flexiaccess.site');
define('BASE_URL', 'https://' . $_SERVER['HTTP_HOST'] . '/');
define('CURRENCY', 'USD');
define('CURRENCY_SYMBOL', '$');

// Security Settings
define('SESSION_TIMEOUT', 3600); // 1 hour
define('MAX_LOGIN_ATTEMPTS', 5);
define('LOCKOUT_DURATION', 900); // 15 minutes

// Transfer Fees
define('TRANSFER_FEE_LOCAL', 2.50);
define('TRANSFER_FEE_INTERNATIONAL', 25.00);

// SMTP Configuration (for email notifications)
define('SMTP_HOST', 'flexiaccess.site');
define('SMTP_PORT', 465);
define('SMTP_USER', 'Info@flexiaccess.site');
define('SMTP_PASS', 'Casper2017$$$');
define('SMTP_FROM_EMAIL', 'noreply@flexiaccess.site');
define('SMTP_FROM_NAME', 'Flexi Access');
define('SMTP_ENCRYPTION', 'ssl');

// Error Reporting (set to 0 in production)
error_reporting(E_ALL);
ini_set('display_errors', 1);

// Timezone
date_default_timezone_set('UTC');

// Start Session
if (session_status() === PHP_SESSION_NONE) {
    session_start();
}
?>
