| Line 19... |
Line 19... |
| 19 |
* @copyright Copyright (c) 2010, Tela Botanica (accueil@tela-botanica.org)
|
19 |
* @copyright Copyright (c) 2010, Tela Botanica (accueil@tela-botanica.org)
|
| 20 |
*/
|
20 |
*/
|
| 21 |
class Saisie extends WidgetCommun {
|
21 |
class Saisie extends WidgetCommun {
|
| Line 22... |
Line 22... |
| 22 |
|
22 |
|
| 23 |
const DS = DIRECTORY_SEPARATOR;
|
23 |
const DS = DIRECTORY_SEPARATOR;
|
| 24 |
const PROJET_DEFAUT = 'biodiversite34';
|
24 |
const PROJET_DEFAUT = 'defaut';
|
| - |
|
25 |
const WS_SAISIE = "CelWidgetSaisie";
|
| - |
|
26 |
const WS_NOM = "noms";
|
| - |
|
27 |
const NS_PROJET = "bdtfx";
|
| - |
|
28 |
const NS_PROJET_VERSION = "1.01";
|
| Line 25... |
Line 29... |
| 25 |
const WS_SAISIE = "CelWidgetSaisie";
|
29 |
const EFLORE_API_VERSION = "0.1";
|
| 26 |
|
30 |
|
| Line 27... |
Line 31... |
| 27 |
private $projet = null;
|
31 |
private $projet = null;
|
| Line 32... |
Line 36... |
| 32 |
*/
|
36 |
*/
|
| 33 |
public function executer() {
|
37 |
public function executer() {
|
| 34 |
$retour = null;
|
38 |
$retour = null;
|
| 35 |
extract($this->parametres);
|
39 |
extract($this->parametres);
|
| Line 36... |
Line -... |
| 36 |
|
- |
|
| 37 |
if (!isset($projet)) {
|
40 |
|
| 38 |
$this->projet = self::PROJET_DEFAUT;
|
- |
|
| 39 |
} else {
|
- |
|
| 40 |
$this->projet = $projet;
|
- |
|
| 41 |
}
|
41 |
$this->projet = isset($projet) ? $projet : self::PROJET_DEFAUT;
|
| Line 42... |
Line 42... |
| 42 |
$this->chargerConfigProjet();
|
42 |
$this->chargerConfigProjet();
|
| 43 |
|
43 |
|
| 44 |
$service = (isset($service)) ? $service : $this->projet;
|
44 |
$service = isset($service) ? $service : 'widget';
|
| 45 |
$methode = $this->traiterNomMethodeExecuter($service);
|
45 |
$methode = $this->traiterNomMethodeExecuter($service);
|
| 46 |
if (method_exists($this, $methode)) {
|
46 |
if (method_exists($this, $methode)) {
|
| 47 |
$retour = $this->$methode();
|
47 |
$retour = $this->$methode();
|
| Line 71... |
Line 71... |
| 71 |
if (file_exists($fichier_config)) {
|
71 |
if (file_exists($fichier_config)) {
|
| 72 |
if (!$this->configProjet = parse_ini_file($fichier_config)) {
|
72 |
if (!$this->configProjet = parse_ini_file($fichier_config)) {
|
| 73 |
$this->messages[] = "Le fichier ini '$fichier_config' du projet n'a pu être chargé.";
|
73 |
$this->messages[] = "Le fichier ini '$fichier_config' du projet n'a pu être chargé.";
|
| 74 |
}
|
74 |
}
|
| 75 |
} else {
|
75 |
} else {
|
| 76 |
$this->messages[] = "Le fichier ini '$fichier_config' du projet n'existe pas.";
|
76 |
$this->debug[] = "Le fichier ini '$fichier_config' du projet n'existe pas.";
|
| 77 |
}
|
- |
|
| 78 |
}
|
- |
|
| 79 |
|
- |
|
| 80 |
public function executerTaxons() {
|
- |
|
| 81 |
$widget['squelette'] = $this->projet.'_taxons';
|
- |
|
| 82 |
$widget['squelette_ext'] = '.tpl.js';
|
- |
|
| 83 |
$widget['donnees'] = array();
|
- |
|
| 84 |
$methode = 'recupererListeTaxon'.str_replace(' ', '', ucwords(str_replace('-', ' ', strtolower($this->projet))));
|
- |
|
| 85 |
$taxons = $this->$methode();
|
- |
|
| 86 |
$taxons_tries = array();
|
- |
|
| 87 |
foreach ($taxons as $taxon) {
|
- |
|
| 88 |
$taxons_tries[$taxon['num_nom_sel']] = $taxon;
|
- |
|
| 89 |
}
|
77 |
}
|
| 90 |
$widget['donnees']['taxons'] = json_encode($taxons_tries);
|
- |
|
| 91 |
return $widget;
|
- |
|
| 92 |
}
|
78 |
}
|
| Line 93... |
Line 79... |
| 93 |
|
79 |
|
| 94 |
public function executerUploadImage() {
|
- |
|
| 95 |
$retour = array();
|
- |
|
| 96 |
if ($_FILES['fichier']['error'] == 0) {
|
- |
|
| 97 |
if (is_uploaded_file($_FILES['fichier']['tmp_name'])) {
|
- |
|
| 98 |
if ($_FILES['fichier']['type'] == 'image/jpeg') {
|
- |
|
| 99 |
$dossierStockage = $this->config['chemins']['imagesTempDossier'];
|
- |
|
| 100 |
|
- |
|
| 101 |
$nomFichierOriginal = preg_replace('/[.](jpeg|jpg)$/i', '.jpg', strtolower($_FILES['fichier']['name']));
|
- |
|
| 102 |
$originalChemin = $dossierStockage.$nomFichierOriginal;
|
- |
|
| 103 |
$deplacementOk = move_uploaded_file($_FILES['fichier']['tmp_name'], $originalChemin);
|
- |
|
| 104 |
|
- |
|
| 105 |
if ($deplacementOk === true) {
|
- |
|
| 106 |
$miniatureFichier = str_replace('.jpg', '_min.jpg', $nomFichierOriginal);
|
- |
|
| 107 |
$miniatureChemin = $dossierStockage.$miniatureFichier;
|
- |
|
| 108 |
|
- |
|
| 109 |
// Parametres
|
- |
|
| 110 |
$largeurIdeale = 100;
|
- |
|
| 111 |
$hauteurIdeale = 100;
|
- |
|
| 112 |
$qualite = 85;
|
- |
|
| 113 |
|
- |
|
| 114 |
// Calcul de la hauteur et de la largeur optimale de la miniature
|
- |
|
| 115 |
$taillesImgOriginale = getimagesize($originalChemin);
|
- |
|
| 116 |
$largeurOrigine = $taillesImgOriginale[0];
|
- |
|
| 117 |
$hauteurOrigine = $taillesImgOriginale[1];
|
- |
|
| 118 |
|
- |
|
| 119 |
$largeurMin = $largeurIdeale;
|
- |
|
| 120 |
$hauteurMin = (int) ($hauteurOrigine * ($largeurIdeale / $largeurOrigine));
|
- |
|
| 121 |
if ($hauteurMin > $hauteurIdeale) {
|
- |
|
| 122 |
$hauteurMin = $hauteurIdeale;
|
- |
|
| 123 |
$largeurMin = (int)($largeurOrigine * ($hauteurMin / $hauteurOrigine));
|
- |
|
| 124 |
}
|
- |
|
| 125 |
|
- |
|
| 126 |
// Création de la miniature
|
- |
|
| 127 |
$imageOriginale = imagecreatefromjpeg($originalChemin);
|
- |
|
| 128 |
$imageMiniature = imagecreatetruecolor($largeurMin, $hauteurMin);
|
- |
|
| 129 |
$couleurFond = imagecolorallocate($imageMiniature, 255, 255, 255);
|
- |
|
| 130 |
imagefill($imageMiniature, 0, 0, $couleurFond);
|
- |
|
| 131 |
imagecopyresized($imageMiniature, $imageOriginale, 0, 0, 0, 0, $largeurMin, $hauteurMin, $largeurOrigine, $hauteurOrigine);
|
- |
|
| 132 |
imagejpeg($imageMiniature, $miniatureChemin, $qualite);
|
- |
|
| 133 |
imagedestroy($imageMiniature);
|
- |
|
| 134 |
imagedestroy($imageOriginale);
|
- |
|
| 135 |
|
- |
|
| 136 |
// Retour des infos
|
- |
|
| 137 |
$retour['squelette'] = $this->projet.'_image';
|
- |
|
| 138 |
$retour['squelette_ext'] = '.tpl.xml';
|
- |
|
| 139 |
$retour['donnees']['urlMiniature'] = sprintf($this->config['chemins']['imagesTempUrlTpl'], $miniatureFichier);
|
- |
|
| 140 |
$retour['donnees']['imageNom'] = $nomFichierOriginal;
|
- |
|
| 141 |
$retour['mime'] = 'text/xml';
|
- |
|
| 142 |
} else {
|
- |
|
| 143 |
$this->messages[] = "L'image n'a pu être déplacé sur le serveur.";
|
- |
|
| 144 |
}
|
- |
|
| 145 |
} else {
|
- |
|
| 146 |
$this->messages[] = "L'image n'est pas au format JPEG.";
|
- |
|
| 147 |
}
|
- |
|
| 148 |
} else {
|
- |
|
| 149 |
$this->messages[] = "L'image n'a pu être uploadée :".print_r($_FILES, true);
|
- |
|
| 150 |
}
|
- |
|
| 151 |
} else {
|
- |
|
| 152 |
$this->messages[] = "Une erreur de transfert a eu lieu (téléversement interrompu). ".
|
- |
|
| 153 |
"Code erreur : {$_FILES['fichier']['error']}. ".
|
- |
|
| 154 |
"Voir : http://php.net/manual/fr/features.file-upload.errors.php";
|
- |
|
| 155 |
}
|
- |
|
| 156 |
return $retour;
|
- |
|
| 157 |
}
|
- |
|
| 158 |
|
- |
|
| 159 |
public function executerBiodiversite34() {
|
80 |
public function executerWidget() {
|
| 160 |
$widget['squelette'] = $this->projet;
|
81 |
$widget['squelette'] = $this->projet;
|
| 161 |
$widget['donnees'] = array();
|
82 |
$widget['donnees'] = array();
|
| 162 |
$widget['donnees']['url_base'] = sprintf($this->config['chemins']['baseURLAbsoluDyn'], '');
|
83 |
$widget['donnees']['url_base'] = sprintf($this->config['chemins']['baseURLAbsoluDyn'], '');
|
| Line 163... |
Line -... |
| 163 |
$widget['donnees']['url_ws_saisie'] = sprintf($this->config['chemins']['baseURLServicesCelTpl'], self::WS_SAISIE);
|
- |
|
| 164 |
|
- |
|
| 165 |
$widget['donnees']['taxons'] = $this->recupererListeTaxonBiodiversite34();
|
- |
|
| 166 |
$widget['donnees']['milieux'] = $this->parserMilieuxBiodiversite34();
|
- |
|
| 167 |
return $widget;
|
- |
|
| 168 |
}
|
- |
|
| 169 |
|
- |
|
| 170 |
private function parserMilieuxBiodiversite34() {
|
- |
|
| 171 |
$infosMilieux = array();
|
- |
|
| 172 |
$milieux = explode('|', $this->configProjet['milieux']);
|
- |
|
| 173 |
foreach ($milieux as $milieu) {
|
- |
|
| 174 |
$details = explode(';', $milieu);
|
- |
|
| 175 |
if (isset($details[1])) {
|
- |
|
| 176 |
$infosMilieux[$details[0]] = $details[1];
|
- |
|
| 177 |
} else {
|
- |
|
| 178 |
$infosMilieux[$details[0]] = '';
|
- |
|
| 179 |
}
|
- |
|
| 180 |
}
|
- |
|
| 181 |
ksort($infosMilieux);
|
- |
|
| Line 182... |
Line 84... |
| 182 |
return $infosMilieux;
|
84 |
$widget['donnees']['url_ws_saisie'] = sprintf($this->config['chemins']['baseURLServicesCelTpl'], self::WS_SAISIE);
|
| 183 |
}
|
85 |
|
| 184 |
|
86 |
|
| 185 |
private function recupererListeTaxonBiodiversite34() {
|
87 |
if ($this->projet == 'defaut') {
|
| - |
|
88 |
$urlWsNsTpl = $this->config['chemins']['baseURLServicesEfloreTpl'];
|
| 186 |
$taxons = null;
|
89 |
$urlWsNs = sprintf($urlWsNsTpl, self::EFLORE_API_VERSION, self::NS_PROJET, self::WS_NOM);
|
| 187 |
$fichier_tsv = dirname(__FILE__).self::DS.'configurations'.self::DS.'biodiversite34_taxons.tsv';
|
90 |
$widget['donnees']['url_ws_autocompletion_ns'] = $urlWsNs;
|
| 188 |
if (file_exists($fichier_tsv) && is_readable($fichier_tsv)) {
|
91 |
$widget['donnees']['ns_referentiel'] = self::NS_PROJET.':'.self::NS_PROJET_VERSION;
|
| - |
|
92 |
$widget['donnees']['ns_version'] = self::NS_PROJET_VERSION;
|
| 189 |
$taxons = $this->decomposerFichierTsv($fichier_tsv);
|
93 |
} else {
|
| 190 |
} else {
|
- |
|
| 191 |
$this->debug[] = "Impossible d'ouvrir le fichier '$fichier_tsv'.";
|
- |
|
| 192 |
}
|
- |
|
| 193 |
|
94 |
$widget['donnees']['taxons'] = $this->recupererListeTaxon();
|
| 194 |
$taxons_tries = self::trierTableauMd($taxons, array('nom_fr' => SORT_ASC));
|
95 |
$widget['donnees']['milieux'] = $this->parserMilieux();
|
| Line 195... |
Line 96... |
| 195 |
|
96 |
}
|
| 196 |
return $taxons_tries;
|
97 |
return $widget;
|
| - |
|
98 |
}
|
| 197 |
}
|
99 |
|
| - |
|
100 |
public function executerTaxons() {
|
| - |
|
101 |
$widget['squelette'] = $this->projet.'_taxons';
|
| - |
|
102 |
$widget['squelette_ext'] = '.tpl.js';
|
| - |
|
103 |
$widget['donnees'] = array();
|
| - |
|
104 |
$taxons = $this->recupererListeTaxon();
|
| 198 |
|
105 |
$taxons_tries = array();
|
| - |
|
106 |
foreach ($taxons as $taxon) {
|
| - |
|
107 |
$taxons_tries[$taxon['num_nom_sel']] = $taxon;
|
| - |
|
108 |
}
|
| - |
|
109 |
$widget['donnees']['taxons'] = json_encode($taxons_tries);
|
| - |
|
110 |
return $widget;
|
| 199 |
public function executerSauvages() {
|
111 |
}
|
| - |
|
112 |
|
| - |
|
113 |
private function recupererListeTaxon() {
|
| - |
|
114 |
$taxons = null;
|
| - |
|
115 |
$fichier_tsv = dirname(__FILE__).self::DS.'configurations'.self::DS.$this->projet.'_taxons.tsv';
|
| - |
|
116 |
if (file_exists($fichier_tsv) && is_readable($fichier_tsv)) {
|
| - |
|
117 |
$taxons = $this->decomposerFichierTsv($fichier_tsv);
|
| - |
|
118 |
$taxons = self::trierTableauMd($taxons, array('nom_fr' => SORT_ASC));
|
| - |
|
119 |
} else {
|
| 200 |
$widget['squelette'] = $this->projet;
|
120 |
$this->debug[] = "Impossible d'ouvrir le fichier '$fichier_tsv'.";
|
| 201 |
$widget['donnees'] = array();
|
121 |
}
|
| - |
|
122 |
return $taxons;
|
| - |
|
123 |
}
|
| - |
|
124 |
|
| 202 |
$widget['donnees']['url_base'] = sprintf($this->config['chemins']['baseURLAbsoluDyn'], '');
|
125 |
private function decomposerFichierTsv($fichier, $delimiter = "\t"){
|
| - |
|
126 |
$header = NULL;
|
| - |
|
127 |
$data = array();
|
| - |
|
128 |
if (($handle = fopen($fichier, 'r')) !== FALSE) {
|
| - |
|
129 |
while (($row = fgetcsv($handle, 1000, $delimiter)) !== FALSE) {
|
| - |
|
130 |
if (!$header) {
|
| - |
|
131 |
$header = $row;
|
| - |
|
132 |
} else {
|
| - |
|
133 |
$data[] = array_combine($header, $row);
|
| 203 |
$widget['donnees']['url_ws_saisie'] = sprintf($this->config['chemins']['baseURLServicesCelTpl'], self::WS_SAISIE);
|
134 |
}
|
| 204 |
|
135 |
}
|
| Line 205... |
Line 136... |
| 205 |
$widget['donnees']['taxons'] = $this->recupererListeTaxonSauvages();
|
136 |
fclose($handle);
|
| 206 |
$widget['donnees']['milieux'] = $this->parserMilieuxSauvages();
|
137 |
}
|
| 207 |
return $widget;
|
138 |
return $data;
|
| 208 |
}
|
139 |
}
|
| 209 |
|
140 |
|
| 210 |
private function parserMilieuxSauvages() {
|
141 |
private function parserMilieux() {
|
| 211 |
$infosMilieux = array();
|
142 |
$infosMilieux = array();
|
| 212 |
$milieux = explode('|', $this->configProjet['milieux']);
|
143 |
$milieux = explode('|', $this->configProjet['milieux']);
|
| 213 |
foreach ($milieux as $milieu) {
|
144 |
foreach ($milieux as $milieu) {
|
| 214 |
$details = explode(';', $milieu);
|
145 |
$details = explode(';', $milieu);
|
| 215 |
if (isset($details[1])) {
|
146 |
if (isset($details[1])) {
|
| - |
|
147 |
$infosMilieux[$details[0]] = $details[1];
|
| 216 |
$infosMilieux[$details[0]] = $details[1];
|
148 |
} else {
|
| 217 |
} else {
|
149 |
$infosMilieux[$details[0]] = '';
|
| Line 218... |
Line 150... |
| 218 |
$infosMilieux[$details[0]] = '';
|
150 |
}
|
| 219 |
}
|
151 |
}
|
| - |
|
152 |
ksort($infosMilieux);
|
| - |
|
153 |
return $infosMilieux;
|
| - |
|
154 |
}
|
| - |
|
155 |
|
| - |
|
156 |
public function executerUploadImage() {
|
| - |
|
157 |
$retour = array(
|
| - |
|
158 |
'squelette' => $this->projet.'_image',
|
| - |
|
159 |
'squelette_ext' => '.tpl.xml',
|
| - |
|
160 |
'mime' => 'text/xml',
|
| - |
|
161 |
'donnees' => array(
|
| - |
|
162 |
'urlMiniature' => '',
|
| 220 |
}
|
163 |
'imageNom' => '',
|
| 221 |
return $infosMilieux;
|
164 |
'message' => '',
|
| - |
|
165 |
'debogage' => ''));
|
| - |
|
166 |
$message = '';
|
| - |
|
167 |
$debogage = '';
|
| 222 |
}
|
168 |
if ($_FILES['fichier']['error'] == UPLOAD_ERR_OK) {
|
| - |
|
169 |
if (is_uploaded_file($_FILES['fichier']['tmp_name'])) {
|
| - |
|
170 |
if ($_FILES['fichier']['type'] == 'image/jpeg') {
|
| 223 |
|
171 |
$dossierStockage = $this->config['chemins']['imagesTempDossier'];
|
| - |
|
172 |
|
| 224 |
private function recupererListeTaxonSauvages() {
|
173 |
$nomFichierOriginal = preg_replace('/[.](jpeg|jpg)$/i', '.jpg', strtolower($_FILES['fichier']['name']));
|
| 225 |
$taxons = null;
|
174 |
$originalChemin = $dossierStockage.$nomFichierOriginal;
|
| 226 |
$fichier_tsv = dirname(__FILE__).self::DS.'configurations'.self::DS.'sauvages_taxons.tsv';
|
175 |
$deplacementOk = move_uploaded_file($_FILES['fichier']['tmp_name'], $originalChemin);
|
| - |
|
176 |
|
| - |
|
177 |
if ($deplacementOk === true) {
|
| - |
|
178 |
$miniatureFichier = str_replace('.jpg', '_min.jpg', $nomFichierOriginal);
|
| 227 |
if (file_exists($fichier_tsv) && is_readable($fichier_tsv)) {
|
179 |
$miniatureChemin = $dossierStockage.$miniatureFichier;
|
| - |
|
180 |
|
| - |
|
181 |
// Parametres
|
| - |
|
182 |
$largeurIdeale = 100;
|
| - |
|
183 |
$hauteurIdeale = 100;
|
| 228 |
$taxons = $this->decomposerFichierTsv($fichier_tsv);
|
184 |
$qualite = 85;
|
| - |
|
185 |
|
| 229 |
} else {
|
186 |
// Calcul de la hauteur et de la largeur optimale de la miniature
|
| - |
|
187 |
$taillesImgOriginale = getimagesize($originalChemin);
|
| 230 |
$this->debug[] = "Impossible d'ouvrir le fichier '$fichier_tsv'.";
|
188 |
$largeurOrigine = $taillesImgOriginale[0];
|
| - |
|
189 |
$hauteurOrigine = $taillesImgOriginale[1];
|
| - |
|
190 |
|
| - |
|
191 |
$largeurMin = $largeurIdeale;
|
| 231 |
}
|
192 |
$hauteurMin = (int) ($hauteurOrigine * ($largeurIdeale / $largeurOrigine));
|
| 232 |
return $taxons;
|
193 |
if ($hauteurMin > $hauteurIdeale) {
|
| - |
|
194 |
$hauteurMin = $hauteurIdeale;
|
| 233 |
}
|
195 |
$largeurMin = (int)($largeurOrigine * ($hauteurMin / $hauteurOrigine));
|
| - |
|
196 |
}
|
| - |
|
197 |
|
| - |
|
198 |
// Création de la miniature
|
| - |
|
199 |
$imageOriginale = imagecreatefromjpeg($originalChemin);
|
| 234 |
|
200 |
$imageMiniature = imagecreatetruecolor($largeurMin, $hauteurMin);
|
| - |
|
201 |
$couleurFond = imagecolorallocate($imageMiniature, 255, 255, 255);
|
| 235 |
private function decomposerFichierTsv($fichier, $delimiter = "\t"){
|
202 |
imagefill($imageMiniature, 0, 0, $couleurFond);
|
| - |
|
203 |
imagecopyresized($imageMiniature, $imageOriginale, 0, 0, 0, 0, $largeurMin, $hauteurMin, $largeurOrigine, $hauteurOrigine);
|
| - |
|
204 |
imagejpeg($imageMiniature, $miniatureChemin, $qualite);
|
| 236 |
$header = NULL;
|
205 |
imagedestroy($imageMiniature);
|
| 237 |
$data = array();
|
206 |
imagedestroy($imageOriginale);
|
| - |
|
207 |
|
| 238 |
if (($handle = fopen($fichier, 'r')) !== FALSE) {
|
208 |
// Retour des infos
|
| - |
|
209 |
$retour['donnees']['urlMiniature'] = sprintf($this->config['chemins']['imagesTempUrlTpl'], $miniatureFichier);
|
| - |
|
210 |
$retour['donnees']['imageNom'] = $nomFichierOriginal;
|
| - |
|
211 |
} else {
|
| - |
|
212 |
$message = "L'image n'a pu être déplacé sur le serveur.";
|
| - |
|
213 |
}
|
| - |
|
214 |
} else {
|
| 239 |
while (($row = fgetcsv($handle, 1000, $delimiter)) !== FALSE) {
|
215 |
$message = "L'image n'est pas au format JPEG.";
|
| - |
|
216 |
}
|
| - |
|
217 |
} else {
|
| - |
|
218 |
$message = "L'image n'a pu être téléversée.";
|
| 240 |
if (!$header) {
|
219 |
$debogage = $message.print_r($_FILES, true);
|
| - |
|
220 |
}
|
| 241 |
$header = $row;
|
221 |
} else {
|
| - |
|
222 |
if ($_FILES['fichier']['error'] == UPLOAD_ERR_FORM_SIZE) {
|
| - |
|
223 |
$message = "L'image téléversée excède la taille maximum autorisée.".
|
| - |
|
224 |
"Veuillez modifier votre image avant de la téléverser à nouveau.";
|
| - |
|
225 |
} else {
|
| - |
|
226 |
$message = "Une erreur de transfert a eu lieu (téléversement interrompu).";
|
| - |
|
227 |
}
|
| 242 |
} else {
|
228 |
$debogage = "Code erreur : {$_FILES['fichier']['error']}. ".
|
| 243 |
$data[] = array_combine($header, $row);
|
229 |
"Voir : http://php.net/manual/fr/features.file-upload.errors.php";
|
| 244 |
}
|
- |
|
| 245 |
}
|
230 |
}
|
| - |
|
231 |
// Retour des infos
|
| - |
|
232 |
$retour['donnees']['message'] = $message;
|
| 246 |
fclose($handle);
|
233 |
$retour['donnees']['debogage'] = $debogage;
|