1,8 → 1,20 |
<?php |
// In : utf8 url_encoded (get et post) |
// Out : utf8 |
|
// TODO : gerer les retours : dans ce controleur : code retour et envoi ... |
// declare(encoding='UTF-8'); |
/** |
* Classe principale de gestion des web-services. |
* |
* @internal Mininum PHP version : 5.2 |
* @category CEL |
* @package Services |
* @subpackage Index |
* @version 0.1 |
* @author Mathias CHOUET <mathias@tela-botanica.org> |
* @author Jean-Pascal MILCENT <jpm@tela-botanica.org> |
* @author Aurelien PERONNET <aurelien@tela-botanica.org> |
* @license GPL v3 <http://www.gnu.org/licenses/gpl.txt> |
* @license CECILL v2 <http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt> |
* @copyright 1999-2014 Tela Botanica <accueil@tela-botanica.org> |
*/ |
class JRest { |
|
/** Parsed configuration file */ |
44,7 → 56,7 |
} else { |
$len = -(strlen($_SERVER['QUERY_STRING']) + 1); |
} |
|
|
$urlString = ''; |
if (substr_count($_SERVER['REQUEST_URI'], $this->config['settings']['baseURL']) > 0) { |
$urlString = substr($_SERVER['REQUEST_URI'], strlen($this->config['settings']['baseURL']), $len); |