BlueGit

projects-timfalken-com allianties

Files

allianties / server / logout.php

logout.php

logout.php 256 B Download Raw
1<?php
2declare(strict_types=1);
3require __DIR__ . '/lib/bootstrap.php';
4logoutUser();
5if (isset($_GET['json'])) {
6 header('Content-Type: application/json; charset=utf-8');
7 echo json_encode(['ok' => true]);
8 exit;
9}
10header('Location: index.html');