Subversion Repositories Applications.annuaire

Rev

Rev 45 | Rev 96 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

<?php
/**
* PHP Version 5
*
* @category  PHP
* @package   annuaire
* @author    aurelien <aurelien@tela-botanica.org>
* @copyright 2010 Tela-Botanica
* @license   http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL
* @version   SVN: <svn_id>
* @link      /doc/annuaire/
*/

Class IdentificationControleur extends Controleur {

        private $nom_cookie_persistant = '';
        private $duree_identification = '0';
        private $fonction_cryptage_mdp_cookie = 'sha1';

        public function IdentificationControleur() {
                //$this->cookie_persistant_nom = session_name().'-memo';
                $this->cookie_persistant_nom = 'pap-admin_papyrus_-memo';
                $this->duree_identification = time()+Config::get('duree_session_identification');
                $this->fonction_cryptage_mdp_cookie = Config::get('fonction_cryptage_mdp_cookie');
        }

        public function afficherFormulaireIdentification($id_annuaire, $donnees = array()) {

                $this->chargerModele('AnnuaireModele');
                $annuaire = $this->AnnuaireModele->chargerAnnuaire($id_annuaire);

                return $this->getVue(Config::get('dossier_squelettes_formulaires').$annuaire['informations']['aa_code'].'_identification',$donnees);
        }
}
?>