",$logo_rss_si_rss,$liens_bas);
$std_header = str_replace("!!enrichment_headers!!","",$std_header);
if($opac_parse_html || $cms_active){
ob_start();
}
print $std_header;
if ($time_expired ==1) {
echo "";
} elseif ($time_expired==2) {
echo "";
}
if (((($opac_cart_allow)&&(!$opac_cart_only_for_subscriber))||(($opac_cart_allow)&&($_SESSION["user_code"])))&&($lvl!="show_cart"))
print "
";
else
print "";
echo "";
switch($subsact) {
case 'validation':
$verif=verif_validation_compte();
echo $verif[1];
break;
case 'inscrire':
if ($captcha_code) {
$securimage = new Securimage();
if ($securimage->check($captcha_code)) {
// set the session
$_SESSION['image_is_logged_in'] = true;
// remove the random value from session
$_SESSION['image_random_value'] = '';
$verif=verif_validite_compte();
echo $verif[1];
} else {
// set the session
$_SESSION['image_is_logged_in'] = false;
// remove the random value from session
$_SESSION['image_random_value'] = '';
// Raté on repart...
echo $msg['subs_pb_wrongcode'] ;
echo generate_form_inscription() ;
}
} else {
// vide
echo $msg['subs_pb_wrongcode'] ;
echo generate_form_inscription() ;
}
break;
case '':
default:
$subsact='';
echo generate_form_inscription() ;
break;
}
echo "
";
//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);
//affichage du bandeau_2 si $opac_show_bandeau_2 = 1
if ($opac_show_bandeau_2==0) {
$bandeau_2_contains= "";
} else {
$bandeau_2_contains= "!!contenu_bandeau_2!!
";
}
//si ce n'est pas un popup qui est affiché, alors on affiche $footer
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 available in OPAC - martizva >> Eric
require_once($base_path.'/includes/languages.inc.php');
$home_on_left = str_replace("!!common_tpl_lang_select!!", show_select_languages("index.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);
}
cms_build_info(array(
'input' => 'subscribe.php',
));
pmb_mysql_close();