<?php
declare(strict_types=1);

require_once __DIR__ . '/../config.php';
require_once __DIR__ . '/json_store.php';
require_once __DIR__ . '/helpers.php';
require_once __DIR__ . '/settings.php';
require_once __DIR__ . '/theme.php';
require_once __DIR__ . '/ibans.php';
require_once __DIR__ . '/sellers.php';
require_once __DIR__ . '/avatars.php';
require_once __DIR__ . '/categories.php';
require_once __DIR__ . '/product_form.php';
require_once __DIR__ . '/comment_ai.php';
require_once __DIR__ . '/receipt_ai.php';
require_once __DIR__ . '/auth.php';
require_once __DIR__ . '/admin.php';
require_once __DIR__ . '/og.php';
require_once __DIR__ . '/menu.php';
require_once __DIR__ . '/site_control.php';

// WhatsApp/Facebook botunda session = no-store cookie; önizleme bozulabilir.
if (session_status() === PHP_SESSION_NONE && !site_control_is_social_crawler()) {
    session_start();
}

site_control_enforce();
