<?php
/**
 * fichiers-fragment.php (admin)
 *
 * Admin-gated HTMX fragment: returns the combined Format(s) + Fichiers block
 * for the admin add/edit forms.  Wraps the shared logic in fichiers-fragment.php
 * after enforcing authentication.
 */
require_once __DIR__ . '/../../bootstrap.php';
require_once __DIR__ . '/../../src/AdminAuth.php';
App::boot();

AdminAuth::requireLogin();

$_POST['admin_mode'] = '1';

require_once __DIR__ . '/../partage/fichiers-fragment.php';
