diff --git a/Cron/Cronnettoyerfichierstemp.php b/Cron/Cronnettoyerfichierstemp.php index fa4eb32a..2cfe2790 100755 --- a/Cron/Cronnettoyerfichierstemp.php +++ b/Cron/Cronnettoyerfichierstemp.php @@ -1,14 +1,16 @@ societeusercentral = new Societeusercentral(); } - // function suppression($dossier_traite , $extension_choisie, $age_requis) function suppression($dossier_traite , $age_requis) { $repertoire = opendir($dossier_traite); @@ -57,10 +59,39 @@ class Cronnettoyerfihierstemp } $nettoyerfihierstemp = new Cronnettoyerfihierstemp(); +$societeusercentral = $this->societeusercentral->getSocieteuserSaas(); +/* KANE => maj 14/02/2026 +$nettoyerfihierstemp->suppression( "../Temp" , "3600" ); +$nettoyerfihierstemp->suppression( "../Temp/import" , "432000" ); +*/ + +$tempProduction = $societeusercentral['tempProduction']; +$tempPrestation = $societeusercentral['tempPrestation']; +$tempGarant = $societeusercentral['tempGarant']; +$tempAssure = $societeusercentral['tempAssure']; +$tempRh = $societeusercentral['tempRh']; + +/* +tempProduction, +tempPrestation, +tempGarant, +tempAssure, +tempRh +*/ + +// Production +var_dump( + array( + "tempProduction" => $tempProduction, + "tempPrestation" =>$tempPrestation, + "tempGarant" => $tempGarant, + "tempAssure" => $tempAssure, + "tempRh" => $tempRh + ) +); +exit(); $nettoyerfihierstemp->suppression( "../Temp" , "3600" ); - $nettoyerfihierstemp->suppression( "../Temp/import" , "432000" ); - ?>