| Line 1... |
Line 1... |
| 1 |
<?php
|
1 |
<?php
|
| 2 |
// $Id: ezmlm-msgdisplay.php,v 1.2 2005-09-27 16:43:08 alexandre_tb Exp $
|
2 |
// $Id: ezmlm-msgdisplay.php,v 1.3 2006-04-19 13:50:04 alexandre_tb Exp $
|
| 3 |
//
|
3 |
//
|
| 4 |
// ezmlm-msgdisplay.php - ezmlm-php v2.0
|
4 |
// ezmlm-msgdisplay.php - ezmlm-php v2.0
|
| 5 |
// --------------------------------------------------------------
|
5 |
// --------------------------------------------------------------
|
| 6 |
// Will parse a template (if specified) and display a message.
|
6 |
// Will parse a template (if specified) and display a message.
|
| 7 |
// Includes a default template.
|
7 |
// Includes a default template.
|
| Line 159... |
Line 159... |
| 159 |
$mailDecode->parts[$i]->d_parameters['filename'] : $mailDecode->parts[$i]->ctype_parameters['name'] ;
|
159 |
$mailDecode->parts[$i]->d_parameters['filename'] : $mailDecode->parts[$i]->ctype_parameters['name'] ;
|
| 160 |
$mimeType = new type_fichier_mime($GLOBALS['projet_db'], $mailDecode->parts[$i]->ctype_primary.'/'.
|
160 |
$mimeType = new type_fichier_mime($GLOBALS['projet_db'], $mailDecode->parts[$i]->ctype_primary.'/'.
|
| 161 |
$mailDecode->parts[$i]->ctype_secondary, PROJET_CHEMIN_ICONES) ;
|
161 |
$mailDecode->parts[$i]->ctype_secondary, PROJET_CHEMIN_ICONES) ;
|
| 162 |
}
|
162 |
}
|
| Line 163... |
Line 163... |
| 163 |
|
163 |
|
| 164 |
$corps .= '<a href="'.PROJET_CHEMIN_APPLI.'synchroliste/fichier_attache.php?nom_liste='.$this->listname.
|
164 |
$corps .= '<a href="'.PROJET_CHEMIN_APPLI.'fichier_attache.php?nom_liste='.$this->listname.
|
| 165 |
'&actionargs[]='.$numero_mois.
|
165 |
'&actionargs[]='.$numero_mois.
|
| Line 166... |
Line 166... |
| 166 |
'&actionargs[]='.$numero_mail;
|
166 |
'&actionargs[]='.$numero_mail;
|
| 167 |
|
167 |
|
| Line 187... |
Line 187... |
| 187 |
} else if ($mailDecode->ctype_primary == 'application' || $mailDecode->ctype_primary == 'image'){
|
187 |
} else if ($mailDecode->ctype_primary == 'application' || $mailDecode->ctype_primary == 'image'){
|
| 188 |
if ($mailDecode->ctype_secondary == 'applefile') return ;
|
188 |
if ($mailDecode->ctype_secondary == 'applefile') return ;
|
| 189 |
$mimeType = new type_fichier_mime($GLOBALS['projet_db'], $mailDecode->ctype_primary.'/'.$mailDecode->ctype_secondary,PROJET_CHEMIN_ICONES) ;
|
189 |
$mimeType = new type_fichier_mime($GLOBALS['projet_db'], $mailDecode->ctype_primary.'/'.$mailDecode->ctype_secondary,PROJET_CHEMIN_ICONES) ;
|
| Line 190... |
Line 190... |
| 190 |
|
190 |
|
| 191 |
if ($mimeType->getIdType() != 12) {
|
191 |
if ($mimeType->getIdType() != 12) {
|
| 192 |
$corps .= '<a href="'.PROJET_CHEMIN_APPLI.'synchroliste/fichier_attache.php?nom_liste='.$this->listname.'&actionargs[]='.
|
192 |
$corps .= '<a href="'.PROJET_CHEMIN_APPLI.'fichier_attache.php?nom_liste='.$this->listname.'&actionargs[]='.
|
| 193 |
$numero_mois.'&actionargs[]='.
|
193 |
$numero_mois.'&actionargs[]='.
|
| 194 |
$numero_mail.'&actionargs[]='.$i.'">'.
|
194 |
$numero_mail.'&actionargs[]='.$i.'">'.
|
| 195 |
'<img src="'.$mimeType->getCheminIcone().'" alt="'.$mailDecode->ctype_parameters['name'].'" /> ' ;
|
195 |
'<img src="'.$mimeType->getCheminIcone().'" alt="'.$mailDecode->ctype_parameters['name'].'" /> ' ;
|