mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-06-25 08:09:18 +02:00
Extract shared filepond logic into src/FilepondHandler.php class. Admin filepond endpoints delegate to the handler after AdminAuth check. New partage filepond endpoints at /partage/actions/filepond/ verify share_active session flag + CSRF token, no admin auth required. JS reads filepond-base meta tag to determine endpoint path: - Admin pages: /admin/actions/filepond (via head.php isAdmin check) - Partage form: /partage/actions/filepond (explicit meta) partage/index.php sets share_active = true on form render, cleans up on successful submit. Partage process endpoint rate-limited to 30/5min per session. No nginx changes needed — /partage/ location already handles PHP without auth_basic.
61 lines
1.8 KiB
PHP
61 lines
1.8 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.
|
||
// Admin and partage pages remain accessible during maintenance.
|
||
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 – XAMXAM</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">XAMXAM</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>
|