<?php
declare(strict_types=1);

require_once __DIR__ . '/../includes/config.php';
require_once __DIR__ . '/../includes/functions.php';
require_once __DIR__ . '/../includes/auth.php';

logout_admin();
set_flash('success', 'تم تسجيل الخروج بنجاح.');
redirect_to(admin_url('admins/login.php'));