Merge pull request #15 from Yasder5/guillaume

Fonctionnalité Modération sous Smarty + Débug
This commit is contained in:
Yass 2026-02-10 11:55:48 +01:00 committed by GitHub
commit 6eb58674be
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 1046 additions and 22 deletions

View file

@ -263,4 +263,46 @@
header("Location: index.php?ctrl=project&action=home");
exit;
}
public function accept(){
//Récupéré l'id dans l'url
$intId = $_GET['id'];
//Je créer un nouveau model pour exec la commande SQL
$objProjectModel = new ProjectModel;
$objProjectModel->accept($intId);
//Redirection vers la page
header("Location: index.php");
exit;
}
public function refuse(){
//Récupéré l'id dans l'url
$intId = $_GET['id'];
//Je créer un nouveau model pour exec la commande SQL
$objProjectModel = new ProjectModel;
$objProjectModel->refuse($intId);
//Redirection vers la page
header("Location: index.php");
exit;
}
public function delete(){
//Récupéré l'id dans l'url
$intId = $_GET['id'];
//Je créer un nouveau model pour exec la commande SQL
$objProjectModel = new ProjectModel;
$objProjectModel->delete($intId);
//Redirection vers la page
header("Location: index.php");
exit;
}
}