| 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 383 2011-10-17 08:56:21Z jpm $
|
38 |
* @version $Id: RestServeur.php 384 2011-10-17 08:56:40Z 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 344... |
Line 344... |
| 344 |
|
344 |
|
| 345 |
private function recupererParametresBruts() {
|
345 |
private function recupererParametresBruts() {
|
| 346 |
$parametres_bruts = array();
|
346 |
$parametres_bruts = array();
|
| 347 |
if (!empty($_SERVER['QUERY_STRING'])) {
|
347 |
if (!empty($_SERVER['QUERY_STRING'])) {
|
| 348 |
$paires = explode('&', $_SERVER['QUERY_STRING']);
|
- |
|
| 349 |
Debug::printr($paires, 'Query');
|
348 |
$paires = explode('&', $_SERVER['QUERY_STRING']);
|
| 350 |
foreach ($paires as $paire) {
|
349 |
foreach ($paires as $paire) {
|
| 351 |
$nv = explode('=', $paire);
|
350 |
$nv = explode('=', $paire);
|
| 352 |
$nom = urldecode($nv[0]);
|
351 |
$nom = urldecode($nv[0]);
|
| 353 |
$valeur = urldecode($nv[1]);
|
352 |
$valeur = urldecode($nv[1]);
|