This commit is contained in:
KONE SOREL 2026-03-30 08:41:05 +00:00
commit bfb29ca35f
381 changed files with 36 additions and 572 deletions

13
.gitignore vendored Normal file
View File

@ -0,0 +1,13 @@
Config/
Config
Config/dev.ini
vendor/
vendor
logs/
logs
Cron/prod.ini
Temp/
Temp
*.ssh
.ssh/

0
Cron/Acte.php Normal file → Executable file
View File

0
Cron/Beneficiaire.php Normal file → Executable file
View File

0
Cron/Configuration.php Normal file → Executable file
View File

0
Cron/Controleurrequete.php Normal file → Executable file
View File

3
Cron/Cronenvoimail.php Normal file → Executable file
View File

@ -479,7 +479,8 @@ class Cronenvoimail
$this->mailententeprealablemont($idBeneficiaire, $codePrestataire, $heureCourante);
}
sleep(3);
// sleep(3);
usleep(200000); // attendre 0.2s entre chaque mail
}
}

16
Cron/Cronenvoimailadhrent.php Normal file → Executable file
View File

@ -67,6 +67,15 @@ class Cronenvoimailadhrent
$this->email->AddAddress(trim($ad) );
}
if($this->emailCc>" ")
{
$ccs = explode(';', $this->emailCc);
foreach ($ccs as $cc)
{
$this->email->addCC(trim($cc) );
}
}
$this->email->Subject = $this->objet;
$this->email->Body = $this->body;
@ -92,8 +101,8 @@ class Cronenvoimailadhrent
$this->marquermail($this->idMail, "1");
}
sleep(1);
usleep(200000); // attendre 0.2s entre chaque mail
}
public function envoyer_les_mails()
@ -106,6 +115,7 @@ class Cronenvoimailadhrent
{
$this->idMail = $un_mail['idMail'];
$this->emailDestination = $un_mail['email'];
$this->emailCc = $un_mail['emailCc'];
$this->objet = $un_mail['objet'];
$this->body = $un_mail['message'];
@ -116,7 +126,7 @@ class Cronenvoimailadhrent
$this->envoyer_un_des_mail();
sleep(1);
usleep(200000); // attendre 0.2s entre chaque mail
}
}
} // FIN CLASSE

4
Cron/Cronenvoisms.php Normal file → Executable file
View File

@ -63,7 +63,7 @@ class Cronenvoisms
$this->envoyer_un_des_sms();
sleep(1);
usleep(200000); // attendre 0.2s entre chaque mail
}
}
@ -102,7 +102,7 @@ class Cronenvoisms
$this->envoyersmsskysms($tel, $message, $titreSms);
}
sleep(1);
usleep(200000); // attendre 0.2s entre chaque mail
}
}

View File

