Subversion Repositories Applications.annuaire

Rev

Rev 396 | Rev 402 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 396 Rev 400
Line 287... Line 287...
287
		$valeurCookie = md5($mdp).$id;
287
		$valeurCookie = md5($mdp).$id;
Line 288... Line 288...
288
 
288
 
289
		setcookie($nomCookie, $valeurCookie, $duree, '/');
289
		setcookie($nomCookie, $valeurCookie, $duree, '/');
Line 290... Line 290...
290
	}
290
	}
291
 
291
 
-
 
292
	protected function creerCookieUtilisateur($duree = null, $id = null, $mdp = null) {
292
	protected function creerCookieUtilisateur($duree = null, $id = null) {
293
		$id = is_null($id) ? $_SERVER['PHP_AUTH_USER'] : $id;
Line 293... Line 294...
293
		$id = is_null($id) ? $_SERVER['PHP_AUTH_USER'] : $id;
294
		$mdp = is_null($mdp) ? $_SERVER['PHP_AUTH_PW'] : $mdp;
294
		$duree = (int) is_null($duree) ? 0 : $duree;
295
		$duree = (int) is_null($duree) ? 0 : $duree;
Line 295... Line 296...
295
 
296
 
296
		$nomCookie = $this->config['database_ident']['nom_cookie_utilisateur'];
297
		$nomCookie = $this->config['database_ident']['nom_cookie_utilisateur'];
Line 297... Line 298...
297
		$valeurCookie = $id;
298
		$valeurCookie = md5($mdp).$id;