Subversion Repositories Applications.papyrus

Rev

Rev 1524 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1524 Rev 2145
1
<?php
1
<?php
2
//vim: set expandtab tabstop=4 shiftwidth=4:
2
//vim: set expandtab tabstop=4 shiftwidth=4:
3
// +------------------------------------------------------------------------------------------------------+
3
// +------------------------------------------------------------------------------------------------------+
4
// | PHP version 4.1                                                                                      |
4
// | PHP version 4.1                                                                                      |
5
// +------------------------------------------------------------------------------------------------------+
5
// +------------------------------------------------------------------------------------------------------+
6
// | Copyright (C) 2003 Tela Botanica (accueil@tela-botanica.org)                                         |
6
// | Copyright (C) 2003 Tela Botanica (accueil@tela-botanica.org)                                         |
7
// +------------------------------------------------------------------------------------------------------+
7
// +------------------------------------------------------------------------------------------------------+
8
// |                                                                                                      |
8
// |                                                                                                      |
9
// | This library is free software; you can redistribute it and/or                                        |
9
// | This library is free software; you can redistribute it and/or                                        |
10
// | modify it under the terms of the GNU Lesser General Public                                           |
10
// | modify it under the terms of the GNU Lesser General Public                                           |
11
// | License as published by the Free Software Foundation; either                                         |
11
// | License as published by the Free Software Foundation; either                                         |
12
// | version 2.1 of the License, or (at your option) any later version.                                   |
12
// | version 2.1 of the License, or (at your option) any later version.                                   |
13
// |                                                                                                      |
13
// |                                                                                                      |
14
// | This library is distributed in the hope that it will be useful,                                      |
14
// | This library is distributed in the hope that it will be useful,                                      |
15
// | but WITHOUT ANY WARRANTY; without even the implied warranty of                                       |
15
// | but WITHOUT ANY WARRANTY; without even the implied warranty of                                       |
16
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU                                    |
16
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU                                    |
17
// | Lesser General Public License for more details.                                                      |
17
// | Lesser General Public License for more details.                                                      |
18
// |                                                                                                      |
18
// |                                                                                                      |
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.26 2007-07-24 13:28:54 jp_milcent Exp $
24
// CVS : $Id: pap_initialise_auth.inc.php,v 1.26 2007-07-24 13:28:54 jp_milcent 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.
30
* La page contient le code initialisant l'objet PEAR créé par Net_URL contenant l'url
30
* La page contient le code initialisant l'objet PEAR créé par Net_URL contenant l'url
31
* courante demandée par l'utilisateur.
31
* courante demandée par l'utilisateur.
32
* Nous initialisons aussi l'identification de l'utilisateur et le démarage de la session.
32
* Nous initialisons aussi l'identification de l'utilisateur et le démarage de la session.
33
*
33
*
34
*@package Papyrus
34
*@package Papyrus
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.26 $ $Date: 2007-07-24 13:28:54 $
40
*@version           $Revision: 1.26 $ $Date: 2007-07-24 13:28:54 $
41
// +------------------------------------------------------------------------------------------------------+
41
// +------------------------------------------------------------------------------------------------------+
42
*/
42
*/
43
 
43
 
44
// +------------------------------------------------------------------------------------------------------+
44
// +------------------------------------------------------------------------------------------------------+
45
// |                                            ENTÊTE du PROGRAMME                                       |
45
// |                                            ENTÊTE du PROGRAMME                                       |
46
// +------------------------------------------------------------------------------------------------------+
46
// +------------------------------------------------------------------------------------------------------+
47
 
47
 
48
/** <br> Inclusion de l'authentification de PEAR.*/
48
/** <br> Inclusion de l'authentification de PEAR.*/
49
include_once PAP_CHEMIN_API_PEAR.'Auth.php';
49
include_once PAP_CHEMIN_API_PEAR.'Auth.php';
50
 
50
 
