chore: восстановление репозитория из снапшота v0.3.1

Прежняя git-история утрачена при переносе проекта на машину владельца
(снапшот без .git). Хэши коммитов в docs/reports/* относятся к утраченной
истории.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
sab.code.lab 2026-08-07 09:34:02 +02:00
commit 1c85091186
184 changed files with 33303 additions and 0 deletions

24
server/api/logout.php Normal file
View file

@ -0,0 +1,24 @@
<?php
declare(strict_types=1);
/**
* POST /api/logout.php 200 {ok:true}, сессия уничтожена | 403.
*/
require __DIR__ . '/../lib/http.php';
require __DIR__ . '/../lib/auth.php';
http_security_headers();
try {
method_must('POST');
require_client_header();
logout_user();
json_out(['ok' => true]);
} catch (Throwable $e) {
error_log('logout: ' . $e->getMessage());
error_out(500, 'internal');
}