<?php
/**
 * Initialize application
 * Include this file at the start of every PHP page
 */

// Start session
if (session_status() === PHP_SESSION_NONE) {
    session_start();
}

// Load configuration
require_once __DIR__ . '/../config/database.php';
require_once __DIR__ . '/../config/constants.php';

// Load classes
require_once __DIR__ . '/Database.php';
require_once __DIR__ . '/Auth.php';
require_once __DIR__ . '/User.php';
require_once __DIR__ . '/Product.php';
require_once __DIR__ . '/Cart.php';
require_once __DIR__ . '/Order.php';
require_once __DIR__ . '/B2B.php';
require_once __DIR__ . '/Loyalty.php';
require_once __DIR__ . '/Gift.php';
require_once __DIR__ . '/EmailService.php';
require_once __DIR__ . '/ImportExport.php';

// Initialize auth
$auth = new Auth();
?>

