a
This commit is contained in:
parent
83addffe09
commit
1ec693c1c5
|
|
@ -1,14 +1,16 @@
|
|||
<?php
|
||||
require_once 'Functions.php';
|
||||
require_once 'Societeusercentral.php';
|
||||
|
||||
class Cronnettoyerfihierstemp
|
||||
{
|
||||
private $societeusercentral;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->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" );
|
||||
|
||||
|
||||
?>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user