Subversion Repositories eFlore/Applications.cel

Compare Revisions

Ignore whitespace Rev 2462 → Rev 2463

/trunk/jrest/JRest.php
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);
/trunk/jrest/index.php
1,5 → 1,22
<?php
// declare(encoding='UTF-8');
/**
* Fichier principal de lancement 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>
*/
 
/**
* La fonction __autoload() charge dynamiquement les classes trouvées dans le code.
*
* Cette fonction est appelée par php5 quand il trouve une instanciation de classe dans le code.