51
/** Inclusion de la bibliothèque de fonctions d'identification.
51
/** Inclusion de la bibliothèque de fonctions d'identification.
52
* Contient entre autre la fonction founissant le formulaire d'identification pour Auth de Pear.
52
* Contient entre autre la fonction founissant le formulaire d'identification pour Auth de Pear.
53
* Cette inclusion n'a lieu que si le site utilise l'identification.
53
* Cette inclusion n'a lieu que si le site utilise l'identification.
54
*/
54
*/
55
include_once GEN_CHEMIN_PAP.'bibliotheque/fonctions/pap_identification.fonct.php' ;
55
include_once GEN_CHEMIN_PAP.'bibliotheque/fonctions/pap_identification.fonct.php' ;
56
include_once GEN_CHEMIN_PAP.'bibliotheque/fonctions/pap_site.fonct.php' ;
56
include_once GEN_CHEMIN_PAP.'bibliotheque/fonctions/pap_site.fonct.php' ;
57
 
57
 
58
// +------------------------------------------------------------------------------------------------------+
58
// +------------------------------------------------------------------------------------------------------+
59
// |                                            CORPS du PROGRAMME                                        |
59
// |                                            CORPS du PROGRAMME                                        |
60
// +------------------------------------------------------------------------------------------------------+
60
// +------------------------------------------------------------------------------------------------------+
61
 
61
 
62
// +------------------------------------------------------------------------------------------------------+
62
// +------------------------------------------------------------------------------------------------------+
63
// Gestion de l'identification des utilisateurs et des sessions
63
// Gestion de l'identification des utilisateurs et des sessions
64
 
64
 
65
 
65
 
66
// +------------------------------------------------------------------------------------------------------+
66
// +------------------------------------------------------------------------------------------------------+
67
// Récupération des informations d'identification pour le site courant
67
// Récupération des informations d'identification pour le site courant
68
 
68
 
69
// Récupération des informations sur le site
69
// Récupération des informations sur le site
70
$requete_auth = 'SELECT gen_site_auth.*, gs_id_site '.
70
$requete_auth = 'SELECT gen_site_auth.*, gs_id_site '.
71
                'FROM gen_site_auth, gen_site '.
71
                'FROM gen_site_auth, gen_site '.
72
                'WHERE gs_ce_auth <> 0 '.
72
                'WHERE gs_ce_auth <> 0 '.
73
                'AND gs_ce_auth = gsa_id_auth';
73
                'AND gs_ce_auth = gsa_id_auth';
74
 
74
 
75
$resultat_auth = $db->query($requete_auth);
75
$resultat_auth = $db->query($requete_auth);
76
(DB::isError($resultat_auth))
76
(DB::isError($resultat_auth))
77
    ? die(BOG_afficherErreurSql(__FILE__, __LINE__, $resultat_auth->getMessage(), $requete_auth))
77
    ? die(BOG_afficherErreurSql(__FILE__, __LINE__, $resultat_auth->getMessage(), $requete_auth))
78
    : '';
78
    : '';
79
 
79
 
