<?php
error_reporting(E_ALL);
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
ini_set('log_errors', 1);
ini_set('error_log', __DIR__ . '/errors.log');

// Database Configuration
define('DB_HOST', 'localhost');
define('DB_USER', 'cjeaswoy_ddexadmin');
define('DB_PASS', '#Shalom116!');
define('DB_NAME', 'cjeaswoy_ddes_exchange');

// Application Configuration
define('SITE_NAME', 'HORPEX');
define('SITE_URL', 'https://localhost:8080/crypto-app');
define('SITE_ROOT', dirname(__FILE__));

// Security Configuration
define('HASH_ALGORITHM', 'sha256');
define('HASH_COST', 12);
define('SESSION_TIMEOUT', 3600); // 1 hour
define('TRADE_TIMEOUT', 1800); // 30 minutes
define('MAX_LOGIN_ATTEMPTS', 5);
define('LOCKOUT_TIME', 900); // 15 minutes

// API Keys (Replace with real keys in production)
define('COINGECKO_API_KEY', 'your_coingecko_api_key');
define('EMAIL_API_KEY', 'your_email_api_key');

// File Upload Configuration
define('UPLOAD_PATH', 'uploads/');
define('MAX_FILE_SIZE', 5242880); // 5MB
define('ALLOWED_EXTENSIONS', 'jpg, jpeg, png, pdf');

// Timezone
date_default_timezone_set('UTC');

// Error Reporting (Disable in production)
error_reporting(E_ALL);
ini_set('display_errors', 1);

// Session Configuration
ini_set('session.cookie_httponly', 1);
ini_set('session.cookie_secure', 1);
ini_set('session.use_only_cookies', 1);
session_start();
?>