| Line 19... |
Line 19... |
| 19 |
// | You should have received a copy of the GNU Lesser General Public |
|
19 |
// | You should have received a copy of the GNU Lesser General Public |
|
| 20 |
// | License along with this library; if not, write to the Free Software |
|
20 |
// | License along with this library; if not, write to the Free Software |
|
| 21 |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
21 |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
| 22 |
// | |
|
22 |
// | |
|
| 23 |
// +------------------------------------------------------------------------------------------------------+
|
23 |
// +------------------------------------------------------------------------------------------------------+
|
| 24 |
// CVS : $Id: pap_initialise_auth.inc.php,v 1.14 2005-03-15 14:20:01 jpm Exp $
|
24 |
// CVS : $Id: pap_initialise_auth.inc.php,v 1.15 2005-03-24 15:04:26 alex Exp $
|
| 25 |
/**
|
25 |
/**
|
| 26 |
* Initialisation de l'authentification.
|
26 |
* Initialisation de l'authentification.
|
| 27 |
*
|
27 |
*
|
| 28 |
* Suite à la recherche des informations depuis la base de données nous initialisons
|
28 |
* Suite à la recherche des informations depuis la base de données nous initialisons
|
| 29 |
* l'authentification des utilisateurs si le site l'utilise.
|
29 |
* l'authentification des utilisateurs si le site l'utilise.
|
| Line 35... |
Line 35... |
| 35 |
//Auteur original :
|
35 |
//Auteur original :
|
| 36 |
*@author Alexandre GRANIER <alex@tela-botanica.org>
|
36 |
*@author Alexandre GRANIER <alex@tela-botanica.org>
|
| 37 |
//Autres auteurs :
|
37 |
//Autres auteurs :
|
| 38 |
*@author Jean-Pascal MILCENT <jpm@tela-botanica.org>
|
38 |
*@author Jean-Pascal MILCENT <jpm@tela-botanica.org>
|
| 39 |
*@copyright Tela-Botanica 2000-2004
|
39 |
*@copyright Tela-Botanica 2000-2004
|
| 40 |
*@version $Revision: 1.14 $ $Date: 2005-03-15 14:20:01 $
|
40 |
*@version $Revision: 1.15 $ $Date: 2005-03-24 15:04:26 $
|
| 41 |
// +------------------------------------------------------------------------------------------------------+
|
41 |
// +------------------------------------------------------------------------------------------------------+
|
| 42 |
*/
|
42 |
*/
|
| Line 43... |
Line 43... |
| 43 |
|
43 |
|
| 44 |
// +------------------------------------------------------------------------------------------------------+
|
44 |
// +------------------------------------------------------------------------------------------------------+
|
| Line 186... |
Line 186... |
| 186 |
'Fichier : '. __FILE__ . '<br />');
|
186 |
'Fichier : '. __FILE__ . '<br />');
|
| 187 |
}
|
187 |
}
|
| Line 188... |
Line 188... |
| 188 |
|
188 |
|
| Line -... |
Line 189... |
| - |
|
189 |
$_GEN_commun['pear_auth']->setSessionname( 'gen_'.$_GEN_commun['info_auth']->gsa_abreviation);
|
| - |
|
190 |
|
| - |
|
191 |
// Pour que la session dure même après avoir refermer son navigateur
|
| - |
|
192 |
session_set_cookie_params(3600 * 24 * 30 * 6);
|
| 189 |
$_GEN_commun['pear_auth']->setSessionname( 'gen_'.$_GEN_commun['info_auth']->gsa_abreviation);
|
193 |
|
| Line 190... |
Line 194... |
| 190 |
|
194 |
// Expiration si l'utilisateur ne referme pas son navigateur
|
| Line 191... |
Line 195... |
| 191 |
$_GEN_commun['pear_auth']->setExpire(3600 * 24 * 30 * 6);// 6 mois
|
195 |
$_GEN_commun['pear_auth']->setExpire(3600 * 24 * 30 * 6);// 6 mois
|
| Line 268... |
Line 272... |
| 268 |
}
|
272 |
}
|
| Line 269... |
Line 273... |
| 269 |
|
273 |
|
| 270 |
|
274 |
|
| - |
|
275 |
/* +--Fin du code ---------------------------------------------------------------------------------------+
|
| - |
|
276 |
* $Log: not supported by cvs2svn $
|
| - |
|
277 |
* Revision 1.14 2005/03/15 14:20:01 jpm
|
| 271 |
/* +--Fin du code ---------------------------------------------------------------------------------------+
|
278 |
* Gestion des arguments de l'identification courante.
|
| 272 |
* $Log: not supported by cvs2svn $
|
279 |
*
|
| 273 |
* Revision 1.13 2005/02/22 18:27:24 jpm
|
280 |
* Revision 1.13 2005/02/22 18:27:24 jpm
|
| 274 |
* Changement de nom de variables.
|
281 |
* Changement de nom de variables.
|
| 275 |
*
|
282 |
*
|