*** $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"; //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= "
*** $query
\n"); if (pmb_mysql_num_rows($result) > 1) { print "".$msg['mdp_txt_intro_demande']."
"; } 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 "