Esempio n. 1
0
		function lire_config($cfg='', $def=null, $unserialize=true) {
			include_spip('configurer/pipelines');
			return spip_bonux_lire_config($cfg, $def, $unserialize);
		}
Esempio n. 2
0
function spip_bonux_configurer_lire_meta($form,&$valeurs) {
	list($table,$casier,$prefixe) = spip_bonux_definir_configurer_conteneur($form,$valeurs);

	$prefixe = ($prefixe?$prefixe.'_':'');
	if ($casier) {
		$meta = spip_bonux_lire_config("/$table/$prefixe$casier");
		$prefixe = '';
	}
	else {
		$meta = spip_bonux_lire_config("/$table");
	}

	foreach($valeurs as $k=>$v){
		if (substr($k,0,1)!=='_')
		$valeurs[$k] = (isset($meta[$prefixe.$k])?$meta[$prefixe.$k]:'');
	}
}