getHeaders(),$std_header); } else { $std_header = str_replace("!!enrichment_headers!!","",$std_header); } print $std_header ; include($base_path.'/includes/navigator.inc.php'); } $popup_resa = 1 ; if ($log_ok) { switch($lvl) { case 'make_sugg' : if ($allow_sugg || $opac_show_suggest==2) { include($base_path.'/includes/make_sugg.inc.php'); } else { print $msg['empr_no_allow_sugg']; } break; case 'valid_sugg' : if ($allow_sugg || $opac_show_suggest==2) { include($base_path.'/includes/valid_sugg.inc.php'); } else { print $msg['empr_no_allow_sugg']; } break; case 'resa_planning' : if ($allow_book && $opac_resa && $opac_resa_planning==1) { include($base_path.'/includes/resa_planning.inc.php'); } else { print $msg['empr_no_allow_book']; } break; case 'resa_cart': if(!empty($id_notice) && $pmb_logs_activate) { notice::recup_notice_infos($id_notice); } if ($allow_book && $opac_resa){ include($base_path.'/includes/resa_cart.inc.php'); }else{ print $msg['empr_no_allow_book']; } break; default: case 'resa': if($pmb_logs_activate) { if (!empty($id_bulletin)) { } elseif (!empty($id_notice)) { notice::recup_notice_infos($id_notice); } } if ($allow_book && $opac_resa) { include($base_path.'/includes/resa.inc.php'); } else { print $msg['empr_no_allow_book']; } break; } } else { if (!$time_expired) { $erreur_session = '' ; if ($login) { print '
'.$msg['empr_bad_login'].'


'; print do_formulaire_connexion(); } else { print do_formulaire_connexion(); } } elseif ($time_expired==1) { print '
'.sprintf($msg['session_expired'],round($opac_duration_session_auth/60)).'


'; print do_formulaire_connexion() ; } else { //$time_expired == 2 print '
'.sprintf($msg['anonymous_session_expired'],round($opac_duration_session_auth/60)).'


'; print do_formulaire_connexion() ; } } if ($erreur_session) { print $erreur_session ; } if ($opac_resa_popup) { print $popup_footer; } else { //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.'
'; 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); $footer=str_replace('!!cms_build_info!!','',$footer); } print $footer ; } global $pmb_logs_activate; if($pmb_logs_activate){ //Enregistrement du log global $log, $infos_expl, $infos_notice; if($_SESSION['user_code']) { $res=pmb_mysql_query($log->get_empr_query()); if($res){ $empr_carac = pmb_mysql_fetch_array($res); $log->add_log('empr',$empr_carac); } } $log->add_log('num_session',session_id()); $log->add_log('expl',$infos_expl); $log->add_log('docs',$infos_notice); $log->save(); } 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 */ pmb_mysql_close();