80
while ($ligne_auth = $resultat_auth->fetchRow(DB_FETCHMODE_OBJECT)) {
80
while ($ligne_auth = $resultat_auth->fetchRow(DB_FETCHMODE_OBJECT)) {
81
    // Ajout des valeurs communes aux différents type d'auth
81
    // Ajout des valeurs communes aux différents type d'auth
82
    $GLOBALS['_PAPYRUS_']['auth'][$ligne_auth->gsa_id_auth]['gsa_nom'] = $ligne_auth->gsa_nom;
82
    $GLOBALS['_PAPYRUS_']['auth'][$ligne_auth->gsa_id_auth]['gsa_nom'] = $ligne_auth->gsa_nom;
83
    $GLOBALS['_PAPYRUS_']['auth'][$ligne_auth->gsa_id_auth]['gsa_abreviation'] = $ligne_auth->gsa_abreviation;
83
    $GLOBALS['_PAPYRUS_']['auth'][$ligne_auth->gsa_id_auth]['gsa_abreviation'] = $ligne_auth->gsa_abreviation;
84
    $GLOBALS['_PAPYRUS_']['auth'][$ligne_auth->gsa_id_auth]['gsa_ce_type_auth'] = $ligne_auth->gsa_ce_type_auth;
84
    $GLOBALS['_PAPYRUS_']['auth'][$ligne_auth->gsa_id_auth]['gsa_ce_type_auth'] = $ligne_auth->gsa_ce_type_auth;
85
    
85
 
86
    
86
 
87
    if ($ligne_auth->gsa_id_auth == $GLOBALS['_GEN_commun']['info_site']->gs_ce_auth) {
87
    if ($ligne_auth->gsa_id_auth == $GLOBALS['_GEN_commun']['info_site']->gs_ce_auth) {
88
        $GLOBALS['_GEN_commun']['info_auth'] = $ligne_auth;
88
        $GLOBALS['_GEN_commun']['info_auth'] = $ligne_auth;
89
    }
89
    }
90
    
90
 
91
    if ($ligne_auth->gsa_ce_auth_bdd != 0) {
91
    if ($ligne_auth->gsa_ce_auth_bdd != 0) {
92
        //Identification via une base de donnée :
92
        //Identification via une base de donnée :
93
        $requete_auth_bdd = 'SELECT * '.
93
        $requete_auth_bdd = 'SELECT * '.
94
                            'FROM gen_site_auth_bdd '.
94
                            'FROM gen_site_auth_bdd '.
95
                            'WHERE gsab_id_auth_bdd = '.$ligne_auth->gsa_ce_auth_bdd;
95
                            'WHERE gsab_id_auth_bdd = '.$ligne_auth->gsa_ce_auth_bdd;
96
        
96
 
97
        $resultat_auth_bdd = $db->query($requete_auth_bdd);
97
        $resultat_auth_bdd = $db->query($requete_auth_bdd);
98
        (DB::isError($resultat_auth_bdd))
98
        (DB::isError($resultat_auth_bdd))
99
            ? die(BOG_afficherErreurSql(__FILE__, __LINE__, $resultat_auth_bdd->getMessage(), $requete_auth_bdd))
99
            ? die(BOG_afficherErreurSql(__FILE__, __LINE__, $resultat_auth_bdd->getMessage(), $requete_auth_bdd))
100
            : '';
100
            : '';
101
        $tab_auth_bdd = $resultat_auth_bdd->fetchRow(DB_FETCHMODE_OBJECT) ;
101
        $tab_auth_bdd = $resultat_auth_bdd->fetchRow(DB_FETCHMODE_OBJECT) ;
102
        if ($ligne_auth->gsa_id_auth == $GLOBALS['_GEN_commun']['info_site']->gs_ce_auth) {
102
        if ($ligne_auth->gsa_id_auth == $GLOBALS['_GEN_commun']['info_site']->gs_ce_auth) {
103
            $GLOBALS['_GEN_commun']['info_auth_bdd'] = $tab_auth_bdd ;
103
            $GLOBALS['_GEN_commun']['info_auth_bdd'] = $tab_auth_bdd ;
104
            // Gestion des arguments de l'authentification
104
            // Gestion des arguments de l'authentification
105
            if (isset($GLOBALS['_GEN_commun']['info_auth_bdd']->gsab_parametres)) {
105
            if (isset($GLOBALS['_GEN_commun']['info_auth_bdd']->gsab_parametres)) {
106
                $arguments = explode(' ', $GLOBALS['_GEN_commun']['info_auth_bdd']->gsab_parametres);
106
                $arguments = explode(' ', $GLOBALS['_GEN_commun']['info_auth_bdd']->gsab_parametres);
107
                for ($i = 0; $i < count($arguments); $i++) {
107
                for ($i = 0; $i < count($arguments); $i++) {
108
                    $attr = explode('=', $arguments[$i]);
108
                    $attr = explode('=', $arguments[$i]);
109
                    if ($attr[0] != '') {
109
                    if ($attr[0] != '') {
-
 
110
                        $cle = array_shift($attr);
-
 
111
                        $valeur = '';
-
 
112
                        if (count($attr) == 1) {
-
 
113
                           $valeur = $attr[0];
-
 
114
                        } else if (count($attr) > 1) {
-
 
115
                           $valeur = implode('=', $attr);
-
 
116
                        }
110
                        $GLOBALS['_GEN_commun']['info_auth_bdd']->$attr[0] = (isset($attr[1]) ? $attr[1] : '');
117
                        $GLOBALS['_GEN_commun']['info_auth_bdd']->$cle = $valeur;
111
                    }
118
                    }
112
                }
119
                }
113
            }
120
            }
114
        }
121
        }
115
        
122
 
116
       	$GLOBALS['_PAPYRUS_']['auth'][$ligne_auth->gsa_id_auth] = array_merge((array)$GLOBALS['_PAPYRUS_']['auth'][$ligne_auth->gsa_id_auth], (array) $tab_auth_bdd);
123
       	$GLOBALS['_PAPYRUS_']['auth'][$ligne_auth->gsa_id_auth] = array_merge((array)$GLOBALS['_PAPYRUS_']['auth'][$ligne_auth->gsa_id_auth], (array) $tab_auth_bdd);
117
        $resultat_auth_bdd->free();
124
        $resultat_auth_bdd->free();
118
    } else if ($ligne_auth->gsa_ce_auth_ldap != 0) {
125
    } else if ($ligne_auth->gsa_ce_auth_ldap != 0) {
119
        //Identification via LDAP :
126
        //Identification via LDAP :
120
        $requete_auth_ldap =    'SELECT * '.
127
        $requete_auth_ldap =    'SELECT * '.
121
                                'FROM gen_site_auth_ldap '.
128
                                'FROM gen_site_auth_ldap '.
122
                                'WHERE gsal_id_auth_ldap = '.$ligne_auth->gsa_ce_auth_ldap;
129
                                'WHERE gsal_id_auth_ldap = '.$ligne_auth->gsa_ce_auth_ldap;
123
        
130
 
124
        $resultat_auth_ldap = $db->query($requete_auth_ldap);
131
        $resultat_auth_ldap = $db->query($requete_auth_ldap);
125
        (DB::isError($resultat_auth_ldap))
132
        (DB::isError($resultat_auth_ldap))
126
            ? die(BOG_afficherErreurSql(__FILE__, __LINE__, $resultat_auth_ldap->getMessage(), $requete_auth_ldap))
133
            ? die(BOG_afficherErreurSql(__FILE__, __LINE__, $resultat_auth_ldap->getMessage(), $requete_auth_ldap))
127
            : '';
134
            : '';
128
        $tab_auth_ldap = $resultat_auth_ldap->fetchRow(DB_FETCHMODE_OBJECT);
135
        $tab_auth_ldap = $resultat_auth_ldap->fetchRow(DB_FETCHMODE_OBJECT);
129
        if ($ligne_auth->gsa_id_auth == $_GEN_commun['info_site']->gs_ce_auth) {
136
        if ($ligne_auth->gsa_id_auth == $_GEN_commun['info_site']->gs_ce_auth) {
130
            $GLOBALS['_GEN_commun']['info_auth_ldap'] = $tab_auth_ldap;
137
            $GLOBALS['_GEN_commun']['info_auth_ldap'] = $tab_auth_ldap;
131
        }
138
        }
132
        $GLOBALS['_PAPYRUS_']['auth'][$ligne_auth->gsa_id_auth] = array_merge((array) $GLOBALS['_PAPYRUS_']['auth'][$ligne_auth->gsa_id_auth], (array) $tab_auth_ldap);
139
        $GLOBALS['_PAPYRUS_']['auth'][$ligne_auth->gsa_id_auth] = array_merge((array) $GLOBALS['_PAPYRUS_']['auth'][$ligne_auth->gsa_id_auth], (array) $tab_auth_ldap);
133
        $resultat_auth_ldap->free();
140
        $resultat_auth_ldap->free();
134
    } else {
141
    } else {
135
        die('ERREUR Papyrus : impossible de trouver les information authentification. <br />'.
142
        die('ERREUR Papyrus : impossible de trouver les information authentification. <br />'.
136
            'Identifiant auth : '.$ligne_auth->gs_ce_auth.'<br />'.
143
            'Identifiant auth : '.$ligne_auth->gs_ce_auth.'<br />'.
137
            'Ligne n° : '. __LINE__ .'<br />'.
144
            'Ligne n° : '. __LINE__ .'<br />'.
138
            'Fichier : '. __FILE__ );
145
            'Fichier : '. __FILE__ );
139
    }
146
    }
140
    
147
 
141
    // On teste le type d'authentification
148
    // On teste le type d'authentification
142
    $tab_type_site = GEN_retournerTableauTypeSiteExterne($db);
149
    $tab_type_site = GEN_retournerTableauTypeSiteExterne($db);
143
    $types_site = '';
150
    $types_site = '';
144
    foreach ($tab_type_site as $val) {
151
    foreach ($tab_type_site as $val) {
145
        $types_site .= $val['id'].', ';
152
        $types_site .= $val['id'].', ';
146
    }
153
    }
147
    $types_site = substr($types_site, 0, -2);
154
    $types_site = substr($types_site, 0, -2);
148
    $requete =  'SELECT gsr_id_valeur '.
155
    $requete =  'SELECT gsr_id_valeur '.
149
                'FROM gen_site_relation '.
156
                'FROM gen_site_relation '.
150
                'WHERE gsr_id_site_01 = '.$ligne_auth->gs_id_site.' '.
157
                'WHERE gsr_id_site_01 = '.$ligne_auth->gs_id_site.' '.
151
                'AND gsr_id_site_01 = gsr_id_site_02 '.
158
                'AND gsr_id_site_01 = gsr_id_site_02 '.
152
                'AND gsr_id_valeur IN ('.$types_site.')';
159
                'AND gsr_id_valeur IN ('.$types_site.')';
153
    $type_site_externe = $db->getOne($requete);
160
    $type_site_externe = $db->getOne($requete);
154
    (DB::isError($type_site_externe))
161
    (DB::isError($type_site_externe))
155
            ? die(BOG_afficherErreurSql(__FILE__, __LINE__, $type_site_externe->getMessage(), $requete))
162
            ? die(BOG_afficherErreurSql(__FILE__, __LINE__, $type_site_externe->getMessage(), $requete))
156
            : '';
163
            : '';
157
    // Type du site de l'authentification
164
    // Type du site de l'authentification
158
    if ($type_site_externe != '') {
165
    if ($type_site_externe != '') {
159
        $GLOBALS['_PAPYRUS_']['auth'][$ligne_auth->gsa_id_auth]['type_site_externe'] = $type_site_externe;
166
        $GLOBALS['_PAPYRUS_']['auth'][$ligne_auth->gsa_id_auth]['type_site_externe'] = $type_site_externe;
160
    }
167
    }
161
}
168
}
162
$resultat_auth->free();
169
$resultat_auth->free();
163
 
