getFromCache($db_parameters_datetime); $cache_up_to_date = pmb_sql_value("select if ((SELECT IF(UPDATE_TIME IS NULL,'3000-01-01 01:01:01',UPDATE_TIME) from information_schema.tables where table_schema='".DATA_BASE."' and table_name='parametres' ) >= '".$tmp_parameters_datetime."', 0, 1)"); if ($tmp_parameters_datetime && $cache_up_to_date) { $nxtweb_params = $cache->getFromCache($db_parameters_name); foreach( $nxtweb_params as $param_name => $param_value ) { global ${$param_name}; // Les fichiers config_local et opac_config_local ne sot pas définition jamais lus en même temps, donc on doit revérifier ici pour être sur de ne pas avoir une surcharge manquante if(isset($overload_global_parameters[$param_name])){ ${$param_name} = $overload_global_parameters[$param_name]; }else{ ${$param_name} = $param_value; } } } else { $requete_param = "SELECT type_param, sstype_param, valeur_param FROM parametres "; $res_param = pmb_mysql_query($requete_param); while ($field_values = pmb_mysql_fetch_row( $res_param )) { $field = $field_values[0]."_".$field_values[1] ; global ${$field}; if(isset($overload_global_parameters[$field])){ ${$field} = $overload_global_parameters[$field]; }else { ${$field} = $field_values[2]; } $nxtweb_params[$field] = ${$field}; } if(count($nxtweb_params)){ $cache->setInCache($db_parameters_datetime, pmb_sql_value("select now()")); $cache->setInCache($db_parameters_name, $nxtweb_params); } } }else{ $requete_param = "SELECT type_param, sstype_param, valeur_param FROM parametres "; $res_param = pmb_mysql_query($requete_param, $dbh); while ($field_values = pmb_mysql_fetch_row( $res_param )) { $field = $field_values[0]."_".$field_values[1] ; global ${$field}; if(isset($overload_global_parameters[$field])){ ${$field} = $overload_global_parameters[$field]; }else { ${$field} = $field_values[2]; } } } /* param pmb_indexation_lang empty_words */ if (!$pmb_indexation_lang) { $requete_param = "SELECT valeur_param FROM parametres "; $requete_param .="WHERE type_param='pmb' and sstype_param='indexation_lang'"; $res_param = pmb_mysql_query($requete_param, $dbh); if ($field_values = pmb_mysql_fetch_row( $res_param )) { if ($field_values[0] != '') $pmb_indexation_lang = $field_values[0]; } } if (!$pmb_indexation_lang) $pmb_indexation_lang = $lang; require_once($include_path."/marc_tables/".$pmb_indexation_lang."/empty_words"); require_once($class_path."/semantique.class.php"); //ajout des mots vides calcules $add_empty_words=semantique::add_empty_words(); if ($add_empty_words) eval($add_empty_words); //Affichage des erreurs PHP if(isset($pmb_display_errors) && $pmb_display_errors) { ini_set('display_errors', $pmb_display_errors); }