Subversion Repositories eFlore/Applications.coel

Compare Revisions

Regard whitespace Rev 1699 → Rev 1700

/trunk/jrest/services/CoelRecherche.php
31,6 → 31,10
}
// Envoie sur la sortie standard
if($this->formatRetour == 'text/plain') {
$this->envoyer($info, 'text/plain', 'utf-8', false);
exit;
}
$this->envoyer($info);
}
135,13 → 139,14
private function pretraiterParametresUrl($param) {
// Tableau des paramêtres qui peuvent être passés dans l'url
$params_passes = array('mots' => 'str',
$params_passes = array(
'mots' => 'str',
'sci' => 'bool',
'bot' => 'int',
'zg' => 'str',
'p' => 'str',
'pr' => 'int',
'str-d' => 'defaut',
'str-d' => 'frdepliste',
'veg' => 'int',
'projets' => 'int');
189,6 → 194,10
}
}
if ($type == 'frdepliste') {
$valeur = array_filter(explode(',', $valeur), create_function('$val', 'return preg_match("/^(\d+|2A|2B)$/i", $val);'));
}
 
$p[$param_passe] = $valeur;
}
}
252,7 → 261,7
}
if (isset($p['str-d'])) {
$where[] = 'cs_ce_truk_pays = 2654';
$where[] = "cs_code_postal LIKE '{$p['str-d']}%'";
$where[] = sprintf("cs_code_postal REGEXP '^(%s).*'", implode('|', $p['str-d']));
}
 
if (isset($p['veg'])) {