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.2 2004-06-30 07:23:36 jpm Exp $
|
24 |
// CVS : $Id: pap_initialise_auth.inc.php,v 1.3 2004-10-15 18:29:19 jpm 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.2 $ $Date: 2004-06-30 07:23:36 $
|
40 |
*@version $Revision: 1.3 $ $Date: 2004-10-15 18:29:19 $
|
41 |
// +------------------------------------------------------------------------------------------------------+
|
41 |
// +------------------------------------------------------------------------------------------------------+
|
42 |
*/
|
42 |
*/
|
Line 43... |
Line 43... |
43 |
|
43 |
|
44 |
// +------------------------------------------------------------------------------------------------------+
|
44 |
// +------------------------------------------------------------------------------------------------------+
|
Line 62... |
Line 62... |
62 |
// Gestion de l'identification des utilisateurs et des sessions
|
62 |
// Gestion de l'identification des utilisateurs et des sessions
|
Line 63... |
Line 63... |
63 |
|
63 |
|
64 |
// Nour regardons à quel type d'identification nous avons à faire:
|
64 |
// Nour regardons à quel type d'identification nous avons à faire:
|
65 |
if ($_GEN_commun['info_auth']->gsa_ce_type_auth == 1) {
|
65 |
if ($_GEN_commun['info_auth']->gsa_ce_type_auth == 1) {
|
66 |
// Authentification via une base de données
|
66 |
// Authentification via une base de données
|
67 |
$param_bdd = array ('dsn' => GEN_DSN,
|
67 |
$param_bdd = array ('dsn' => PAP_DSN,
|
68 |
'table' => $_GEN_commun['info_auth_bdd']->gsab_nom_table,
|
68 |
'table' => $_GEN_commun['info_auth_bdd']->gsab_nom_table,
|
69 |
'usernamecol' => $_GEN_commun['info_auth_bdd']->gsab_nom_champ_login,
|
69 |
'usernamecol' => $_GEN_commun['info_auth_bdd']->gsab_nom_champ_login,
|
70 |
'passwordcol' => $_GEN_commun['info_auth_bdd']->gsab_nom_champ_mdp,
|
70 |
'passwordcol' => $_GEN_commun['info_auth_bdd']->gsab_nom_champ_mdp,
|
71 |
'cryptType' => $_GEN_commun['info_auth_bdd']->gsab_cryptage_mdp,
|
71 |
'cryptType' => $_GEN_commun['info_auth_bdd']->gsab_cryptage_mdp,
|
Line 95... |
Line 95... |
95 |
|
95 |
|
Line 96... |
Line 96... |
96 |
$_GEN_commun['pear_auth']->start();
|
96 |
$_GEN_commun['pear_auth']->start();
|
97 |
|
97 |
|
- |
|
98 |
/* +--Fin du code ---------------------------------------------------------------------------------------+
|
- |
|
99 |
* $Log: not supported by cvs2svn $
|
- |
|
100 |
* Revision 1.2 2004/06/30 07:23:36 jpm
|
98 |
/* +--Fin du code ---------------------------------------------------------------------------------------+
|
101 |
* Ajout d'un commentaire.
|
99 |
* $Log: not supported by cvs2svn $
|
102 |
*
|
100 |
* Revision 1.1 2004/06/16 08:12:01 jpm
|
103 |
* Revision 1.1 2004/06/16 08:12:01 jpm
|
101 |
* Changement de nom de Génésia en Papyrus.
|
104 |
* Changement de nom de Génésia en Papyrus.
|
102 |
* Changement de l'arborescence.
|
105 |
* Changement de l'arborescence.
|