0 && $allow_avis==0) { $log_ok=1; $allow_avis=1; $allow_avis_ajout=false ; } // pour template des avis require_once($base_path.'/includes/templates/avis.tpl.php'); print $popup_header; if ($opac_avis_allow && !$allow_avis) die($popup_footer); print $avis_tpl_header ; switch($todo) { case 'liste' : default: if($noticeid) { if ($opac_notice_affichage_class) $notice_affichage=$opac_notice_affichage_class; else $notice_affichage="notice_affichage"; $notice=new $notice_affichage($noticeid); print $notice->avis_detail(); } if($articleid) { $cms_article = new cms_article($articleid); print $cms_article->get_display_avis_detail(); } if($sectionid) { $cms_section = new cms_section($sectionid); print $cms_section->get_display_avis_detail(); } break; } if (!$log_ok && $opac_avis_allow==2) { $lvl='avis_'.$todo; print do_formulaire_connexion(); } //Enregistrement du log global $pmb_logs_activate; if($pmb_logs_activate){ global $log; $log->add_log('num_session',session_id()); $log->save(); } print $popup_footer; /* Fermeture de la connexion */ pmb_mysql_close($dbh);