un peu de ménage
This commit is contained in:
parent
0c362f4f43
commit
45502ac50c
1 changed files with 9 additions and 16 deletions
|
@ -21,7 +21,6 @@ include_spip('inc/filtres');
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
function formulaires_gamumail_charger_dist($slug, $destinataires = 0, $Tclient = [], $Tpdf = [], $redirect = '', $options = []){
|
function formulaires_gamumail_charger_dist($slug, $destinataires = 0, $Tclient = [], $Tpdf = [], $redirect = '', $options = []){
|
||||||
//var_dump($Tpdf) ;
|
|
||||||
$Tmails = [];
|
$Tmails = [];
|
||||||
if (!is_array($destinataires)) {
|
if (!is_array($destinataires)) {
|
||||||
$destinataires = explode(',', $destinataires);
|
$destinataires = explode(',', $destinataires);
|
||||||
|
@ -77,7 +76,6 @@ function formulaires_gamumail_charger_dist($slug, $destinataires = 0, $Tclient =
|
||||||
'Tid_fichiers' => [],
|
'Tid_fichiers' => [],
|
||||||
'options' => $options
|
'options' => $options
|
||||||
);
|
);
|
||||||
//var_dump($valeurs);
|
|
||||||
|
|
||||||
// surcharges charger
|
// surcharges charger
|
||||||
if ($f = charger_fonction('charger', 'gamumail', true)) {
|
if ($f = charger_fonction('charger', 'gamumail', true)) {
|
||||||
|
@ -260,11 +258,8 @@ function formulaires_gamumail_traiter_dist($slug, $destinataires = 0, $Tclient =
|
||||||
$Tpdf = [$Tpdf];
|
$Tpdf = [$Tpdf];
|
||||||
}
|
}
|
||||||
|
|
||||||
//var_dump($Tpdf);
|
|
||||||
//var_dump($Tpdfs_ok);
|
|
||||||
$recup_pdf = charger_fonction('charger_pdf','inc');
|
$recup_pdf = charger_fonction('charger_pdf','inc');
|
||||||
foreach ($Tpdfs_ok as $pdf) {
|
foreach ($Tpdfs_ok as $pdf) {
|
||||||
//var_dump($pdf);
|
|
||||||
foreach ($Tpdf as $cle => $p) {
|
foreach ($Tpdf as $cle => $p) {
|
||||||
if ($p['fichier'].'_'.$cle === $pdf) {
|
if ($p['fichier'].'_'.$cle === $pdf) {
|
||||||
$fichier = $p['fichier'];
|
$fichier = $p['fichier'];
|
||||||
|
@ -273,7 +268,6 @@ function formulaires_gamumail_traiter_dist($slug, $destinataires = 0, $Tclient =
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$pdf = $recup_pdf($fichier, $c);
|
$pdf = $recup_pdf($fichier, $c);
|
||||||
//var_dump($pdf);
|
|
||||||
$nom_fichier = $nom.'.pdf';
|
$nom_fichier = $nom.'.pdf';
|
||||||
$destination = _DIR_TMP.basename($nom_fichier);
|
$destination = _DIR_TMP.basename($nom_fichier);
|
||||||
$Tpdf_del[] = $destination;
|
$Tpdf_del[] = $destination;
|
||||||
|
@ -286,7 +280,6 @@ function formulaires_gamumail_traiter_dist($slug, $destinataires = 0, $Tclient =
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//var_dump($pieces_jointes);die;
|
|
||||||
$html_header = '';
|
$html_header = '';
|
||||||
if (find_in_path('gamumail/'.$slug .'_html_header.html')) {
|
if (find_in_path('gamumail/'.$slug .'_html_header.html')) {
|
||||||
$html_header = recuperer_fond('gamumail/'.$slug . '_html_header', $options);
|
$html_header = recuperer_fond('gamumail/'.$slug . '_html_header', $options);
|
||||||
|
|
Loading…
Add table
Reference in a new issue