mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-05-06 11:09:18 +02:00
Tags admin: - Database: getAllTagsWithCount(), renameTag(), mergeTag(), deleteTag() - public/admin/tags.php: table with inline rename/merge/delete forms, CSRF-guarded - public/admin/actions/tag.php: routes on action=rename|merge|delete - templates/admin/head.php: 'Mots-clés' nav link - admin.css: admin-inline-form, admin-btn--sm/warning/danger variants Maintenance mode: - config/bootstrap.php: gate on MAINTENANCE_FLAG file; admin/ and maintenance.php exempt - public/maintenance.php: 503 dark minimal page - public/admin/actions/maintenance.php: enable/disable toggle - public/admin/index.php: status bar with toggle button - admin.css: admin-maintenance-bar styles TFE Visibility (Libre/Interne/Interdit via existing access_type_id): - migration 002_add_visibility.sql: seeds access_types if missing - Database: setVisibility(), bulkSetVisibility(), getAccessTypes() - public/media.php: blocks thesis files for access_type_id=3 - public/tfe.php: shows access_type, context_note; hides file panel for Interdit - public/admin/edit.php: access_type_id select + context_note textarea; saves both - public/admin/index.php: three-state badge (Libre/Interne/Interdit) per row - public/admin/actions/visibility.php: single + bulk visibility action handler - admin.css: status-access badge variants
60 lines
1.7 KiB
PHP
60 lines
1.7 KiB
PHP
<?php
|
||
// This page is served directly by nginx / bootstrap when maintenance mode is active.
|
||
// It is also served by the public gate in bootstrap.php.
|
||
http_response_code(503);
|
||
header('Retry-After: 3600');
|
||
?><!DOCTYPE html>
|
||
<html lang="fr">
|
||
<head>
|
||
<meta charset="UTF-8">
|
||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||
<title>Maintenance – Posterg</title>
|
||
<style>
|
||
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
||
body {
|
||
background: #0d0d0d;
|
||
color: #e0e0e0;
|
||
font-family: 'Helvetica Neue', Arial, sans-serif;
|
||
min-height: 100vh;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
padding: 2rem;
|
||
}
|
||
.box {
|
||
max-width: 520px;
|
||
text-align: center;
|
||
}
|
||
.box__logo {
|
||
font-size: 1.1rem;
|
||
font-weight: 700;
|
||
letter-spacing: .12em;
|
||
text-transform: uppercase;
|
||
color: #fff;
|
||
margin-bottom: 2.5rem;
|
||
}
|
||
.box__title {
|
||
font-size: 1.6rem;
|
||
font-weight: 300;
|
||
letter-spacing: .04em;
|
||
margin-bottom: 1rem;
|
||
}
|
||
.box__text {
|
||
font-size: .95rem;
|
||
color: #999;
|
||
line-height: 1.7;
|
||
}
|
||
</style>
|
||
</head>
|
||
<body>
|
||
<div class="box">
|
||
<div class="box__logo">POSTERG</div>
|
||
<h1 class="box__title">Maintenance en cours</h1>
|
||
<p class="box__text">
|
||
Le site est temporairement indisponible pour des raisons de maintenance.<br>
|
||
Merci de réessayer dans quelques instants.
|
||
</p>
|
||
</div>
|
||
</body>
|
||
</html>
|