@ -1,281 +0,0 @@
<?php
require_once 'Functions.php';
class Cronenvoisms
{
public function __construct() {
}
public function charger_les_sms($nbSms)
{
require_once 'Envoismscron.php';
$this->smscron = new Envoismscron();
$this->lesSms = $this->smscron->get_les_smsaenvoyer($nbSms);
}
public function chargersociete()
{
require_once 'Societeuser.php';
$this->societe = new Societeuser();
$societe = $this->societe->getparametressociete();
$this->fournisseurSms = $societe['fournisseurSms'];
$this->devise = $societe['devise'];
$this->nbSmsParCron = $societe['nbSmsParCron'];
$this->nomProduitSante = $societe['nomProduitSante'];
$this->titreSms = $societe['titreSms'];
$this->loginSms = $societe['loginSms'];
$this->motPassSms = $societe['motPassSms'];
}
public function marquersms($idSms, $etat)
{
require_once 'Envoismscron.php';
$this->smscron = new Envoismscron();
$smsaenvoyer = $this->smscron->marquersms($idSms, $etat);
}
public function envoyer_les_sms()
{
$lesSms = $this->lesSms;
foreach ($lesSms as $un_sms)
{
$this->idSms = $un_sms['idSms'];
$this->destinataires = $un_sms['destinataires'];
$this->message = $un_sms['message'];
/*
echo $this->idSms;
echo "<br>";
echo $this->destinataires;
echo "<br>";
echo $this->message;
echo "<br>";
*/
$this->envoyer_un_des_sms();
sleep(1);
}
}
public function envoyer_un_des_sms()
{
/*
echo "envoyer_un_des_sms";
exit();
*/
$destinataires = $this->destinataires;
$message = $this->message;
$fournisseurSms = $this->fournisseurSms;
$nomProduitSante = $this->nomProduitSante;
$titreSms = $this->titreSms;
$fournisseurSms = $this->fournisseurSms;
$dest = explode(',', $destinataires);
foreach ($dest as $tel)
{
if($fournisseurSms=="esicia")
{
$this->envoyersmsesicia($tel, $message, $titreSms);
}
elseif($fournisseurSms=="blive")
{
$this->envoyersmsbliive($tel, $message, $titreSms);
}
elseif($fournisseurSms=="hooza")
{
$this->envoyersmshooza($tel, $message, $titreSms);
}
elseif($fournisseurSms=="skysms")
{
$this->envoyersmsskysms($tel, $message, $titreSms);
}
sleep(1);
}
}
public function envoyersmsbliive($destinataires_c, $message_c, $titreSms_c)
{
$loginSms = $this->loginSms;
$motPassSms = $this->motPassSms;
// problème avec le https
// $url = "http://app.blive.bi/bridge-ws/ws/send";
$url = "https://app.blive.bi/bridge-ws/ws/send";
$get = array
(
// 'id' =>'snd-4b3abf81d-21707',
'id' =>$loginSms,
'from' =>$titreSms_c,
'to' =>$destinataires_c,
'text' =>$message_c
);
// var_dump($get);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
// curl_setopt($ch, CURLOPT_USERPWD, "BICOR-VIE:60cd7371a27c410484a1b485d273bef9");
curl_setopt($ch, CURLOPT_USERPWD, $motPassSms);
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
curl_setopt($ch, CURLOPT_POST, TRUE);
curl_setopt($ch, CURLOPT_POSTFIELDS, $get);
$result = curl_exec($ch);
if (curl_errno($ch))
{
echo 'Error:' . curl_error($ch);
}
// $info = curl_getinfo($ch);
curl_close($ch);
$this->marquersms($this->idSms, "1");
// A SUPPRIMER => juste pou tester
var_dump($result);
}
public function envoyersmsesicia($destinataires_c, $message_c, $titreSms_c)
{
$loginSms = $this->loginSms;
$motPassSms = $this->motPassSms;
// problème avec le https
$url = "http://gateway.esicia.com/sendsms/?";
$postFields = array
(
'ohereza' =>$titreSms_c,
'kuri' =>$destinataires_c,
'ubutumwa' =>$message_c,
// 'client' =>'radiant',
// 'password' =>'umugozi',
'client' =>$loginSms,
'password' =>$motPassSms,
'msgid' =>'kanesin'
);
$post = http_build_query($postFields);
$url .= $post;
$result = file_get_contents($url);
$this->marquersms($this->idSms, "1");
// A SUPPRIMER
// var_dump($result);
}
public function envoyersmshooza($destinataires_c, $message_c, $titreSms_c)
{
$loginSms = $this->loginSms;
$motPassSms = $this->motPassSms;
// $message_c .= " => ".$loginSms;
$url = "http://rslr.connectbind.com/bulksms/bulksms";
$get = array
(
// 'username' =>'HoAj-radiant',
// 'password' =>'radiant',
'username' =>$loginSms,
'password' =>$motPassSms,
'type' =>'0',
'dlr' =>'1',
'destination' =>$destinataires_c,
'source' =>$titreSms_c,
'message' =>$message_c
);
$defaults = array(
CURLOPT_URL => $url. (strpos($url, '?') === FALSE ? '?' : ''). http_build_query($get),
// CURLOPT_URL => $url,
CURLOPT_HEADER => 0,
CURLOPT_RETURNTRANSFER => TRUE,
CURLOPT_TIMEOUT => 10
);
$ch = curl_init();
curl_setopt_array($ch, ($defaults));
if( ! $result = curl_exec($ch))
{
trigger_error(curl_error($ch));
}
curl_close($ch);
$this->marquersms($this->idSms, "1");
// A SUPPRIMER
// var_dump($result);
}
public function envoyersmsskysms($destinataires_c, $message_c, $titreSms_c)
{
$loginSms = $this->loginSms;
$motPassSms = $this->motPassSms;
// $message_c .= " => SKYSMS";
$url = "http://137.74.43.214:9000/api/public/sendsms/v2/output=text?";
$postFields = array
(
'user' => $loginSms,
'password' => $motPassSms,
'sender' => $titreSms_c,
'phone' => $destinataires_c,
'message' => $message_c
);
$post = http_build_query($postFields);
$url .= $post;
$result = file_get_contents($url);
$this->marquersms($this->idSms, "1");
// A SUPPRIMER
// var_dump($result);
}
} // FIN CLASSE
// envoi des SMS
$envoismsdivers = new Cronenvoisms();
$envoismsdivers->chargersociete();
$nbSms = $envoismsdivers->nbSmsParCron;
$envoismsdivers->charger_les_sms($nbSms);
// echo "charger_les_sms";
// exit();
$envoismsdivers->envoyer_les_sms();

