";
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");
$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']="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);
//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!!","