Line 23... |
Line 23... |
23 |
$contenu = 'Un problème est survenu : '.print_r($this->messages, true);
|
23 |
$contenu = 'Un problème est survenu : '.print_r($this->messages, true);
|
24 |
} else {
|
24 |
} else {
|
25 |
$donnees = $this->obtenirDescriptionFormats();
|
25 |
$donnees = $this->obtenirDescriptionFormats();
|
26 |
$squelette = dirname(__FILE__).'/squelettes'.'/telechargement.tpl.html';
|
26 |
$squelette = dirname(__FILE__).'/squelettes'.'/telechargement.tpl.html';
|
27 |
$donnees['informations_image'] = $this->obtenirInformationsImages();
|
27 |
$donnees['informations_image'] = $this->obtenirInformationsImages();
|
- |
|
28 |
$donnees['nom_original_fmt'] = $this->formaterNomOriginal($donnees['informations_image']);
|
28 |
$donnees['resolution_originale'] = $this->formaterResolutionOriginale($donnees['informations_image']);
|
29 |
$donnees['resolution_originale'] = $this->formaterResolutionOriginale($donnees['informations_image']);
|
29 |
$donnees['auteur_fmt'] = $this->formaterAuteur($donnees['informations_image']);
|
30 |
$donnees['auteur_fmt'] = $this->formaterAuteur($donnees['informations_image']);
|
30 |
$donnees['attribution'] = $this->formaterAttribution($donnees['informations_image']);
|
31 |
$donnees['attribution'] = $this->formaterAttribution($donnees['informations_image']);
|
31 |
$donnees['url_base'] = sprintf($this->config['chemins']['baseURLAbsoluDyn'], '');
|
32 |
$donnees['url_base'] = sprintf($this->config['chemins']['baseURLAbsoluDyn'], '');
|
32 |
$donnees['date_televersement'] = $this->formaterDateTeleversement($donnees['informations_image']);
|
33 |
$donnees['date_televersement'] = $this->formaterDateTeleversement($donnees['informations_image']);
|
Line 37... |
Line 38... |
37 |
}
|
38 |
}
|
Line 38... |
Line 39... |
38 |
|
39 |
|
39 |
$this->envoyer($contenu);
|
40 |
$this->envoyer($contenu);
|
Line -... |
Line 41... |
- |
|
41 |
}
|
- |
|
42 |
|
- |
|
43 |
private function formaterNomOriginal($infos_images) {
|
- |
|
44 |
$nom_original = "Inconnu.jpg";
|
- |
|
45 |
if(isset($infos_images['nom_original'])) {
|
- |
|
46 |
$nom_original = $infos_images['nom_original'].' ';
|
- |
|
47 |
}
|
- |
|
48 |
return $nom_original;
|
40 |
}
|
49 |
}
|
41 |
|
50 |
|
42 |
private function formaterAttribution($infos_images) {
|
51 |
private function formaterAttribution($infos_images) {
|
Line 43... |
Line 52... |
43 |
$attr = $this->formaterAuteur($infos_images).' '.
|
52 |
$attr = $this->formaterAuteur($infos_images).' '.
|