blob: f971d4a341589603ee4e24b98e6fdaa25a6beb13 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
<?php
include_once $_SERVER["DOCUMENT_ROOT"] . '/../src/accounts.php';
include_once $_SERVER["DOCUMENT_ROOT"] . '/../src/alert.php';
if (!isset($_GET["local"])) {
header("Location: /");
exit;
}
session_start();
setcookie("secret_key", "", time() - 1000, "/");
session_unset();
session_destroy();
generate_alert("/", "Signed out!", 200);
|