This commit is contained in:
KANE LAZENI 2026-02-17 18:43:07 +00:00
parent 4bc40b7d53
commit cb4e039cfc

View File

@ -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 "<br> <br>";