a
This commit is contained in:
parent
486913e57c
commit
c90ed683e4
|
|
@ -104,8 +104,20 @@ class ControleurPrestations extends Controleur {
|
|||
file_put_contents($chemin, $data);
|
||||
|
||||
$rand = rand(1,1000000);
|
||||
$rand2 = rand(1,1000000);
|
||||
$nomImage = $username."_".$rand.'.'. $extension;
|
||||
$nomImageCrypte_0 = $username."_".$rand.'.bin';
|
||||
|
||||
if($_SESSION['crypterPhoto']=="1")
|
||||
{
|
||||
$nomImageCrypte_0 = $username."_".$rand.'.bin';
|
||||
}
|
||||
else
|
||||
{
|
||||
$nomImageCrypte_0 = $username."_".$rand2.'.jpg';
|
||||
}
|
||||
|
||||
// $nomImageCrypte_0 = $username."_".$rand.'.bin';
|
||||
|
||||
$nomImageCrypte = $_SESSION['lienPhotoFace'] . $nomImageCrypte_0;
|
||||
|
||||
if ($compare_face=="1")
|
||||
|
|
@ -231,7 +243,6 @@ class ControleurPrestations extends Controleur {
|
|||
$this->beneficiaire->registerface($username);
|
||||
|
||||
$idBeneficiaire = $_SESSION['idBeneficiaire_C'];
|
||||
// $this->beneficiaire->changerPhoto($idBeneficiaire, $nomImage);
|
||||
$this->beneficiaire->changerPhoto($idBeneficiaire, $nomImageCrypte_0);
|
||||
|
||||
$_SESSION['messageFace'] = "Enrôlement effectué avec succès! / Enrollment completed successfully!!";
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user