Subversion Repositories Sites.tela-botanica.org

Compare Revisions

Ignore whitespace Rev 291 → Rev 292

/trunk/actu/authentification.php
43,7 → 43,10
include_once dirname(realpath(__FILE__)).'/../papyrus/configuration/pap_config.inc.php' ;
include_once PAP_CHEMIN_API_PEAR.'Auth.php' ;
include_once 'DB.php' ;
include_once 'Net/URL.php' ;
 
$NetUrl = new Net_URL();
$url = $NetUrl->getUrl();
// Connection à la base de donnée
$GLOBALS['db'] =& DB::connect(PAP_DSN) ;
 
50,7 → 53,7
// Cette variable contiendra le javascript de validation des formulaires
$GLOBALS['javascript'] = '' ;
 
$url = $_SERVER['REQUEST_URI'] ;
 
if ($_SERVER['SCRIPT_NAME'] == '/actu/index.php') {
$url .= 'sommaire.php3' ;
}
90,11 → 93,12
$GLOBALS['identification']->start();
 
// On teste si la variable logout existe, si oui, on deconnecte
if (isset($logout) && $logout != '') {
if (isset($logout) && $logout != '' && $GLOBALS['identification']->checkAuth()) {
// On place les cookies avec une durée dépassée
setcookie('spip_session', '', time() - 3600, '/actu/') ;
setcookie('spip_admin', '', time() - 3600, '/actu/') ;
$GLOBALS['identification']->logout();
$NetUrl->removeQueryString('logout');
}
 
include_once 'spip_cookie.php' ;
/trunk/actu/incl_identification_ellipse.html
3,9 → 3,8
include_once 'papyrus/applettes/identification/identification.php';
include_once 'api/debogage/BOG_sql.fonct.php';
include_once 'papyrus/bibliotheque/fonctions/pap_identification.fonct.php';
include_once 'Net/URL.php' ;
 
$GLOBALS['_GEN_commun']['url'] = new Net_URL($url);
$GLOBALS['_GEN_commun']['url'] = $NetUrl;
$GLOBALS['_GEN_commun']['pear_db'] = DB::connect (PAP_DSN);
$GLOBALS['_GEN_commun']['pear_auth'] =& $GLOBALS['identification'];
$GLOBALS['_GEN_commun']['info_auth_bdd']->chp_personne_prenom = 'U_SURNAME';