<?php
/**
 * TOPBD — Application Configuration
 * Bangladesh's Live Ranking & Outbid Marketplace
 */

define('DB_HOST', 'localhost');
define('DB_NAME', 'topbd_database');
define('DB_USER', 'topbd_user');
define('DB_PASS', 'topbd_password');
define('DB_PREFIX', 'topbd_');

// Application URL (No trailing slash)
define('APP_URL', 'https://yourdomain.com');

// Session & Security Keys
define('APP_KEY', 'sec_' . bin2hex(random_bytes(16)));
define('SESSION_LIFETIME', 86400);

// Environment
define('ENVIRONMENT', 'production'); // 'development' or 'production'

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

if (ENVIRONMENT === 'development') {
    error_reporting(E_ALL);
    ini_set('display_errors', '1');
} else {
    error_reporting(0);
    ini_set('display_errors', '0');
}
