Initial commit

This commit is contained in:
root
2025-12-23 13:18:58 +02:00
commit 2ef7528ee9
36 changed files with 5983 additions and 0 deletions

13
includes/flash.php Normal file
View File

@@ -0,0 +1,13 @@
<?php
declare(strict_types=1);
function flash_set(string $type, string $msg): void {
$_SESSION['_flash'] = ['type' => $type, 'msg' => $msg];
}
function flash_get(): ?array {
if (empty($_SESSION['_flash'])) return null;
$f = $_SESSION['_flash'];
unset($_SESSION['_flash']);
return $f;
}