Gestionnaire de fichiers - Editer - /home/webapp68.cm.in.th/u68319090016/app/lib/functions.php
Arrière
<?php function e(string $str): string { return htmlspecialchars($str, ENT_QUOTES, 'UTF-8'); } function current_user(): ?array { return $_SESSION['user'] ?? null; } function csrf_token(): string { if (empty($_SESSION['csrf'])) { $_SESSION['csrf'] = bin2hex(random_bytes(32)); } return $_SESSION['csrf']; } function verify_csrf($token): bool { return isset($_SESSION['csrf']) && hash_equals($_SESSION['csrf'], $token); }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Génération de la page: 0.32 |
proxy
|
phpinfo
|
Réglages