View File

@ -1,285 +0,0 @@
<?php
require_once 'Functions.php';
class Cronenvoisms
{
public function __construct() {
}
public function charger_les_sms($nbSms)
{
require_once 'Envoismscron.php';
$this->smscron = new Envoismscron();
$this->lesSms = $this->smscron->get_les_smsaenvoyer($nbSms);
}
public function chargersociete()
{
require_once 'Societeuser.php';
$this->societe = new Societeuser();
$societe = $this->societe->getparametressociete();
$this->fournisseurSms = $societe['fournisseurSms'];
$this->devise = $societe['devise'];
$this->nbSmsParCron = $societe['nbSmsParCron'];
$this->nomProduitSante = $societe['nomProduitSante'];
$this->titreSms = $societe['titreSms'];
$this->loginSms = $societe['loginSms'];
$this->motPassSms = $societe['motPassSms'];
}
public function marquersms($idSms, $etat)
{
require_once 'Envoismscron.php';
$this->smscron = new Envoismscron();
$smsaenvoyer = $this->smscron->marquersms($idSms, $etat);
}
public function envoyer_les_sms()
{
$lesSms = $this->lesSms;
foreach ($lesSms as $un_sms)
{
$this->idSms = $un_sms['idSms'];
$this->destinataires = $un_sms['destinataires'];
$this->message = $un_sms['message'];
/*
echo $this->idSms;
echo "<br>";
echo $this->destinataires;
echo "<br>";
echo $this->message;
echo "<br>";
*/
$this->envoyer_un_des_sms();
sleep(1);
}
}
public function envoyer_un_des_sms()
{
/*
echo "envoyer_un_des_sms";
exit();
*/
$destinataires = $this->destinataires;
$message = $this->message;
$fournisseurSms = $this->fournisseurSms;
$nomProduitSante = $this->nomProduitSante;
$titreSms = $this->titreSms;
$fournisseurSms = $this->fournisseurSms;
$dest = explode(',', $destinataires);
foreach ($dest as $tel)
{
if($fournisseurSms=="esicia")
{
$this->envoyersmsesicia($tel, $message, $titreSms);
}
elseif($fournisseurSms=="blive")
{
$this->envoyersmsbliive($tel, $message, $titreSms);
}
elseif($fournisseurSms=="hooza")
{
$this->envoyersmshooza($tel, $message, $titreSms);
}
elseif($fournisseurSms=="skysms")
{
$this->envoyersmsskysms($tel, $message, $titreSms);
}
elseif($fournisseurSms=="intouchsms")
{
$this->envoyersmsintouchsms($tel, $message, $titreSms);
}
sleep(1);
}
}
public function envoyersmsbliive($destinataires_c, $message_c, $titreSms_c)
{
$loginSms = $this->loginSms;
$motPassSms = $this->motPassSms;
// problème avec le https
// $url = "http://app.blive.bi/bridge-ws/ws/send";
$url = "https://app.blive.bi/bridge-ws/ws/send";
$get = array
(
// 'id' =>'snd-4b3abf81d-21707',
'id' =>$loginSms,
'from' =>$titreSms_c,
'to' =>$destinataires_c,
'text' =>$message_c
);
// var_dump($get);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
// curl_setopt($ch, CURLOPT_USERPWD, "BICOR-VIE:60cd7371a27c410484a1b485d273bef9");
curl_setopt($ch, CURLOPT_USERPWD, $motPassSms);
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
curl_setopt($ch, CURLOPT_POST, TRUE);
curl_setopt($ch, CURLOPT_POSTFIELDS, $get);
$result = curl_exec($ch);
if (curl_errno($ch))
{
echo 'Error:' . curl_error($ch);
}
// $info = curl_getinfo($ch);
curl_close($ch);
$this->marquersms($this->idSms, "1");
// A SUPPRIMER => juste pou tester
var_dump($result);
}
public function envoyersmsesicia($destinataires_c, $message_c, $titreSms_c)
{
$loginSms = $this->loginSms;
$motPassSms = $this->motPassSms;
// problème avec le https
$url = "http://gateway.esicia.com/sendsms/?";
$postFields = array
(
'ohereza' =>$titreSms_c,
'kuri' =>$destinataires_c,
'ubutumwa' =>$message_c,
// 'client' =>'radiant',
// 'password' =>'umugozi',
'client' =>$loginSms,
'password' =>$motPassSms,
'msgid' =>'kanesin'
);
$post = http_build_query($postFields);
$url .= $post;
$result = file_get_contents($url);
$this->marquersms($this->idSms, "1");
// A SUPPRIMER
// var_dump($result);
}
public function envoyersmshooza($destinataires_c, $message_c, $titreSms_c)
{
$loginSms = $this->loginSms;
$motPassSms = $this->motPassSms;
// $message_c .= " => ".$loginSms;
$url = "http://rslr.connectbind.com/bulksms/bulksms";
$get = array
(
// 'username' =>'HoAj-radiant',
// 'password' =>'radiant',
'username' =>$loginSms,
'password' =>$motPassSms,
'type' =>'0',
'dlr' =>'1',
'destination' =>$destinataires_c,
'source' =>$titreSms_c,
'message' =>$message_c
);
$defaults = array(
CURLOPT_URL => $url. (strpos($url, '?') === FALSE ? '?' : ''). http_build_query($get),
// CURLOPT_URL => $url,
CURLOPT_HEADER => 0,
CURLOPT_RETURNTRANSFER => TRUE,
CURLOPT_TIMEOUT => 10
);
$ch = curl_init();
curl_setopt_array($ch, ($defaults));
if( ! $result = curl_exec($ch))
{
trigger_error(curl_error($ch));
}
curl_close($ch);
$this->marquersms($this->idSms, "1");
// A SUPPRIMER
// var_dump($result);
}
public function envoyersmsskysms($destinataires_c, $message_c, $titreSms_c)
{
$loginSms = $this->loginSms;
$motPassSms = $this->motPassSms;
// $message_c .= " => SKYSMS";
$url = "http://137.74.43.214:9000/api/public/sendsms/v2/output=text?";
$postFields = array
(
'user' => $loginSms,
'password' => $motPassSms,
'sender' => $titreSms_c,
'phone' => $destinataires_c,
'message' => $message_c
);
$post = http_build_query($postFields);
$url .= $post;
$result = file_get_contents($url);
$this->marquersms($this->idSms, "1");
// A SUPPRIMER
// var_dump($result);
}
} // FIN CLASSE
// envoi des SMS
$envoismsdivers = new Cronenvoisms();
$envoismsdivers->chargersociete();
$nbSms = $envoismsdivers->nbSmsParCron;
$envoismsdivers->charger_les_sms($nbSms);
// echo "charger_les_sms";
// exit();
$envoismsdivers->envoyer_les_sms();

