<?php
/**
 * Rig N Dig - Configuration
 * This file is auto-generated by the install wizard.
 * DO NOT edit manually unless you know what you're doing.
 */

// If this file doesn't exist yet, redirect to installer
if (!defined('INSTALL_MODE')) {
    // Uncomment below only if needed for fresh install
    // header('Location: /install/'); exit;
}

// ─── NOT YET INSTALLED ────────────────────────────────────────────────────────
// This placeholder is overwritten by the install wizard.
// Visit /install/ to set up the database and admin account.
// ──────────────────────────────────────────────────────────────────────────────
define('INSTALLED', true);

define('DB_HOST', 'localhost');
define('DB_PORT', '3306');
define('DB_NAME', 'rigndig_newrig789');
define('DB_USER', 'rigndig_newrig789');
define('DB_PASS', 'ahsan987ahsan');

// Static Root SITE_URL (Best for general deployment)
define('SITE_URL', '');
define('SITE_NAME', 'Rig N Dig');
define('APP_SECRET', 'c87c4a64-b84f-7a11da73edb4'); // Application Security Key
define('SITE_DEBUG', false); // Set to true for development ONLY

define('SMTP_HOST', '');
define('SMTP_PORT', '587');
define('SMTP_USER', '');
define('SMTP_PASS', '');

define('APP_VERSION', '1.0.0');

// Paths
define('ROOT_PATH', dirname(__DIR__));
define('UPLOAD_PATH', ROOT_PATH . '/uploads');
define('PDF_PATH', ROOT_PATH . '/pdf');
define('LOG_PATH', ROOT_PATH . '/logs');

// Upload settings
define('MAX_FILE_SIZE', 10 * 1024 * 1024); // 10MB
define('ALLOWED_IMAGE_TYPES', ['image/jpeg', 'image/png', 'image/webp', 'image/gif']);
define('ALLOWED_DOC_TYPES', ['application/pdf', 'application/msword', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document']);

// Pagination
define('PRODUCTS_PER_PAGE', 12);
define('ADMIN_PER_PAGE', 20);

// Session lifetime (seconds)
define('SESSION_LIFETIME', 3600 * 8); // 8 hours
