Subversion Repositories Applications.annuaire

Rev

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

Rev 56 Rev 85
Line 13... Line 13...
13
 
13
 
Line 14... Line 14...
14
Class IdentificationControleur extends Controleur {
14
Class IdentificationControleur extends Controleur {
15
 
15
 
16
	private $nom_cookie_persistant = '';
16
	private $nom_cookie_persistant = '';
-
 
17
	private $duree_identification = '0';
-
 
18
	private $fonction_cryptage_mdp_cookie = 'md5';
-
 
19
	private $objet_identification = null;
Line 17... Line 20...
17
	private $duree_identification = '0';
20
	
18
	private $fonction_cryptage_mdp_cookie = 'sha1';
21
	/*public function IdentificationControleur() {
19
 
22
 
20
	public function IdentificationControleur() {
23
		Controleur::__construct();
21
		//$this->cookie_persistant_nom = session_name().'-memo';
24
		$this->cookie_persistant_nom = session_name().'-memo';
-
 
25
		$this->cookie_persistant_nom = 'pap-admin_papyrus_-memo';
22
		$this->cookie_persistant_nom = 'pap-admin_papyrus_-memo';
26
		$this->duree_identification = time()+Config::get('duree_session_identification');
Line 23... Line 27...
23
		$this->duree_identification = time()+Config::get('duree_session_identification');
27
		$this->fonction_cryptage_mdp_cookie = Config::get('fonction_cryptage_mdp_cookie');
Line 24... Line 28...
24
		$this->fonction_cryptage_mdp_cookie = Config::get('fonction_cryptage_mdp_cookie');
28
		
25
	}
29
	}*/
Line -... Line 30...
-
 
30
 
-
 
31
	public function afficherFormulaireIdentification($id_annuaire, $donnees = array()) {
-
 
32
 
-
 
33
		$this->chargerModele('AnnuaireModele');
-
 
34
		$annuaire = $this->AnnuaireModele->chargerAnnuaire($id_annuaire);
-
 
35
 
26
 
36
		if(!isset($donnees['informations'])) {
-
 
37
			$donnees['informations'] = array();
-
 
38
		}
-
 
39
 
-
 
40
		$donnees['id_annuaire'] = $id_annuaire;
-
 
41
 
-
 
42
		return $this->getVue(Config::get('dossier_squelettes_formulaires').'identification',$donnees);
-
 
43
	}
-
 
44
 
-
 
45
	public function loggerUtilisateur($utilisateur, $pass) {
-
 
46
		
-
 
47
		$this->objet_identification = Config::get('objet_identification');
-
 
48
 
27
	public function afficherFormulaireIdentification($id_annuaire, $donnees = array()) {
49
		// On loggue l'utilisateur
28
 
50
		$this->objet_identification->username = $utilisateur;
29
		$this->chargerModele('AnnuaireModele');
51
		$this->objet_identification->password = $pass;