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'); 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; } //TOUT EST CHARGE, on va au plus simple... $elems = explode("/",$_SERVER['PATH_INFO']); require_once($class_path."/autoloader.class.php"); $autoloader = new autoloader(); $autoloader->add_register("cms_modules",true); if(file_exists('./temp/'.$elems[1])) { $content = unserialize(file_get_contents('./temp/'.$elems[1])); $jsonsource = new $content['classname']($content['id']); $jsonsource->set_datas($content['datas']); $jsonsource->set_nb_row($content['nb_row']); // header('Content-Type: application/json'); print encoding_normalize::json_encode($jsonsource->store_proceed($content)); }