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= '