170
 
164
// +------------------------------------------------------------------------------------------------------+
171
// +------------------------------------------------------------------------------------------------------+
165
// Définition du nom de la session
172
// Définition du nom de la session
166
session_name(PAP_AUTH_SESSION_PREFIXE.$GLOBALS['_GEN_commun']['info_auth']->gsa_abreviation);
173
session_name(PAP_AUTH_SESSION_PREFIXE.$GLOBALS['_GEN_commun']['info_auth']->gsa_abreviation);
167
 
174
 
168
// +------------------------------------------------------------------------------------------------------+
175
// +------------------------------------------------------------------------------------------------------+
169
// Nour regardons à quel type d'identification nous avons à faire:
176
// Nour regardons à quel type d'identification nous avons à faire:
170
$auth_courante = $GLOBALS['_PAPYRUS_']['auth'][$GLOBALS['_GEN_commun']['info_site']->gs_ce_auth] ;
177
$auth_courante = $GLOBALS['_PAPYRUS_']['auth'][$GLOBALS['_GEN_commun']['info_site']->gs_ce_auth] ;
171
if ($auth_courante['gsa_ce_type_auth'] == 1) {
178
if ($auth_courante['gsa_ce_type_auth'] == 1) {
172
    // Authentification via une base de données
179
    // Authentification via une base de données
173
    $GLOBALS['_PAPYRUS_']['auth']['param_bdd'] = array ('dsn' => $auth_courante['gsab_dsn'],
180
    $GLOBALS['_PAPYRUS_']['auth']['param_bdd'] = array ('dsn' => $auth_courante['gsab_dsn'],
174
                        'table' => $auth_courante['gsab_nom_table'],
181
                        'table' => $auth_courante['gsab_nom_table'],
175
                        'usernamecol' => $auth_courante['gsab_nom_champ_login'],
182
                        'usernamecol' => $auth_courante['gsab_nom_champ_login'],
176
                        'passwordcol' => $auth_courante['gsab_nom_champ_mdp'],
183
                        'passwordcol' => $auth_courante['gsab_nom_champ_mdp'],
177
                        'cryptType' => $auth_courante['gsab_cryptage_mdp'],
184
                        'cryptType' => $auth_courante['gsab_cryptage_mdp'],
178
                        'db_fields' => '*');
185
                        'db_fields' => '*');
179
    // L'authentification courrante
186
    // L'authentification courrante
180
    $GLOBALS['_GEN_commun']['pear_auth'] = new Auth('DB', $GLOBALS['_PAPYRUS_']['auth']['param_bdd'], 'GEN_afficherInfoIdentification', 1);
187
    $GLOBALS['_GEN_commun']['pear_auth'] = new Auth('DB', $GLOBALS['_PAPYRUS_']['auth']['param_bdd'], 'GEN_afficherInfoIdentification', 1);
181
    
188
 
182
} else if ($auth_courante['gsa_ce_type_auth'] == 2) {
189
} else if ($auth_courante['gsa_ce_type_auth'] == 2) {
183
    // Authentification via LDAP
190
    // Authentification via LDAP
184
    $GLOBALS['_PAPYRUS_']['auth']['param_ldap'] = array (   'host' => $auth_courante['gsal_serveur'],
191
    $GLOBALS['_PAPYRUS_']['auth']['param_ldap'] = array (   'host' => $auth_courante['gsal_serveur'],
185
                            'port' => $auth_courante['gsal_port'],
192
                            'port' => $auth_courante['gsal_port'],
186
                            'basedn' => $auth_courante['gsal_base_dn'],
193
                            'basedn' => $auth_courante['gsal_base_dn'],
187
                            'userattr' => $auth_courante['gsal_uid']);
194
                            'userattr' => $auth_courante['gsal_uid']);
188
    $GLOBALS['_GEN_commun']['pear_auth'] = new Auth('LDAP', $GLOBALS['_PAPYRUS_']['auth']['param_ldap'], 'GEN_afficherInfoIdentification', 1);
195
    $GLOBALS['_GEN_commun']['pear_auth'] = new Auth('LDAP', $GLOBALS['_PAPYRUS_']['auth']['param_ldap'], 'GEN_afficherInfoIdentification', 1);
189
} else {
196
} else {
190
    die('ERREUR Papyrus : type identification introuvable. <br />'.
197
    die('ERREUR Papyrus : type identification introuvable. <br />'.
191
        'Type identification : '.$auth_courante['gsa_ce_type_auth'].'<br />'.
198
        'Type identification : '.$auth_courante['gsa_ce_type_auth'].'<br />'.
192
        'Ligne n° : '. __LINE__ . '<br />'.
199
        'Ligne n° : '. __LINE__ . '<br />'.
193
        'Fichier : '. __FILE__ . '<br />');
200
        'Fichier : '. __FILE__ . '<br />');
194
}
201
}
195
 
