mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-06-25 16:19:19 +02:00
add file export system for admins
- ExportController: getAllThesisFiles(), buildExportManifest(), createExportZip() builds a ZIP archive with manifest.json + files/ mirror of storage/theses/ - Database: getAllThesisFilesForExport() queries all thesis_files + identifier - AdminLogger: logFilesExport() audit log entry - admin/actions/export-files.php: thin dispatcher, streams zip with headers - templates/admin/index.php: 'Exporter fichiers' button next to CSV export
This commit is contained in:
8
TODO.md
8
TODO.md
@@ -98,3 +98,11 @@
|
||||
- [x] Update all PHP templates to use new `.btn` classes (`btn btn--primary`, `btn btn--secondary`, `btn btn--danger`, etc.)
|
||||
- [x] Update border-radius on pagination buttons to 10px for consistency
|
||||
- [x] Exclude `storage/maintenance.flag` from rsync deploy and git
|
||||
|
||||
## Admin file export system
|
||||
- [x] `ExportController`: add `getAllThesisFiles()`, `buildExportManifest()`, `createExportZip()` — gathers all thesis files, creates zip with files/ + manifest.json
|
||||
- [x] `admin/actions/export-files.php` — thin dispatcher, streams zip, logs audit
|
||||
- [x] `AdminLogger::logFilesExport()` — audit log entry for file exports
|
||||
- [x] `templates/admin/index.php` — add "Exporter fichiers" button next to CSV export button
|
||||
- [x] `Database::getAllThesisFilesForExport()` — query all thesis_files + identifier
|
||||
- [x] `docs/export.md` — documentation en français pour administrateurs : fonctionnement, contenu du ZIP, procédure de restauration complète et partielle
|
||||
|
||||
Reference in New Issue
Block a user