<?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", "smtpout.secureserver.net"); // Custom webmail SMTP host
define("MAIL_PORT", 465); // 465 for SSL (as specified)
define("MAIL_USERNAME", "support@ecotradefx.com"); // Support email address
define("MAIL_PASSWORD", "support@ecotradefx.com"); // Email password for webmail
define("MAIL_ENCRYPTION", "ssl"); // ssl for port 465
define("MAIL_FROM_EMAIL", "support@ecotradefx.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;
}

?>
