<?php
// Check if we're being included from the main index.php
$config_path = file_exists('../config/config.php') ? '../config/config.php' : 'config/config.php';
require_once $config_path;

$auth = new Auth();
$auth->logout();

redirect('/admin/login.php');
?>