a
This commit is contained in:
parent
e06707592f
commit
71bb90e10e
|
|
@ -4,7 +4,9 @@ require_once 'Cronenvoimail.php';
|
||||||
|
|
||||||
class Cronchaqueminuteproduction
|
class Cronchaqueminuteproduction
|
||||||
{
|
{
|
||||||
|
private $societeusercentral;
|
||||||
private $cronenvoimail;
|
private $cronenvoimail;
|
||||||
|
private $nbMail;
|
||||||
|
|
||||||
public function __construct() {
|
public function __construct() {
|
||||||
|
|
||||||
|
|
@ -27,7 +29,8 @@ class Cronchaqueminuteproduction
|
||||||
// Début Cronenvoimail
|
// Début Cronenvoimail
|
||||||
$this->cronenvoimail->chargersociete();
|
$this->cronenvoimail->chargersociete();
|
||||||
$nbMail = $this->cronenvoimail->nbMailParCron;
|
$nbMail = $this->cronenvoimail->nbMailParCron;
|
||||||
$this->cronenvoimail->$nbMail = $nbMail;
|
// $this->cronenvoimail->$nbMail = $nbMail;
|
||||||
|
$this->nbMail = $nbMail;
|
||||||
$this->cronenvoimail->charger_les_mails($nbMail);
|
$this->cronenvoimail->charger_les_mails($nbMail);
|
||||||
$this->cronenvoimail->envoyer_les_mails();
|
$this->cronenvoimail->envoyer_les_mails();
|
||||||
// Fin Cronenvoimail
|
// Fin Cronenvoimail
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,26 @@ require_once 'Functions.php';
|
||||||
|
|
||||||
class Cronenvoimail
|
class Cronenvoimail
|
||||||
{
|
{
|
||||||
|
private $societe;
|
||||||
|
|
||||||
|
private $emailMedecinConseil;
|
||||||
|
private $emailGestionBon;
|
||||||
|
private $emailCcomptabilite;
|
||||||
|
private $emailDerogation;
|
||||||
|
private $emailAccordPrealable;
|
||||||
|
private $emailFraudeFinger;
|
||||||
|
private $email_standard;
|
||||||
|
private $devise;
|
||||||
|
private $nomProduitSante;
|
||||||
|
|
||||||
|
public $nbMailParCron;
|
||||||
|
private $codeLangueSociete;
|
||||||
|
private $emailAdherent;
|
||||||
|
private $codePrestataire;
|
||||||
|
private $mailcron;
|
||||||
|
private $lesMails;
|
||||||
|
private $email;
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
@ -10,7 +30,6 @@ class Cronenvoimail
|
||||||
public function chargermail()
|
public function chargermail()
|
||||||
{
|
{
|
||||||
require_once 'Envoimailcron.php';
|
require_once 'Envoimailcron.php';
|
||||||
|
|
||||||
$this->mailcron = new Envoimailcron();
|
$this->mailcron = new Envoimailcron();
|
||||||
$mailaenvoyer = $this->mailcron->getmailaenvoyer();
|
$mailaenvoyer = $this->mailcron->getmailaenvoyer();
|
||||||
$this->idMail = $mailaenvoyer['idMail'];
|
$this->idMail = $mailaenvoyer['idMail'];
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,8 @@ require_once 'Functions.php';
|
||||||
|
|
||||||
class Crongenererfacturesaas
|
class Crongenererfacturesaas
|
||||||
{
|
{
|
||||||
|
private $facturesaascron;
|
||||||
|
|
||||||
public function __construct() {
|
public function __construct() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -19,20 +19,10 @@ class Cronnettoyerfihierstemp
|
||||||
|
|
||||||
|
|
||||||
$infos = pathinfo($chemin);
|
$infos = pathinfo($chemin);
|
||||||
// $extension = $infos['extension'];
|
|
||||||
|
|
||||||
$age_fichier = time() - filemtime($chemin);
|
$age_fichier = time() - filemtime($chemin);
|
||||||
|
|
||||||
// if($fichier!="." AND $fichier!=".." AND !is_dir($fichier)
|
if($fichier!="." AND $fichier!=".." AND !is_dir($chemin) AND $age_fichier > $age_requis)
|
||||||
// $extension == $extension_choisie AND $age_fichier > $age_requis)
|
|
||||||
|
|
||||||
/*
|
|
||||||
echo "Chemai, : ".$chemin." Age : ".$age_fichier;
|
|
||||||
|
|
||||||
echo "<br>";
|
|
||||||
*/
|
|
||||||
|
|
||||||
if($fichier!="." AND $fichier!=".." AND !is_dir($fichier) AND $age_fichier > $age_requis)
|
|
||||||
{
|
{
|
||||||
unlink($chemin);
|
unlink($chemin);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user