id){ $opac_view_class->set_parameters(); $opac_view_filter_class=$opac_view_class->opac_filters; $_SESSION["opac_view"]=$opac_view_class->id; if(!$opac_view_class->opac_view_wo_query) { $_SESSION['opac_view_query']=1; } }else { $_SESSION["opac_view"]=0; } $css=$_SESSION["css"]=$opac_default_style; } } // si paramétrage authentification particulière et pour la re-authentification ntlm if (file_exists($base_path.'/includes/ext_auth.inc.php')) require_once($base_path.'/includes/ext_auth.inc.php'); require_once($base_path."/includes/templates/common.tpl.php"); $main_file="./$module/ajax_main.inc.php"; switch($module) { case 'ajax': include($main_file); break; case 'expand_notice': include($main_file); break; case 'cms': include($main_file); break; case 'empr_extended': include("./includes/empr_extended.inc.php"); break; case "selectors": // classes pour la gestion des sélecteurs if(!isset($autoloader) || !is_object($autoloader)){ require_once($class_path."/autoloader.class.php"); $autoloader = new autoloader(); } $autoloader->add_register("selectors_class",true); require_once($base_path.'/selectors/classes/selector_controller.class.php'); if(!isset($user_input)) $user_input = ''; $selector_controller = new selector_controller(stripslashes($user_input)); $selector_controller->proceed(); break; default: $plugins = plugins::get_instance(); $file = $plugins->proceed_ajax($module, $plugin, $sub); if($file){ include $file; } break; } function array_uft8_decode($tab){ foreach($tab as $key => $val) { if(is_array($val)){ $tab[$key] = array_uft8_decode($val); }else{ $tab[$key] = utf8_decode($val); } } return $tab; } ?>