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

if (isLoggedIn()) {
    header('Location: ' . APP_URL . '/admin/dashboard.php');
} else {
    header('Location: ' . APP_URL . '/login.php');
}
exit;
?>
