Modules
Liste des modules FIBEN / FCC
Recherche FICP
Recherche FCC
Recherche FIBEN
*/
?>
log($service, 'service');
$firephp->log($module, 'module');
$func_module = 'bdf_modules_'.$service;
$listModules = $func_module();
//Vérifier que le module existe
if(array_key_exists($module, $listModules))
{
$rech = array();
$rech = array(
'denom' => $denom,
'type' => $type,
'code' => $code,
'rechet' => $rechet,
'ape' => $ape,
);
//http://protectel.scrypto.fr/iBDF/RequeteLanceur.php?Etablissement=12345&Guichet=00001&Utilisateur=Dupont&MDP=&Profil=Agence&Service=FIBEN&Denom=peugeot&Req=&TypeOp=07
$url = bdf_lien_module($module, $service, $req, $rech);
if($module=='07'){
$filename = false;
}
else
{
$filename = PATH_DATA.'/bdf/bdf_'.$service.'_'.$req.'_'.$module.'.html';
}
if($filename!==false && file_exists($filename))
{
$content = file_get_contents($filename);
}
else
{
$content = trim(bdf_loadpage($url));
if( !empty($content) && $filename!==false )
{
if(!file_exists(PATH_DATA.'/bdf')) mkdir(PATH_DATA.'/bdf');
file_put_contents($filename, $content);
}
}
}
$titreModule = $module.'. '.$listModules[$module]['titre'];
?>
Module =$titreModule?>