This commit is contained in:
KANE LAZENI 2026-07-04 01:33:55 +00:00
parent 4b3390aa65
commit 486913e57c
5 changed files with 1150 additions and 1664 deletions

View File

@ -741,6 +741,15 @@ require_once 'Modele/Societeusercentral.php';
$_SESSION['deconnexion'] = "0";
$_SESSION['derniere_action'] = time();
if($utilisateur['crypterPhoto']=="1" && file_exists('/var/www/keys/inter-sante-photo.key'))
{
$_SESSION['crypterPhoto']="1";
}
else
{
$_SESSION['crypterPhoto']="0";
}
// Ajout du 05/02/2025 => KANE pour payer l'abonnement en cas de compte désactivé
if ($login=="admsaas")
{

View File

@ -493,6 +493,15 @@ require_once 'Modele/Societeusercentral.php';
$this->requete->getSession()->setAttribut("okId", "-1");
$this->requete->getSession()->setAttribut("okId_face", "-1");
if($utilisateur['crypterPhoto']=="1" && file_exists('/var/www/keys/inter-sante-photo.key'))
{
$_SESSION['crypterPhoto']="1";
}
else
{
$_SESSION['crypterPhoto']="0";
}
$this->rediriger("Decompte");

View File

@ -97,6 +97,7 @@ class ControleurFichebeneficiaire extends Controleur
&& UPLOAD_ERR_OK === $_FILES['fichier_image_a_uploader']['error'])
{
$rand = rand(1,1000000);
$rand2 = rand(1,1000000);
$nomImageTemp = $_SESSION['numeroBeneficiaire_C']."_".$rand.'.'. $extension;
if(move_uploaded_file($_FILES['fichier_image_a_uploader']['tmp_name'], TARGET.$nomImageTemp))
@ -104,7 +105,20 @@ class ControleurFichebeneficiaire extends Controleur
$src = TARGET.$nomImageTemp;
$rand = rand(1,1000000);
$nomImage = $_SESSION['numeroBeneficiaire_C']."_".$rand.'.jpg';
if($_SESSION['crypterPhoto']=="1")
{
$nomImageCrypte = $_SESSION['numeroBeneficiaire_C']."_".$rand.'.bin';
}
else
{
$nomImageCrypte = $_SESSION['numeroBeneficiaire_C']."_".$rand2.'.jpg';
}
/*
$nomImageCrypte = $_SESSION['numeroBeneficiaire_C']."_".$rand.'.bin';
$nomImageCrypte = $_SESSION['numeroBeneficiaire_C']."_".$rand2.'.jpg';
*/
$imgtype = image_type_to_mime_type($infosImg[2]);

File diff suppressed because it is too large Load Diff

View File

@ -642,18 +642,19 @@
<?php endif; ?>
<?php
/*
var_dump(
array(
/*
"dossierSociete" => $_SESSION['dossierSociete'],
"lienPhotoFace" => $_SESSION['lienPhotoFace'],
"dossierPhoto_C" => $_SESSION['dossierPhoto_C'],
"dossierLogo" => $_SESSION['dossierLogo'],
"dossierGed" => $_SESSION['dossierGed'],
"cheminGed" => $_SESSION['cheminGed'],
*/
"crypterPhoto" => $_SESSION['crypterPhoto'],
)
);
*/
?>
</div>
<?= $contenu ?>