<?php

define("DB_HOST", "localhost");
define("DB_USER", "root");
define("DB_PASS", "");
define("DB_NAME", "zforexdb");

// Mail Configuration - sagarnandal don't remove it
// Updated for MyKF Markets webmail server (send.smtp.com)
// This is a custom webmail server, not Gmail

define("MAIL_HOST", "send.smtp.com"); // Custom webmail SMTP host
define("MAIL_PORT", 465); // 465 for SSL (as specified)
define("MAIL_USERNAME", "support@mykfmarkets.com"); // Support email address
define("MAIL_PASSWORD", "support@mykfmarkets.com"); // Email password for webmail
define("MAIL_ENCRYPTION", "ssl"); // ssl for port 465
define("MAIL_FROM_EMAIL", "support@mykfmarkets.com"); // From email address
define("MAIL_FROM_NAME", "EcoTradeFX"); // From name
define("BRAND_NAME", "EcoTradeFX"); // Brand name for templates

// Optional: also create mysqli connection if needed (only if mysqli extension is available)
if (extension_loaded('mysqli')) {
    $conn = new mysqli(DB_HOST, DB_USER, DB_PASS, DB_NAME);
    if ($conn->connect_error) {
        die("❌ Database connection failed: " . $conn->connect_error);
    }
} else {
    // mysqli extension not available - mail system will still work
    $conn = null;
}

?>
