Subversion Repositories Applications.framework

Rev

Rev 382 | Rev 384 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 382 Rev 383
Line 33... Line 33...
33
 * @author		Jean-Pascal MILCENT <jpm@tela-botanica.org>
33
 * @author		Jean-Pascal MILCENT <jpm@tela-botanica.org>
34
 * @copyright	Copyright (c) 2010, Tela Botanica (accueil@tela-botanica.org)
34
 * @copyright	Copyright (c) 2010, Tela Botanica (accueil@tela-botanica.org)
35
 * @license		GPL v3 <http://www.gnu.org/licenses/gpl.txt>
35
 * @license		GPL v3 <http://www.gnu.org/licenses/gpl.txt>
36
 * @license		CECILL v2 <http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt>
36
 * @license		CECILL v2 <http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt>
37
 * @since 		0.3
37
 * @since 		0.3
38
 * @version		$Id: RestServeur.php 382 2011-10-14 10:36:41Z jpm $
38
 * @version		$Id: RestServeur.php 383 2011-10-17 08:56:21Z jpm $
39
 * @link		/doc/framework/
39
 * @link		/doc/framework/
40
 */
40
 */
41
// TODO : gerer les retours : dans ce controleur : code retour et envoi ...
41
// TODO : gerer les retours : dans ce controleur : code retour et envoi ...
42
class RestServeur {
42
class RestServeur {
Line 341... Line 341...
341
		}
341
		}
342
		return $parametres;
342
		return $parametres;
343
	}
343
	}
Line 344... Line 344...
344
	
344
	
345
	private function recupererParametresBruts() {
-
 
346
		$paires = explode('&', $_SERVER['QUERY_STRING']);
345
	private function recupererParametresBruts() {
-
 
346
		$parametres_bruts = array();
-
 
347
		if (!empty($_SERVER['QUERY_STRING'])) {
-
 
348
			$paires = explode('&', $_SERVER['QUERY_STRING']);
347
		$parametres_bruts = array();
349
			Debug::printr($paires, 'Query');
348
		foreach ($paires as $paire) {
350
			foreach ($paires as $paire) {
349
			$nv = explode('=', $paire);
351
				$nv = explode('=', $paire);
350
			$nom = urldecode($nv[0]);
352
				$nom = urldecode($nv[0]);
351
			$valeur = urldecode($nv[1]);
353
				$valeur = urldecode($nv[1]);
-
 
354
				$parametres_bruts[$nom] = $valeur;
-
 
355
			}
352
			$parametres_bruts[$nom] = $valeur;
356
			$parametres_bruts = $this->nettoyerParametres($parametres_bruts);
353
		}
-
 
354
		$parametres_bruts = $this->nettoyerParametres($parametres_bruts);
357
		}
355
		return $parametres_bruts;
358
		return $parametres_bruts;
Line 356... Line 359...
356
	}	
359
	}	
357
	
360