mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-06-25 16:19:19 +02:00
* Move shared `fichiers-fragment.php` from `partage/` to `templates/partials/form/` and update all include/require references * `.gitignore`: exclude SQLite WAL/SHM journal files * FilePond UI: * change uploaded file block border state from yellow to green * restyle image previews to use site light-theme colors * Edit mode: * remove custom existing-file preview list implementation * preload existing files directly into FilePond pools * include `cover` and `note_intention` assets in FilePond-managed state * Remove obsolete upload progress bar UI and related JS includes * Remove deprecated `Écriture` + `Image` format types from upload flow/configuration
18 lines
488 B
PHP
18 lines
488 B
PHP
<?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 APP_ROOT . '/templates/partials/form/fichiers-fragment.php';
|