Subversion Repositories Applications.papyrus

Rev

Rev 443 | Rev 832 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 443 Rev 775
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.19 2005-09-20 17:01:22 ddelon Exp $
24
// CVS : $Id: pap_initialise_auth.inc.php,v 1.20 2006-03-15 09:30:50 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.19 $ $Date: 2005-09-20 17:01:22 $
40
*@version           $Revision: 1.20 $ $Date: 2006-03-15 09:30:50 $
41
// +------------------------------------------------------------------------------------------------------+
41
// +------------------------------------------------------------------------------------------------------+
42
*/
42
*/
Line 43... Line 43...
43
 
43
 
44
// +------------------------------------------------------------------------------------------------------+
44
// +------------------------------------------------------------------------------------------------------+
Line 225... Line 225...
225
                            $GLOBALS['_PAPYRUS_']['auth'][$coauth]['gsab_nom_champ_login'].'='.
225
                            $GLOBALS['_PAPYRUS_']['auth'][$coauth]['gsab_nom_champ_login'].'='.
226
                            '"'.$GLOBALS['_GEN_commun']['pear_auth']->getUsername().'"' ;
226
                            '"'.$GLOBALS['_GEN_commun']['pear_auth']->getUsername().'"' ;
Line 227... Line 227...
227
    
227
    
228
    $resultat_mot_passe = $db->query($requete_mot_passe) ;
228
    $resultat_mot_passe = $db->query($requete_mot_passe) ;
229
    if (DB::isError($resultat_mot_passe)) {
229
    if (DB::isError($resultat_mot_passe)) {
230
        echo 'erreur de la requete pour identifier sur wikini' ;
230
        $res = 'erreur de la requete pour identifier sur wikini' ;
231
    }
231
    }
232
    $ligne_mot_passe = $resultat_mot_passe->fetchRow(DB_FETCHMODE_ASSOC) ;
232
    $ligne_mot_passe = $resultat_mot_passe->fetchRow(DB_FETCHMODE_ASSOC) ;
Line 233... Line 233...
233
    $mot_de_passe = $ligne_mot_passe[$GLOBALS['_PAPYRUS_']['auth'][$coauth]['gsab_nom_champ_mdp']];
233
    $mot_de_passe = $ligne_mot_passe[$GLOBALS['_PAPYRUS_']['auth'][$coauth]['gsab_nom_champ_mdp']];
Line 300... Line 300...
300
    
300
    
301
    if ($f = fopen($fichier_session, "wb")) {
301
    if ($f = fopen($fichier_session, "wb")) {
302
        fputs($f, $texte);
302
        fputs($f, $texte);
303
        fclose($f);
303
        fclose($f);
304
    } else {
304
    } else {
305
        echo 'erreur dans l ecriture de la session SPIP' ;
305
        $res = 'erreur dans l ecriture de la session SPIP' ;
306
    }
306
    }
307
    //ajouter_session($GLOBALS['auteur_session'], $id_session) ;
307
    //ajouter_session($GLOBALS['auteur_session'], $id_session) ;
Line 308... Line 308...
308
}
308
}
309
 
309
 
-
 
310
 
-
 
311
/* +--Fin du code ---------------------------------------------------------------------------------------+
-
 
312
* $Log: not supported by cvs2svn $
310
 
313
* Revision 1.19  2005/09/20 17:01:22  ddelon
311
/* +--Fin du code ---------------------------------------------------------------------------------------+
314
* php5 et bugs divers
312
* $Log: not supported by cvs2svn $
315
*
313
* Revision 1.18  2005/07/07 09:15:36  alexandre_tb
316
* Revision 1.18  2005/07/07 09:15:36  alexandre_tb
314
* mise en place de la co-authentification Wikini - papyrus.
317
* mise en place de la co-authentification Wikini - papyrus.