<?php
/**
 * GlowSpace Configuration File
 * Database and system configuration
 */

// Database Configuration
define('DB_HOST', 'localhost');
define('DB_NAME', 'jisanpro2_glowspace');
define('DB_USER', 'jisanpro2_glowadmin');
define('DB_PASS', 'GloW@2026#Space');

// Site Configuration
define('GS_ROOT', __DIR__);
define('GS_DATA', GS_ROOT . '/data');
define('GS_UPLOADS', GS_ROOT . '/uploads');
define('GS_URL', 'https://glowspace.adnanzxy.top');

// Security Configuration
define('CSRF_TOKEN_NAME', 'csrf_token');
define('SESSION_LIFETIME', 86400); // 24 hours
define('REMEMBER_ME_LIFETIME', 2592000); // 30 days

// Courier Configuration (Steadfast)
define('STEADFAST_API_KEY', 'wic9quaga555oyy2bgwecy0wmztxvyhd');
define('STEADFAST_SECRET_KEY', 'llqran7jwrzyk74gyolvelob');
define('STEADFAST_API_URL', 'https://portal.packzy.com/api/v1/create_order');

// Email Configuration (for password reset, etc.)
define('SMTP_HOST', 'smtp.gmail.com');
define('SMTP_PORT', 587);
define('SMTP_USER', 'glowspacebd@gmail.com');
define('SMTP_PASS', 'ybav tqib gfox cvnk');
define('SMTP_FROM', 'glowspacebd@gmail.com');
define('SMTP_FROM_NAME', 'GlowSpace');

// Create directories if they don't exist
if (!is_dir(GS_DATA)) mkdir(GS_DATA, 0755, true);
if (!is_dir(GS_UPLOADS)) mkdir(GS_UPLOADS, 0755, true);
if (!is_dir(GS_UPLOADS . '/products')) mkdir(GS_UPLOADS . '/products', 0755, true);
if (!is_dir(GS_UPLOADS . '/banners')) mkdir(GS_UPLOADS . '/banners', 0755, true);
if (!is_dir(GS_UPLOADS . '/settings')) mkdir(GS_UPLOADS . '/settings', 0755, true);
if (!is_dir(GS_UPLOADS . '/profiles')) mkdir(GS_UPLOADS . '/profiles', 0755, true);
