11 lines
278 B
PHP
11 lines
278 B
PHP
<?php
|
|
require_once '../startup.php';
|
|
|
|
include_once '_user.php';
|
|
|
|
$logoutToken = !empty($_GET['key']) && is_string($_GET['key']) ? $_GET['key'] : '';
|
|
|
|
if(session_active() && $logoutToken === logout_token())
|
|
destroy_session($_COOKIE['fmfauth'] ?? '');
|
|
|
|
header('Location: /');
|