<?php
require_once __DIR__ . '/../config/config.php';

requireAuth();

// Log the logout
logActivity("Admin logout: {$_SESSION['admin_email']}");

// Destroy session
session_destroy();
session_start();
session_regenerate_id(true);

redirect('login.php');