0
Cron/Cronnettoyerfihierstemp.php Normal file → Executable file
View File

0
Cron/Cronnettoyerfihierstempimport.php Normal file → Executable file
View File

0
Cron/Derogation.php Normal file → Executable file
View File

6
Cron/Ebenegmail.php Normal file → Executable file
View File

@ -27,6 +27,12 @@ $mail->SMTPSecure = 'tls';
$mail->SMTPAuth = true;
// ajout du 18/03/2026
$mail->CharSet = 'UTF-8';
$mail->SMTPKeepAlive = true; // ← connexion réutilisée pour tout le batch
$mail->Timeout = 15;
// fin ajout 18/03/2026
// $mail->Username = "intersanteebene@gmail.com";
// $mail->Username = "intersante@radiant.rw";
$mail->Username = "bkwitonda@radiant.rw";

0
Cron/Envoimail.php Normal file → Executable file
View File

0
Cron/Envoimailadherentcron.php Normal file → Executable file
View File

0
Cron/Envoimailcron.php Normal file → Executable file
View File

0
Cron/Envoismscron.php Normal file → Executable file
View File

0
Cron/Facture.php Normal file → Executable file
View File

0
Cron/Feuillemaladie.php Normal file → Executable file
View File

0
Cron/Fpdf/font/courier.php Normal file → Executable file
View File

0
Cron/Fpdf/font/courierb.php Normal file → Executable file
View File

0
Cron/Fpdf/font/courierbi.php Normal file → Executable file
View File

0
Cron/Fpdf/font/courieri.php Normal file → Executable file
View File

0
Cron/Fpdf/font/helvetica.php Normal file → Executable file
View File

0
Cron/Fpdf/font/helveticab.php Normal file → Executable file
View File

0
Cron/Fpdf/font/helveticabi.php Normal file → Executable file
View File

0
Cron/Fpdf/font/helveticai.php Normal file → Executable file
View File

0
Cron/Fpdf/font/symbol.php Normal file → Executable file
View File

0
Cron/Fpdf/font/times.php Normal file → Executable file
View File

0
Cron/Fpdf/font/timesb.php Normal file → Executable file
View File

0
Cron/Fpdf/font/timesbi.php Normal file → Executable file
View File

0
Cron/Fpdf/font/timesi.php Normal file → Executable file
View File

0
Cron/Fpdf/font/zapfdingbats.php Normal file → Executable file
View File

0
Cron/Fpdf/fpdf.php Normal file → Executable file
View File

0
Cron/Functions.php Normal file → Executable file
View File

0
Cron/Functions_old.php Normal file → Executable file
View File

0
Cron/Medicament.php Normal file → Executable file
View File

0
Cron/Modele.php Normal file → Executable file
View File

0
Cron/Ordonnance.php Normal file → Executable file
View File

0
Cron/PHPExcel/PHPExcel.php Normal file → Executable file
View File

0
Cron/PHPExcel/PHPExcel/Autoloader.php Normal file → Executable file
View File

0
Cron/PHPExcel/PHPExcel/CachedObjectStorage/APC.php Normal file → Executable file
View File

View File

View File

0
Cron/PHPExcel/PHPExcel/CachedObjectStorage/ICache.php Normal file → Executable file
View File

View File

View File

0
Cron/PHPExcel/PHPExcel/CachedObjectStorage/Memory.php Normal file → Executable file
View File

View File

View File

0
Cron/PHPExcel/PHPExcel/CachedObjectStorage/PHPTemp.php Normal file → Executable file
View File

0
Cron/PHPExcel/PHPExcel/CachedObjectStorage/SQLite.php Normal file → Executable file
View File

0
Cron/PHPExcel/PHPExcel/CachedObjectStorage/SQLite3.php Normal file → Executable file
View File

View File

0
Cron/PHPExcel/PHPExcel/CachedObjectStorageFactory.php Normal file → Executable file
View File

View File

0
Cron/PHPExcel/PHPExcel/CalcEngine/Logger.php Normal file → Executable file
View File

0
Cron/PHPExcel/PHPExcel/Calculation.php Normal file → Executable file
View File

0
Cron/PHPExcel/PHPExcel/Calculation/Database.php Normal file → Executable file
View File

0
Cron/PHPExcel/PHPExcel/Calculation/DateTime.php Normal file → Executable file
View File

