Ajout erreur404 & 403, modif regex mdp, lien user de preview fixed
This commit is contained in:
parent
46bc4952dc
commit
a0738bb737
11 changed files with 52 additions and 10 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue