<?php
if (session_status() === PHP_SESSION_NONE) session_start();
session_destroy();
$_base = '/' . trim(str_replace(str_replace('\\','/',$_SERVER['DOCUMENT_ROOT']??''), '', str_replace('\\','/',__DIR__)), '/') . '/';
header('Location: '.$_base.'index.php?logout=1');
exit;