0
Cron/PHPExcel/PHPExcel/Calculation/Engineering.php Normal file → Executable file
View File

0
Cron/PHPExcel/PHPExcel/Calculation/Exception.php Normal file → Executable file
View File

View File

0
Cron/PHPExcel/PHPExcel/Calculation/Financial.php Normal file → Executable file
View File

0
Cron/PHPExcel/PHPExcel/Calculation/FormulaParser.php Normal file → Executable file
View File

0
Cron/PHPExcel/PHPExcel/Calculation/FormulaToken.php Normal file → Executable file
View File

0
Cron/PHPExcel/PHPExcel/Calculation/Function.php Normal file → Executable file
View File

0
Cron/PHPExcel/PHPExcel/Calculation/Functions.php Normal file → Executable file
View File

0
Cron/PHPExcel/PHPExcel/Calculation/Logical.php Normal file → Executable file
View File

0
Cron/PHPExcel/PHPExcel/Calculation/LookupRef.php Normal file → Executable file
View File

0
Cron/PHPExcel/PHPExcel/Calculation/MathTrig.php Normal file → Executable file
View File

0
Cron/PHPExcel/PHPExcel/Calculation/Statistical.php Normal file → Executable file
View File

0
Cron/PHPExcel/PHPExcel/Calculation/TextData.php Normal file → Executable file
View File

0
Cron/PHPExcel/PHPExcel/Calculation/Token/Stack.php Normal file → Executable file
View File

0
Cron/PHPExcel/PHPExcel/Calculation/functionlist.txt Normal file → Executable file
View File

0
Cron/PHPExcel/PHPExcel/Cell.php Normal file → Executable file
View File

0
Cron/PHPExcel/PHPExcel/Cell/AdvancedValueBinder.php Normal file → Executable file
View File

0
Cron/PHPExcel/PHPExcel/Cell/DataType.php Normal file → Executable file
View File

0
Cron/PHPExcel/PHPExcel/Cell/DataValidation.php Normal file → Executable file
View File

0
Cron/PHPExcel/PHPExcel/Cell/DefaultValueBinder.php Normal file → Executable file
View File

0
Cron/PHPExcel/PHPExcel/Cell/Hyperlink.php Normal file → Executable file
View File

0
Cron/PHPExcel/PHPExcel/Cell/IValueBinder.php Normal file → Executable file
View File

0
Cron/PHPExcel/PHPExcel/Chart.php Normal file → Executable file
View File

0
Cron/PHPExcel/PHPExcel/Chart/DataSeries.php Normal file → Executable file
View File

0
Cron/PHPExcel/PHPExcel/Chart/DataSeriesValues.php Normal file → Executable file
View File

0
Cron/PHPExcel/PHPExcel/Chart/Exception.php Normal file → Executable file
View File

0
Cron/PHPExcel/PHPExcel/Chart/Layout.php Normal file → Executable file
View File

0
Cron/PHPExcel/PHPExcel/Chart/Legend.php Normal file → Executable file
View File

0
Cron/PHPExcel/PHPExcel/Chart/PlotArea.php Normal file → Executable file
View File

View File

0
Cron/PHPExcel/PHPExcel/Chart/Renderer/jpgraph.php Normal file → Executable file
View File

0
Cron/PHPExcel/PHPExcel/Chart/Title.php Normal file → Executable file
View File

0
Cron/PHPExcel/PHPExcel/Comment.php Normal file → Executable file
View File

0
Cron/PHPExcel/PHPExcel/DocumentProperties.php Normal file → Executable file
View File

0
Cron/PHPExcel/PHPExcel/DocumentSecurity.php Normal file → Executable file
View File

0
Cron/PHPExcel/PHPExcel/Exception.php Normal file → Executable file
View File

0
Cron/PHPExcel/PHPExcel/HashTable.php Normal file → Executable file
View File

0
Cron/PHPExcel/PHPExcel/IComparable.php Normal file → Executable file
View File

0
Cron/PHPExcel/PHPExcel/IOFactory.php Normal file → Executable file
View File

Some files were not shown because too many files have changed in this diff Show More