<?php
/**
 * Application Initialization
 */

// Load Composer autoloader
require_once __DIR__ . '/../vendor/autoload.php';

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

// Load libraries
require_once __DIR__ . '/../lib/Database.php';
require_once __DIR__ . '/../lib/Pagination.php';
require_once __DIR__ . '/../lib/Settings.php';

// Load session manager
require_once __DIR__ . '/session_manager.php';

// Start session
SessionManager::start();

// Load includes
require_once __DIR__ . '/auth.php';
require_once __DIR__ . '/csrf.php';
require_once __DIR__ . '/flash_messages.php';
require_once __DIR__ . '/functions.php';
require_once __DIR__ . '/validators.php';
