tieneAcceso()){ header("Location: ../index.php?error=0"); } header("Location: main.php"); $pdo = null; ?>