From b17fe07ce3bd576f755c1f5ec40a79f60482c2d0 Mon Sep 17 00:00:00 2001 From: KANE LAZENI Date: Sat, 4 Jul 2026 07:05:41 +0000 Subject: [PATCH] a --- Controleur/ControleurFichebeneficiaire.php | 12 +++++++++++- Vue/gabarit.php | 2 ++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/Controleur/ControleurFichebeneficiaire.php b/Controleur/ControleurFichebeneficiaire.php index 5fc3f70..950d48a 100755 --- a/Controleur/ControleurFichebeneficiaire.php +++ b/Controleur/ControleurFichebeneficiaire.php @@ -278,8 +278,18 @@ class ControleurFichebeneficiaire extends Controleur { file_put_contents($chemin, $data); $rand = rand(1,1000000); + $rand2 = rand(1,1000000); $nomImage = $username."_".$rand.'.'. $extension; - $nomImageCrypte_0 = $username."_".$rand.'.bin'; + // $nomImageCrypte_0 = $username."_".$rand.'.bin'; + if($_SESSION['crypterPhoto']=="1") + { + $nomImageCrypte_0 = $username."_".$rand.'.bin'; + } + else + { + $nomImageCrypte_0 = $username."_".$rand2.'.jpg'; + } + $nomImageCrypte = $_SESSION['p_lienPhotoFace'] . $nomImageCrypte_0; if ($compare_face=="1") diff --git a/Vue/gabarit.php b/Vue/gabarit.php index 15c5514..0c5bc32 100755 --- a/Vue/gabarit.php +++ b/Vue/gabarit.php @@ -651,11 +651,13 @@ $_SESSION['crypterPhoto'], ) ); + */ ?>