|
|
|
@ -2,7 +2,7 @@
|
|
|
|
|
|
|
|
|
|
namespace App\controleur;
|
|
|
|
|
use App\config\Validation;
|
|
|
|
|
use App\gateway\ImageSaver;
|
|
|
|
|
use App\gateway\ImageManager;
|
|
|
|
|
use App\modele\MembreModele;
|
|
|
|
|
|
|
|
|
|
class MembreControleur extends UtilisateurControleur
|
|
|
|
@ -69,8 +69,8 @@ class MembreControleur extends UtilisateurControleur
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
$saveImg1 = ImageSaver::SaveImage("image");
|
|
|
|
|
$saveImg2 = ImageSaver::SaveImage("logo");
|
|
|
|
|
$saveImg1 = ImageManager::SaveImage("image");
|
|
|
|
|
$saveImg2 = ImageManager::SaveImage("logo");
|
|
|
|
|
if($saveImg1[0] && $saveImg2[0]) {
|
|
|
|
|
$mbrModel = new MembreModele();
|
|
|
|
|
|
|
|
|
@ -92,7 +92,7 @@ class MembreControleur extends UtilisateurControleur
|
|
|
|
|
global $twig;
|
|
|
|
|
|
|
|
|
|
if (isset($_FILES["image"])) {
|
|
|
|
|
$img = ImageSaver::SaveImage('image');
|
|
|
|
|
$img = ImageManager::SaveImage('image');
|
|
|
|
|
|
|
|
|
|
if (!Validation::validerEvenement($_POST["titre"], $_POST["description"], $_POST["date"], $_POST["nbPlaceMax"], $img[1])) {
|
|
|
|
|
$mdl = new UtilisateurModele();
|
|
|
|
|