Subversion Repositories Applications.annuaire

Compare Revisions

Ignore whitespace Rev 607 → Rev 608

/branches/v1.5-belier/jrest/bibliotheque/JRestService.php
394,6 → 394,15
// mode pour les gens normaux qu'ont pas de passe-droits
if ($basicAuth === false || JRest::$cgi === false) { // en mode non-CGI ou pour une identification $id / $mdp
 
// si une appli ISO (Papyrus) fournit un mdp contenant des caractères
// non-ISO, eh ben /i !
if (! preg_match('//u', $mdp)) {
$mdp = iconv("ISO-8859-1", "UTF-8//TRANSLIT", $mdp);
}
if (! preg_match('//u', $id)) {
$id = iconv("ISO-8859-1", "UTF-8//TRANSLIT", $id);
}
 
$requete = 'SELECT '.$this->config['database_ident']['ann_id'].' AS courriel '.
'FROM '.$this->config['database_ident']['database'].'.'.$this->config['database_ident']['annuaire'].' '.
'WHERE '.$this->config['database_ident']['ann_id'].' = '.$this->bdd->quote($id).' '.
458,7 → 467,7
}
protected function supprimerCookieUtilisateur() {
session_destroy();
session_destroy();
setcookie($this->config['database_ident']['nom_cookie_utilisateur'], "", time()-7200, "/");
setcookie($this->config['database_ident']['nom_cookie_persistant'], "", time()-7200, "/");
}