session_start(); // Si el usuario ya está logueado, redirigir al dashboard if (isset($_SESSION['admin_id'])) { header('Location: dashboard.php'); exit; } ?>