Ajout erreur404 & 403, modif regex mdp, lien user de preview fixed

This commit is contained in:
laura.chevillet 2026-02-17 15:56:56 +01:00
parent 46bc4952dc
commit a0738bb737
11 changed files with 52 additions and 10 deletions

View file

@ -25,7 +25,6 @@
header("Location:index.php?ctrl=error&action=error_403");
exit;
}
var_dump($_SESSION);
//gestion de l'user
$objCategoryModel = new CategoryModel;
@ -44,6 +43,7 @@
$editCat->setId($_POST['id_to_edit']);
$editCat->setName($_POST['new_name']);
$objCategoryModel->editCategory($editCat);
$_SESSION['success'] = "La catégorie a bien été modifiée";
header('Location: index.php?ctrl=admin&action=admin');
exit;
}