<?php
/**
 * Roofing Nation LLC - Configuration File
 * 
 * IMPORTANT: Update these values with your actual cPanel credentials
 * before deploying to your server.
 */

// Database Configuration
// Find these in cPanel > MySQL Databases
define('DB_HOST', 'localhost');
define('DB_NAME', 'payperprospects_DBRN2026');  // e.g., 'roofing_leads' or 'username_leads'
define('DB_USER', 'payperprospects_USERRN2026');  // e.g., 'username_leaduser'
define('DB_PASS', '8U;2njo56#!!AcJ]');

// SMTP Configuration
// Configure in cPanel > Email Accounts
define('SMTP_HOST', 'mail.roofing-nation.com');
define('SMTP_PORT', 465);  // Use 465 for SSL, 587 for TLS
define('SMTP_USER', 'marketing@roofing-nation.com');
define('SMTP_PASS', 'MKroofing2025');
define('SMTP_FROM', 'marketing@roofing-nation.com');
define('SMTP_FROM_NAME', 'Roofing Nation LLC');

// Team notification email
// All lead notifications will be sent here
define('TEAM_EMAIL', 'sales@roofing-nation.com, marketing@roofing-nation.com, christian@roofing-nation.com, albany@roofing-nation.com, estimation@roofing-nation.com, estimation@roofing-nation.com, gio@roofing-nation.com, leopoldo1439@gmail.com');

// Allowed origins for CORS (your website domains)
define('ALLOWED_ORIGINS', [
    'https://roofing-nation.com',
    'https://www.roofing-nation.com',
    'http://localhost:5173',  // For local development - remove in production
    'http://localhost:8080',  // For local development - remove in production
]);

// Error logging
// Create this directory and make it writable: chmod 755 logs
define('LOG_DIR', __DIR__ . '/logs');
if (!is_dir(LOG_DIR)) {
    mkdir(LOG_DIR, 0755, true);
}
ini_set('log_errors', 1);
ini_set('error_log', LOG_DIR . '/errors.log');
