",$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) echo ""; echo "
"; switch($subsact) { case 'validation': $verif=verif_validation_compte(); echo $verif[1]; break; case 'inscrire': if ($f_verifcode) { if (md5($f_verifcode) == $_SESSION['image_random_value']) { // 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 $msg[subs_intro_services]; echo str_replace("!!nb_h_valid!!",$opac_websubscribe_valid_limit,$msg[subs_intro_explication]); 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!!","",$footer); $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"); $page= new cms_page($pageid); $cms_build_info['page']=$page->get_env(); } global $log, $infos_notice, $infos_expl, $nb_results_tab; $cms_build_info['input']="subscribe.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); //si ce n'est pas un popup qui est affiché, alors on affiche $footer if ($opac_show_bandeaugauche==0) { print str_replace("!!contenu_bandeau!!","",$footer); } else { $footer = str_replace("!!contenu_bandeau!!","
!!contenu_bandeau!!
",$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__.="".$empr_prenom." ".$empr_nom."
\n"; $loginform__.="".$msg["empr_my_account"]."
".$msg["empr_logout"].""; } $loginform = str_replace("!!login_form!!",$loginform__,$loginform); print str_replace("!!contenu_bandeau!!",$home_on_left.$loginform.$meteo.$adresse,$footer); } if($opac_parse_html || $cms_active){ $htmltoparse= parseHTML(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; } mysql_close($dbh);