<?php
require_once __DIR__ . '/helpers.php';

date_default_timezone_set(app_config()['timezone'] ?? 'Asia/Tehran');
mb_internal_encoding('UTF-8');

if (session_status() === PHP_SESSION_NONE) {
    session_start();
}

$config = app_config();
ensure_dir($config['storage_path']);
ensure_dir($config['exports_path']);
ensure_dir($config['uploads_path']);
ensure_dir($config['runtime_path']);
ensure_dir($config['logs_path']);
