<?php
/**
 * Enterprise HRM ERP System - Initialization File
 * Load all core files and initialize system
 */

// Define access constant
define('HRM_ACCESS', true);

// Start output buffering
ob_start();

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

// Load database
require_once __DIR__ . '/database.php';

// Load functions
require_once __DIR__ . '/functions.php';

// Load authentication
require_once __DIR__ . '/auth.php';

// Load locking functions
require_once __DIR__ . '/locking.php';

// Load data isolation functions
require_once __DIR__ . '/data_isolation.php';
require_once __DIR__ . '/data_isolation_helper.php';

// Load notification functions
require_once __DIR__ . '/notifications.php';

// Start session
startSession();

// Set timezone from settings
$timezone = getSetting('SYSTEM_TIMEZONE', 'UTC');
date_default_timezone_set($timezone);

