| 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.23 2006-12-14 15:01:05 jp_milcent Exp $
|
24 |
// CVS : $Id: pap_initialise_auth.inc.php,v 1.24 2006-12-14 15:25:22 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.
|
| 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.23 $ $Date: 2006-12-14 15:01:05 $
|
40 |
*@version $Revision: 1.24 $ $Date: 2006-12-14 15:25:22 $
|
| 41 |
// +------------------------------------------------------------------------------------------------------+
|
41 |
// +------------------------------------------------------------------------------------------------------+
|
| 42 |
*/
|
42 |
*/
|
| Line 43... |
Line 43... |
| 43 |
|
43 |
|
| 44 |
// +------------------------------------------------------------------------------------------------------+
|
44 |
// +------------------------------------------------------------------------------------------------------+
|
| Line 60... |
Line 60... |
| 60 |
// +------------------------------------------------------------------------------------------------------+
|
60 |
// +------------------------------------------------------------------------------------------------------+
|
| Line 61... |
Line 61... |
| 61 |
|
61 |
|
| 62 |
// +------------------------------------------------------------------------------------------------------+
|
62 |
// +------------------------------------------------------------------------------------------------------+
|
| Line -... |
Line 63... |
| - |
|
63 |
// Gestion de l'identification des utilisateurs et des sessions
|
| 63 |
// Gestion de l'identification des utilisateurs et des sessions
|
64 |
|
| 64 |
|
65 |
|
| Line 65... |
Line 66... |
| 65 |
// +------------------------------------------------------------------------------------------------------+
|
66 |
// +------------------------------------------------------------------------------------------------------+
|
| 66 |
// Récupération des informations d'identification pour le site courant
|
67 |
// Récupération des informations d'identification pour le site courant
|
| Line 158... |
Line 159... |
| 158 |
$GLOBALS['_PAPYRUS_']['auth'][$ligne_auth->gsa_id_auth]['type_site_externe'] = $type_site_externe;
|
159 |
$GLOBALS['_PAPYRUS_']['auth'][$ligne_auth->gsa_id_auth]['type_site_externe'] = $type_site_externe;
|
| 159 |
}
|
160 |
}
|
| 160 |
}
|
161 |
}
|
| 161 |
$resultat_auth->free();
|
162 |
$resultat_auth->free();
|
| Line -... |
Line 163... |
| - |
|
163 |
|
| - |
|
164 |
// +------------------------------------------------------------------------------------------------------+
|
| - |
|
165 |
// Définition du nom de la session
|
| - |
|
166 |
session_name(PAP_AUTH_SESSION_PREFIXE.$GLOBALS['_GEN_commun']['info_auth']->gsa_abreviation);
|
| - |
|
167 |
|
| 162 |
|
168 |
// +------------------------------------------------------------------------------------------------------+
|
| 163 |
// Nour regardons à quel type d'identification nous avons à faire:
|
169 |
// Nour regardons à quel type d'identification nous avons à faire:
|
| 164 |
$auth_courante = $GLOBALS['_PAPYRUS_']['auth'][$GLOBALS['_GEN_commun']['info_site']->gs_ce_auth] ;
|
170 |
$auth_courante = $GLOBALS['_PAPYRUS_']['auth'][$GLOBALS['_GEN_commun']['info_site']->gs_ce_auth] ;
|
| 165 |
if ($auth_courante['gsa_ce_type_auth'] == 1) {
|
171 |
if ($auth_courante['gsa_ce_type_auth'] == 1) {
|
| 166 |
// Authentification via une base de données
|
172 |
// Authentification via une base de données
|
| Line 186... |
Line 192... |
| 186 |
'Ligne n° : '. __LINE__ . '<br />'.
|
192 |
'Ligne n° : '. __LINE__ . '<br />'.
|
| 187 |
'Fichier : '. __FILE__ . '<br />');
|
193 |
'Fichier : '. __FILE__ . '<br />');
|
| 188 |
}
|
194 |
}
|
| Line 189... |
Line 195... |
| 189 |
|
195 |
|
| 190 |
// +------------------------------------------------------------------------------------------------------+
|
196 |
// +------------------------------------------------------------------------------------------------------+
|
| 191 |
// Définition du nom de la session
|
- |
|
| 192 |
session_name(PAP_AUTH_SESSION_PREFIXE.$GLOBALS['_GEN_commun']['info_auth']->gsa_abreviation);
|
- |
|
| 193 |
$GLOBALS['_GEN_commun']['pear_auth']->setSessionName(session_name());
|
197 |
// Nous allouons le niveau de sécurité
|
| Line -... |
Line 198... |
| - |
|
198 |
$GLOBALS['_GEN_commun']['pear_auth']->setAdvancedSecurity(PAP_AUTH_SECURITE_AVANCEE);
|
| 194 |
$GLOBALS['_GEN_commun']['pear_auth']->setAdvancedSecurity(PAP_AUTH_SECURITE_AVANCEE);
|
199 |
|
| 195 |
|
200 |
// +------------------------------------------------------------------------------------------------------+
|
| Line 196... |
Line 201... |
| 196 |
// Démarage de la session
|
201 |
// Démarage de la session
|
| 197 |
$GLOBALS['_GEN_commun']['pear_auth']->start();
|
202 |
$GLOBALS['_GEN_commun']['pear_auth']->start();
|
| - |
|
203 |
|
| - |
|
204 |
/* +--Fin du code ---------------------------------------------------------------------------------------+
|
| - |
|
205 |
* $Log: not supported by cvs2svn $
|
| - |
|
206 |
* Revision 1.23 2006/12/14 15:01:05 jp_milcent
|
| 198 |
|
207 |
* Utilisation d'un système permettant de mémoriser les idenitifications.
|
| 199 |
/* +--Fin du code ---------------------------------------------------------------------------------------+
|
208 |
* Passage à Auth 1.4.3 et DB 1.7.6.
|
| 200 |
* $Log: not supported by cvs2svn $
|
209 |
*
|
| 201 |
* Revision 1.22 2006/11/20 17:29:42 jp_milcent
|
210 |
* Revision 1.22 2006/11/20 17:29:42 jp_milcent
|
| 202 |
* Suppression du code de gestion de l'identification Spip et Wikini car non fonctionnel et finalement géré dans les appli tierces.
|
211 |
* Suppression du code de gestion de l'identification Spip et Wikini car non fonctionnel et finalement géré dans les appli tierces.
|