From cb4e039cfca26dfaad87bff03961daa77c8b17d7 Mon Sep 17 00:00:00 2001 From: KANE LAZENI Date: Tue, 17 Feb 2026 18:43:07 +0000 Subject: [PATCH] a --- .../ebene/Tarifs/Controleur/Editioncarteassure.php | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/Societes/ebene/Tarifs/Controleur/Editioncarteassure.php b/Societes/ebene/Tarifs/Controleur/Editioncarteassure.php index 17af1a50..13f6dd8d 100755 --- a/Societes/ebene/Tarifs/Controleur/Editioncarteassure.php +++ b/Societes/ebene/Tarifs/Controleur/Editioncarteassure.php @@ -147,18 +147,15 @@ $pdf->Cell(0, 3, substr(mb_convert_encoding($assure['adherent'], "ISO-8859-1", " // $photoPath = $_SESSION['dossierPhoto_C'].$_SESSION['dossierSociete'].'/Photos/'.$assure['lienPhoto']; // $photo=$assure['lienPhoto']; $faceRegistered=$assure['faceRegistered']; -// $photoPath = $_SESSION['lienPhotoFace'].$assure['lienPhoto']; -$photoPath = $_SESSION['dossierPhoto_C'].$_SESSION['dossierSociete'].'/Photos/'.$assure['lienPhoto']; +$photoPath = ""; $photoX = 57; $photoY = 17; // Vérifier si l'URL est accessible $headers = @get_headers($photoPath); -//if($faceRegistered=="1" && file_exists($photoPath)) -// if (!empty($assure['lienPhoto']) && $headers && strpos($headers[0], '200')) { -// if (!empty($assure['lienPhoto']) && $headers && $faceRegistered=="1" && strpos($headers[0], '200')) { -if (!empty($assure['lienPhoto']) && $headers && $faceRegistered=="1") { +if ($assure['lienPhoto']>" " && $headers && $faceRegistered=="1") { + $photoPath = $_SESSION['dossierPhoto_C'].$_SESSION['dossierSociete'].'/Photos/'.$assure['lienPhoto']; $data = decryptImage($photoPath); $data = base64_decode($data); $temp = $_SESSION['lienPhotoFace'].'tmp_'.uniqid().'.jpg'; @@ -178,12 +175,8 @@ if (!empty($assure['lienPhoto']) && $headers && $faceRegistered=="1") { var_dump( array( "faceRegistered" => $faceRegistered, - // "photo" => $photo, "photoPath" => $photoPath, - "headers" => $headers, - // "strpos" => strpos($headers[0], '200'), "temp" => $temp, - "lienPhotoFace" => $_SESSION['lienPhotoFace'], ) ); echo "

";