45 |
aurelien |
1 |
<?php
|
|
|
2 |
/**
|
|
|
3 |
* PHP Version 5
|
|
|
4 |
*
|
|
|
5 |
* @category PHP
|
|
|
6 |
* @package annuaire
|
|
|
7 |
* @author aurelien <aurelien@tela-botanica.org>
|
|
|
8 |
* @copyright 2010 Tela-Botanica
|
|
|
9 |
* @license http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL
|
|
|
10 |
* @version SVN: <svn_id>
|
|
|
11 |
* @link /doc/annuaire/
|
|
|
12 |
*/
|
|
|
13 |
|
|
|
14 |
Class IdentificationControleur extends Controleur {
|
|
|
15 |
|
|
|
16 |
private $nom_cookie_persistant = '';
|
|
|
17 |
private $duree_identification = '0';
|
|
|
18 |
private $fonction_cryptage_mdp_cookie = 'sha1';
|
|
|
19 |
|
|
|
20 |
public function IdentificationControleur() {
|
|
|
21 |
//$this->cookie_persistant_nom = session_name().'-memo';
|
|
|
22 |
$this->cookie_persistant_nom = 'pap-admin_papyrus_-memo';
|
|
|
23 |
$this->duree_identification = time()+Config::get('duree_session_identification');
|
|
|
24 |
$this->fonction_cryptage_mdp_cookie = Config::get('fonction_cryptage_mdp_cookie');
|
|
|
25 |
}
|
|
|
26 |
|
|
|
27 |
public function afficherFormulaireIdentification($id_annuaire, $donnees = array()) {
|
|
|
28 |
|
|
|
29 |
$this->chargerModele('AnnuaireModele');
|
|
|
30 |
$annuaire = $this->AnnuaireModele->chargerAnnuaire($id_annuaire);
|
|
|
31 |
|
|
|
32 |
return $this->getVue(Config::get('dossier_squelettes_formulaires').$annuaire['informations']['aa_code'].'_identification',$donnees);
|
|
|
33 |
}
|
|
|
34 |
}
|
|
|
35 |
?>
|