202
 
196
// +------------------------------------------------------------------------------------------------------+
203
// +------------------------------------------------------------------------------------------------------+
197
// Nous allouons le niveau de sécurité
204
// Nous allouons le niveau de sécurité
198
$GLOBALS['_GEN_commun']['pear_auth']->setAdvancedSecurity(PAP_AUTH_SECURITE_AVANCEE);
205
$GLOBALS['_GEN_commun']['pear_auth']->setAdvancedSecurity(PAP_AUTH_SECURITE_AVANCEE);
199
 
206
 
200
// +------------------------------------------------------------------------------------------------------+
207
// +------------------------------------------------------------------------------------------------------+
201
// Démarage de la session
208
// Démarage de la session
202
$GLOBALS['_GEN_commun']['pear_auth']->start();
209
$GLOBALS['_GEN_commun']['pear_auth']->start();
203
 
210
 
204
/* +--Fin du code ---------------------------------------------------------------------------------------+
211
/* +--Fin du code ---------------------------------------------------------------------------------------+
205
* $Log: not supported by cvs2svn $
212
* $Log: not supported by cvs2svn $
206
* Revision 1.25  2007-04-13 09:41:09  neiluj
213
* Revision 1.25  2007-04-13 09:41:09  neiluj
207
* réparration cvs
214
* réparration cvs
208
*
215
*
209
* Revision 1.24  2006/12/14 15:25:22  jp_milcent
216
* Revision 1.24  2006/12/14 15:25:22  jp_milcent
210
* Correction de la gestion des noms de session pour fonctionner avec Auth 1.4.3.
217
* Correction de la gestion des noms de session pour fonctionner avec Auth 1.4.3.
211
*
218
*
212
* Revision 1.23  2006/12/14 15:01:05  jp_milcent
219
* Revision 1.23  2006/12/14 15:01:05  jp_milcent
213
* Utilisation d'un système permettant de mémoriser les idenitifications.
220
* Utilisation d'un système permettant de mémoriser les idenitifications.
214
* Passage à Auth 1.4.3 et DB 1.7.6.
221
* Passage à Auth 1.4.3 et DB 1.7.6.
215
*
222
*
216
* Revision 1.22  2006/11/20 17:29:42  jp_milcent
223
* Revision 1.22  2006/11/20 17:29:42  jp_milcent
217
* Suppression du code de gestion de l'identification Spip et Wikini car non fonctionnel et finalement géré dans les appli tierces.
224
* Suppression du code de gestion de l'identification Spip et Wikini car non fonctionnel et finalement géré dans les appli tierces.
218
*
225
*
219
* Revision 1.21  2006/04/28 12:41:49  florian
226
* Revision 1.21  2006/04/28 12:41:49  florian
220
* corrections erreurs chemin
227
* corrections erreurs chemin
221
*
228
*
222
* Revision 1.20  2006/03/15 09:30:50  florian
229
* Revision 1.20  2006/03/15 09:30:50  florian
223
* suppression des echos, qui entrainaient des problemes d'affichages
230
* suppression des echos, qui entrainaient des problemes d'affichages
224
*
231
*
225
* Revision 1.19  2005/09/20 17:01:22  ddelon
232
* Revision 1.19  2005/09/20 17:01:22  ddelon
226
* php5 et bugs divers
233
* php5 et bugs divers
227
*
234
*
228
* Revision 1.18  2005/07/07 09:15:36  alexandre_tb
235
* Revision 1.18  2005/07/07 09:15:36  alexandre_tb
229
* mise en place de la co-authentification Wikini - papyrus.
236
* mise en place de la co-authentification Wikini - papyrus.
230
*  - ajout d'une requete pour récupérer le mot de passe
237
*  - ajout d'une requete pour récupérer le mot de passe
231
*
238
*
232
* Revision 1.17  2005/04/27 15:06:21  alex
239
* Revision 1.17  2005/04/27 15:06:21  alex
233
* ajout de l'authentification wiki.
240
* ajout de l'authentification wiki.
234
*
241
*
235
* Revision 1.16  2005/03/25 13:08:20  jpm
242
* Revision 1.16  2005/03/25 13:08:20  jpm
236
* Déplacement de la gestion des arguments de l'authentification.
243
* Déplacement de la gestion des arguments de l'authentification.
237
*
244
*
238
* Revision 1.15  2005/03/24 15:04:26  alex
245
* Revision 1.15  2005/03/24 15:04:26  alex
239
* ajout d'un appel à session_set_cookie_params pour allonger la durée de la session
246
* ajout d'un appel à session_set_cookie_params pour allonger la durée de la session
240
*
247
*
241
* Revision 1.14  2005/03/15 14:20:01  jpm
248
* Revision 1.14  2005/03/15 14:20:01  jpm
242
* Gestion des arguments de l'identification courante.
249
* Gestion des arguments de l'identification courante.
243
*
250
*
244
* Revision 1.13  2005/02/22 18:27:24  jpm
251
* Revision 1.13  2005/02/22 18:27:24  jpm
245
* Changement de nom de variables.
252
* Changement de nom de variables.
246
*
253
*
247
* Revision 1.12  2004/12/15 15:24:45  alex
254
* Revision 1.12  2004/12/15 15:24:45  alex
248
* suppression d'un notice
255
* suppression d'un notice
249
*
256
*
250
* Revision 1.11  2004/12/13 18:06:52  alex
257
* Revision 1.11  2004/12/13 18:06:52  alex
251
* authentification spip presque parfaite
258
* authentification spip presque parfaite
252
*
259
*
253
* Revision 1.10  2004/12/07 19:13:51  alex
260
* Revision 1.10  2004/12/07 19:13:51  alex
254
* authentification spip
261
* authentification spip
255
*
262
*
256
* Revision 1.7  2004/12/07 10:26:27  jpm
263
* Revision 1.7  2004/12/07 10:26:27  jpm
257
* Correction for en foreach.
264
* Correction for en foreach.
258
*
265
*
259
* Revision 1.6  2004/12/06 12:42:02  alex
266
* Revision 1.6  2004/12/06 12:42:02  alex
260
* en cours
267
* en cours
261
*
268
*
262
* Revision 1.5  2004/12/06 12:12:28  jpm
269
* Revision 1.5  2004/12/06 12:12:28  jpm
263
* Début de gestion des auth multiples.
270
* Début de gestion des auth multiples.
264
*
271
*
265
* Revision 1.4  2004/10/25 16:28:47  jpm
272
* Revision 1.4  2004/10/25 16:28:47  jpm
266
* Ajout de nouvelles balises Papyrus, ajout vérification mise à jour de Papyrus, meilleure gestion des sessions...
273
* Ajout de nouvelles balises Papyrus, ajout vérification mise à jour de Papyrus, meilleure gestion des sessions...
267
*
274
*
268
* Revision 1.3  2004/10/15 18:29:19  jpm
275
* Revision 1.3  2004/10/15 18:29:19  jpm
269
* Modif pour gérer l'appli installateur de Papyrus.
276
* Modif pour gérer l'appli installateur de Papyrus.
270
*
277
*
271
* Revision 1.2  2004/06/30 07:23:36  jpm
278
* Revision 1.2  2004/06/30 07:23:36  jpm
272
* Ajout d'un commentaire.
279
* Ajout d'un commentaire.
273
*
280
*
274
* Revision 1.1  2004/06/16 08:12:01  jpm
281
* Revision 1.1  2004/06/16 08:12:01  jpm
275
* Changement de nom de Génésia en Papyrus.
282
* Changement de nom de Génésia en Papyrus.
276
* Changement de l'arborescence.
283
* Changement de l'arborescence.
277
*
284
*
278
* Revision 1.6  2004/05/01 11:40:21  jpm
285
* Revision 1.6  2004/05/01 11:40:21  jpm
279
* Suppression de code intégré dans le fichier de l'applette Identification.
286
* Suppression de code intégré dans le fichier de l'applette Identification.
280
*
287
*
281
* Revision 1.5  2004/04/28 12:04:31  jpm
288
* Revision 1.5  2004/04/28 12:04:31  jpm
282
* Changement du modèle de la base de données.
289
* Changement du modèle de la base de données.
283
*
290
*
284
* Revision 1.4  2004/04/22 08:29:11  jpm
291
* Revision 1.4  2004/04/22 08:29:11  jpm
285
* Transformation de $GS_GLOBAL en $_GEN_commun.
292
* Transformation de $GS_GLOBAL en $_GEN_commun.
286
*
293
*
287
* Revision 1.3  2004/04/09 16:20:33  jpm
294
* Revision 1.3  2004/04/09 16:20:33  jpm
288
* Gestion de l'authentification uniquement.
295
* Gestion de l'authentification uniquement.
289
* Gestion des tables i18n.
296
* Gestion des tables i18n.
290
*
297
*
291
* Revision 1.2  2004/04/02 16:29:58  jpm
298
* Revision 1.2  2004/04/02 16:29:58  jpm
292
* Ajout de la gestion de la déconnexion et reconnexion.
299
* Ajout de la gestion de la déconnexion et reconnexion.
293
*
300
*
294
* Revision 1.1  2004/04/02 08:54:58  jpm
301
* Revision 1.1  2004/04/02 08:54:58  jpm
295
* Création du fichier qui contient l'initialisation des objets Pear, hormis la base de données.
302
* Création du fichier qui contient l'initialisation des objets Pear, hormis la base de données.
296
*
303
*
297
* +--Fin du code ----------------------------------------------------------------------------------------+
304
* +--Fin du code ----------------------------------------------------------------------------------------+
298
*/
305
*/
299
?>
306
?>