| 1 | <?php |
| 2 | declare(strict_types=1); |
| 3 | require __DIR__ . '/lib/bootstrap.php'; |
| 4 | logoutUser(); |
| 5 | if (isset($_GET['json'])) { |
| 6 | // Session is destroyed; a new empty one may start on next request. |
| 7 | header('Content-Type: application/json; charset=utf-8'); |
| 8 | echo json_encode(['ok' => true]); |
| 9 | exit; |
| 10 | } |
| 11 | header('Location: index.html'); |
projects-timfalken-com meteors