*** $query
\n"); $row = 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 empr_login, empr_password, empr_location,empr_mail,concat(empr_prenom,' ',empr_nom) as nom_prenom FROM empr WHERE empr_mail like '%".$email."%'"; $result = mysql_query($query) or die ("*** Erreur dans la requête
*** $query
\n"); if (mysql_num_rows($result)!=0) { $res_envoi = false; while ($row = mysql_fetch_object ($result)) { $emails_empr = explode(";",$row->empr_mail); for ($i=0; $i*** $query_loc
\n"); $info_loc = mysql_fetch_object ($result_loc) ; $biblio_name_temp=$info_loc->name ; $biblio_email_temp=$info_loc->email ; } else { $biblio_name_temp=$opac_biblio_name; $biblio_email_temp=$opac_biblio_email; } $headers = "MIME-Version: 1.0\n"; $headers .= "Content-type: text/html; charset=iso-8859-1\n"; // Pour faire suite à votre demande, nous vous prions de trouver ci-dessous vos informations de connexion pour !!biblioname!! :
-Identifiant: !!login!!
-Mot de passe: !!password!!

Si vous rencontrez des difficultés, adressez un mail à !!biblioemail!!. $messagemail = $msg[mdp_mail_body] ; $messagemail = str_replace("!!login!!",$row->empr_login,$messagemail); $messagemail = str_replace("!!password!!",$row->empr_password,$messagemail); $messagemail = str_replace("!!biblioname!!","".$biblio_name_temp."",$messagemail); $messagemail = str_replace("!!biblioemail!!","$biblio_email_temp",$messagemail); $objetemail = str_replace("!!biblioname!!",$biblio_name_temp,$msg[mdp_mail_obj]); print "
"; if($opac_parse_html){ $objetemail = parseHTML($objetemail); $messagemail = parseHTML($messagemail); $biblio_name_temp = parseHTML($biblio_name_temp); $biblio_email_temp = parseHTML($biblio_email_temp); } $res_envoi=@mailpmb(trim($row->nom_prenom), $emails_empr[$i],$objetemail,$messagemail,$biblio_name_temp, $biblio_email_temp, $headers); 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!!","",$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__.="".$empr_prenom." ".$empr_nom."
\n"; $loginform__.="".$msg["empr_my_account"]."
".$msg["empr_logout"].""; } $loginform = str_replace("!!login_form!!",$loginform__,$loginform); $footer= str_replace("!!contenu_bandeau!!",$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=""; if($cms_build_activate || $_SESSION["cms_build_activate"]){ // issu de la gestion if($pageid){ require_once($base_path."/classes/cms/cms_pages.class.php"); $cms_page= new cms_page($pageid); $cms_build_info['page']=$cms_page->get_env(); } global $log, $infos_notice, $infos_expl, $nb_results_tab; $cms_build_info['input']="askmdp.php"; $cms_build_info['session']=$_SESSION; $cms_build_info['post']=$_POST; $cms_build_info['get']=$_GET; $cms_build_info['lvl']=$lvl; $cms_build_info['tab']=$tab; $cms_build_info['log']=$log; $cms_build_info['infos_notice']=$infos_notice; $cms_build_info['infos_expl']=$infos_expl; $cms_build_info['nb_results_tab']=$nb_results_tab; $cms_build_info['search_type_asked']=$search_type_asked; $cms_build_info=rawurlencode(serialize($cms_build_info)); $cms_build_info= ""; $cms_build_info.=" "; $_SESSION["cms_build_activate"]="1"; } $footer=str_replace("!!cms_build_info!!",$cms_build_info,$footer); print $footer; if($opac_parse_html || $cms_active){ if($opac_parse_html){ $htmltoparse= parseHTML(ob_get_contents()); }else{ $htmltoparse= ob_get_contents(); } ob_end_clean(); if ($cms_active) { require_once($base_path."/classes/cms/cms_build.class.php"); $cms=new cms_build(); $htmltoparse = $cms->transform_html($htmltoparse); } print $htmltoparse; } /* Fermeture de la connexion */ mysql_close($dbh);