Subversion Repositories Sites.tela-botanica.org

Rev

Rev 4 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4 Rev 132
Line 90... Line 90...
90
    mysql_select_db ('tela_prod_v4') ;
90
    mysql_select_db ('tela_prod_v4') ;
91
    $resultat_mail = mysql_query ('select U_MAIL, U_ID from annuaire_tela where U_ID='.$userid) 
91
    $resultat_mail = mysql_query ('select U_MAIL, U_ID from annuaire_tela where U_ID='.$userid) 
92
                    or die ("Echec requete<br />".mysql_error());
92
                    or die ("Echec requete<br />".mysql_error());
93
    $ligne_mail = mysql_fetch_object ($resultat_mail) ;
93
    $ligne_mail = mysql_fetch_object ($resultat_mail) ;
Line 94... Line 94...
94
    
94
    
95
    $l = mysql_connect ('localhost', 'telabotap', '') ;
95
    $l = mysql_connect ('localhost', 'telabotap', 'ppo50cvb') ;
Line 96... Line 96...
96
    mysql_select_db ("tela_prod_spip_actu", $l) ;
96
    mysql_select_db ("tela_prod_spip_actu", $l) ;
97
    
97
    
98
    $requete_login = 'select login, id_auteur from tela_prod_spip_actu.spip_auteurs where email = "'.$ligne_mail->U_MAIL.'"' ;
98
    $requete_login = 'select login, id_auteur from tela_prod_spip_actu.spip_auteurs where email = "'.$ligne_mail->U_MAIL.'"' ;
Line 132... Line 132...
132
        
132
        
133
        setcookie("spip_session", $id_session, time()+3600*24*30, "/actu/") ;
133
        setcookie("spip_session", $id_session, time()+3600*24*30, "/actu/") ;
134
    }
134
    }
135
    ajouter_session_($GLOBALS['auteur_session'], $id_session, $ligne_login->id_auteur, $alea) ;
135
    ajouter_session_($GLOBALS['auteur_session'], $id_session, $ligne_login->id_auteur, $alea) ;
136
    // reconnection à la base botanica
136
    // reconnection à la base botanica
137
    $GS_GLOBAL['link'] = mysql_connect ('localhost', 'telabotap', '') ;
137
    $GS_GLOBAL['link'] = mysql_connect ('localhost', 'telabotap', 'ppo50cvb') ;
Line 138... Line 138...
138
    mysql_select_db ('tela_prod_v4') ;
138
    mysql_select_db ('tela_prod_v4') ;
Line 139... Line 139...
139
 
139