Subversion Repositories eFlore/Applications.cel

Compare Revisions

Ignore whitespace Rev 2554 → Rev 2555

/trunk/jrest/bibliotheque/Cel.php
41,8 → 41,8
protected $start;
protected $limit;
 
static $referentiels_valides = array('bdtfx', 'bdtxa', 'isfan', 'apd');
static $default_referentiel = 'bdtfx';
static $referentiels_valides = array();
static $default_referentiel = null;
static $fallback_referentiel = 'autre';
 
public function __construct($config) {
53,7 → 53,11
// Réglages de PHP
setlocale(LC_ALL, $this->config['settings']['locale']);
date_default_timezone_set($this->config['settings']['fuseauHoraire']);
 
// Chargement des référentiels disponibles
self::$referentiels_valides = array_keys($this->config['referentiels']);
self::$default_referentiel = $this->config['cel']['referentiel_defaut'];
// Connection à la base de données
if (self::$bdd === null) { // singleton à l'arrache
self::$bdd = new Bdd($this->config, 'database_cel');
/trunk/jrest/jrest.ini.php.defaut
55,6 → 55,7
bdtxa = "tb_eflore.bdtxa_v1_01"
isfan = "tb_eflore.isfan_v2013"
apd = "tb_eflore.apd_v3_4_0"
lbf = "tb_eflore.lbf_v1_00"
 
[cel]
chemin_images = /opt/lampp/htdocs/Documents/images_serveur
90,6 → 91,8
 
commande_script_images = "/usr/local/php/5.5/bin/php /home/apitela/www/scripts/cel/cli.php generationimages -a genererMinaturesPourId -id %s &";
 
referentiel_defaut = bdtfx
 
[database_cel]
phptype = mysqli
username =