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.20 2006-03-15 09:30:50 florian Exp $
|
24 |
// CVS : $Id: pap_initialise_auth.inc.php,v 1.21 2006-04-28 12:41:49 florian 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.20 $ $Date: 2006-03-15 09:30:50 $
|
40 |
*@version $Revision: 1.21 $ $Date: 2006-04-28 12:41:49 $
|
41 |
// +------------------------------------------------------------------------------------------------------+
|
41 |
// +------------------------------------------------------------------------------------------------------+
|
42 |
*/
|
42 |
*/
|
Line 43... |
Line 43... |
43 |
|
43 |
|
44 |
// +------------------------------------------------------------------------------------------------------+
|
44 |
// +------------------------------------------------------------------------------------------------------+
|
45 |
// | ENTÊTE du PROGRAMME |
|
45 |
// | ENTÊTE du PROGRAMME |
|
Line 46... |
Line 46... |
46 |
// +------------------------------------------------------------------------------------------------------+
|
46 |
// +------------------------------------------------------------------------------------------------------+
|
47 |
|
47 |
|
Line 48... |
Line 48... |
48 |
/** <br> Inclusion de l'authentification de PEAR.*/
|
48 |
/** <br> Inclusion de l'authentification de PEAR.*/
|
49 |
include_once 'Auth/Auth.php';
|
49 |
include_once PAP_CHEMIN_API_PEAR.'Auth/Auth.php';
|
50 |
|
50 |
|
51 |
/** Inclusion de la bibliothèque de fonctions d'identification.
|
51 |
/** Inclusion de la bibliothèque de fonctions d'identification.
|
Line 275... |
Line 275... |
275 |
} else {
|
275 |
} else {
|
276 |
$id_session = preg_replace("/[0-9]+_/", $userid."_", $HTTP_COOKIE_VARS["spip_session"]) ;
|
276 |
$id_session = preg_replace("/[0-9]+_/", $userid."_", $HTTP_COOKIE_VARS["spip_session"]) ;
|
277 |
setcookie('spip_session', $id_session, time() + 3600 * 24 * 30, "/$chemin_cookie_spip/") ;
|
277 |
setcookie('spip_session', $id_session, time() + 3600 * 24 * 30, "/$chemin_cookie_spip/") ;
|
278 |
}
|
278 |
}
|
Line 279... |
Line 279... |
279 |
|
279 |
|
Line 280... |
Line 280... |
280 |
set_include_path(get_include_path().':'.$chemin_spip);
|
280 |
//set_include_path(get_include_path().':'.$chemin_spip);
|
281 |
|
281 |
|
282 |
include_once 'ecrire/inc_db_mysql.php3';
|
282 |
include_once $chemin_spip.'ecrire/inc_db_mysql.php3';
|
Line 283... |
Line 283... |
283 |
include_once 'ecrire/inc_version.php3';
|
283 |
include_once $chemin_spip.'ecrire/inc_version.php3';
|
284 |
ob_flush();// Nécessaire car spip utilise un ob_start() et cela cause un plantage
|
284 |
ob_flush();// Nécessaire car spip utilise un ob_start() et cela cause un plantage
|
Line 308... |
Line 308... |
308 |
}
|
308 |
}
|
Line 309... |
Line 309... |
309 |
|
309 |
|
310 |
|
310 |
|
- |
|
311 |
/* +--Fin du code ---------------------------------------------------------------------------------------+
|
- |
|
312 |
* $Log: not supported by cvs2svn $
|
- |
|
313 |
* Revision 1.20 2006/03/15 09:30:50 florian
|
311 |
/* +--Fin du code ---------------------------------------------------------------------------------------+
|
314 |
* suppression des echos, qui entrainaient des problemes d'affichages
|
312 |
* $Log: not supported by cvs2svn $
|
315 |
*
|
313 |
* Revision 1.19 2005/09/20 17:01:22 ddelon
|
316 |
* Revision 1.19 2005/09/20 17:01:22 ddelon
|
314 |
* php5 et bugs divers
|
317 |
* php5 et bugs divers
|
315 |
*
|
318 |
*
|