<?php include '../Class/Controleur.php'; session_start(); if (isset($_SESSION['email']) && isset($_POST['id'])) { $controleur = new Controleur(); $controleur->deleteNews($_POST['id']); header('Location:news.php'); } else { header('Location:home.php'); }