*** $query
\n"); $row = pmb_mysql_fetch_array($result); $demandeemail= "

".$msg['mdp_txt_intro_demande']."


  
"; print "
"; $email = str_replace("%", "", $email); if ($demande!="ok" || $email=='') { // Mettre ici le formulaire de saisie de l'email print $demandeemail ; } elseif ($email) { $query = "SELECT id_empr, empr_login, empr_password, empr_location,empr_mail,concat(empr_prenom,' ',empr_nom) as nom_prenom FROM empr WHERE empr_mail like '%".$email."%'"; if($empr_firstname_name) { $query .= " AND concat(empr_prenom,' ',empr_nom) = '".addslashes($empr_firstname_name)."'"; } $result = pmb_mysql_query($query) or die ("*** Erreur dans la requête
*** $query
\n"); if (pmb_mysql_num_rows($result) > 1) { print "

".$msg['mdp_txt_intro_demande']."


   "; print "

".$msg['mdp_txt_multiple_accounts']."


"; while ($row = pmb_mysql_fetch_object($result)) { print "

 ".$row->nom_prenom."


" ; } print "
"; } elseif (pmb_mysql_num_rows($result)==1) { $res_envoi = false; $row = pmb_mysql_fetch_object($result); $emails_empr = explode(";",$row->empr_mail); for ($i=0; $i"; $emprunteur = new emprunteur($row->id_empr); $res_envoi = $emprunteur->forgotten_password_email(strtolower($emails_empr[$i])); if (!$res_envoi) { print "

Could not send information to $emails_empr[$i].


" ; } else { print "

".$msg['mdp_sent_ok']." $emails_empr[$i].


" ; } } } if (!$res_envoi) { print "

".str_replace("!!biblioemail!!","$opac_biblio_email",$msg['mdp_no_email'])."

" ; print $demandeemail ; } } else { print "

".str_replace("!!biblioemail!!","$opac_biblio_email",$msg['mdp_no_email'])."

" ; print $demandeemail ; } } print "
"; //insertions des liens du bas dans le $footer si $opac_show_liensbas if ($opac_show_liensbas==1) $footer = str_replace("!!div_liens_bas!!",$liens_bas,$footer); else $footer = str_replace("!!div_liens_bas!!",$liens_bas_disabled,$footer); if ($opac_show_bandeau_2==0) { $bandeau_2_contains= ""; } else { $bandeau_2_contains= "
!!contenu_bandeau_2!!
"; } //affichage du bandeau de gauche si $opac_show_bandeaugauche = 1 if ($opac_show_bandeaugauche==0) { $footer= str_replace("!!contenu_bandeau!!",$bandeau_2_contains,$footer); $footer= str_replace("!!contenu_bandeau_2!!",$opac_facette_in_bandeau_2?$lvl1.$facette:"",$footer); } else { $footer = str_replace("!!contenu_bandeau!!","
!!contenu_bandeau!!
".$bandeau_2_contains,$footer); $home_on_left=str_replace("!!welcome_page!!",$msg["welcome_page"],$home_on_left); $adresse=str_replace("!!common_tpl_address!!",$msg["common_tpl_address"],$adresse); $adresse=str_replace("!!common_tpl_contact!!",$msg["common_tpl_contact"],$adresse); // loading the languages avaiable in OPAC - martizva >> Eric require_once($base_path.'/includes/languages.inc.php'); $home_on_left = str_replace("!!common_tpl_lang_select!!", show_select_languages("empr.php"), $home_on_left); if (!$_SESSION["user_code"]) { $loginform=str_replace('','

'.$msg['common_tpl_login_invite'].'

',$loginform); $loginform__ = genere_form_connexion_empr(); } else { $loginform=str_replace('','',$loginform); $loginform__ ="".$empr_prenom." ".$empr_nom."
\n"; if($opac_quick_access) { $loginform__.= quick_access::get_selector(); $loginform__.="
"; } else { $loginform__.="".$msg["empr_my_account"]."
"; } if(!$opac_quick_access_logout || !$opac_quick_access){ $loginform__.="".$msg["empr_logout"].""; } } $loginform = str_replace("!!login_form!!",$loginform__,$loginform); $footer= str_replace("!!contenu_bandeau!!",($opac_accessibility ? $accessibility : "").$home_on_left.$loginform.$meteo.$adresse,$footer); $footer= str_replace("!!contenu_bandeau_2!!",$opac_facette_in_bandeau_2?$lvl1.$facette:"",$footer); } //Enregistrement du log global $pmb_logs_activate; if($pmb_logs_activate){ global $log; $log->add_log('num_session',session_id()); $log->save(); } cms_build_info(array( 'input' => 'askmdp.php', )); /* Fermeture de la connexion */ pmb_mysql_close($dbh);