Merge depuis trunk

This commit is contained in:
Michael RICOIS 2012-03-22 08:59:39 +00:00
commit 7fce855550
11 changed files with 988 additions and 46 deletions

View File

@ -1,5 +0,0 @@
<?php
class AdministrationController extends Zend_Controller_Action
{
}

View File

@ -1,10 +1,6 @@
<?php
class IndexController extends Zend_Controller_Action
{
public function init()
{
/* Initialize action controller here */
}
public function indexAction()
{
@ -26,6 +22,9 @@ class IndexController extends Zend_Controller_Action
}
}
/**
* Retourne l'url pour le csv d'export du portefeuille
*/
public function portefeuillecsvAction()
{
$this->_helper->layout()->disableLayout();

View File

@ -79,7 +79,7 @@ class LogoController extends Zend_Controller_Action
if ($request->isPost())
{
$jpeg_quality = 90;
$png_quality = 90;
$png_quality = 9;
list($name, $ext) = explode('.', $image);

View File

@ -1,8 +1,45 @@
<style>
#identifiant {
float:left;
width:40%;
}
#modules {
float:left;
width:40%;
}
#listeModules {
position:absolute;
width:500px;
display:none;
background-color:#FBF7AA;
border:1px solid #000000;
z-index:3;
}
#closelisteModules {
float:right;
padding:0.4em 1em;
}
#listeModules ul {
width:100%;
margin-left:-10px;
list-style-type:none;
}
#listeModules ul li {
display:inline;
float:left;
width:50%;
}
</style>
<div id="center">
<h1>Banque de France - Modules</h1>
<h2>Recherche FIBEN / FCC identifiant unique</h2>
<div class="blockh2">
<div class="paragraph">
<form name="rFibenU" method="post" action="/?page=bdf">
<input type="hidden" name="type" value="u"/>
<input type="hidden" name="siret" value="<?=$this->siret?>"/>
@ -80,7 +117,7 @@ foreach ($this->listModulesFcc as $id => $module) {
<br/>
<h2>Recherche FIBEN / FCC identifiants multiples</h2>
<div class="blockh2">
<div class="paragraph">
<form name="rFibenM" method="post" action="/?page=bdf">
<input type="hidden" name="type" value="m"/>
<input type="hidden" name="siret" value="<?=$siret?>"/>
@ -113,7 +150,7 @@ foreach ($this->listModulesFcc as $id => $module) {
<br/>
<h2>Recherche FICP</h2>
<div class="blockh2">
<div class="paragraph">
<form name="rFicp" method="post" action="./?page=bdf">
<input type="hidden" name="module" value="G"/>
<input type="hidden" name="service" value="ficp"/>
@ -123,4 +160,31 @@ foreach ($this->listModulesFcc as $id => $module) {
</form>
</div>
</div>
</div>
<script>
$(document).ready(function(){
$('#listeModulesD').click(function(){
var position = $(this).position();
$('#listeModules').css('top', position.top);
$('#listeModules').css('left', position.left-200);
var display = $('#listeModules').css('display');
if(display=='none') $('#listeModules').css('display', 'block');
else $('#listeModules').css('display', 'none');
});
$('#closelisteModules').click(function(){
$('#listeModules').css('display', 'none');
$('#modules > #selected').html('');
$('input[name="module[]"]').each(function(){
if ($(this).prop('checked')){
$('#modules > #selected').append('<br/>'+$(this).parent().text());
}
});
});
$('#addIdentifiant').click(function(){
$('form[name=rFibenM] > #identifiant').append('<br/><label>Identifiant</label> <input type="text" name="identifiant[]" />');
});
});
</script>

View File

@ -1,3 +1,40 @@
<style>
#identifiant {
float:left;
width:40%;
}
#modules {
float:left;
width:40%;
}
#listeModules {
position:absolute;
width:500px;
display:none;
background-color:#FBF7AA;
border:1px solid #000000;
z-index:3;
}
#closelisteModules {
float:right;
padding:0.4em 1em;
}
#listeModules ul {
width:100%;
margin-left:-10px;
list-style-type:none;
}
#listeModules ul li {
display:inline;
float:left;
width:50%;
}
</style>
<div id="center">
<h1 class="titre"></h1>
@ -9,29 +46,3 @@
</div>
<script>
$(document).ready(function(){
$('#listeModulesD').click(function(){
var position = $(this).position();
$('#listeModules').css('top', position.top);
$('#listeModules').css('left', position.left-200);
var display = $('#listeModules').css('display');
if(display=='none') $('#listeModules').css('display', 'block');
else $('#listeModules').css('display', 'none');
});
$('#closelisteModules').click(function(){
$('#listeModules').css('display', 'none');
$('#modules > #selected').html('');
$('input[name="module[]"]').each(function(){
if ($(this).prop('checked')){
$('#modules > #selected').append('<br/>'+$(this).parent().text());
}
});
});
$('#addIdentifiant').click(function(){
$('form[name=rFibenM] > #identifiant').append('<br/><label>Identifiant</label> <input type="text" name="identifiant[]" />');
});
});
</script>

View File

@ -41,8 +41,7 @@ Votre fichier : <input type="file" name="fichier" />
</form>
<div id="progressbar"></div>
<div id="uploadOutput"></div>
<script type="text/javascript" src="/themes/default/scripts/jquery.form.js">
</script type="text/javascript">
<script type="text/javascript" src="/themes/default/scripts/jquery.form.js" />
<script>
$('#uploadForm').ajaxForm({
beforeSubmit: function() {

View File

@ -1,8 +1,8 @@
<?php if ($this->isPost) :?>
<div style="text-align:center;">';
<div style="text-align:center;">
<img src="/fichier/logo/<?=$this->image?>"/>
<br/>';
<br/>
<a href="<?=$this->url(array('controller'=>'logo','action'=>'delete','image'=>$this->image))?>" id="logo_delete">
Supprimer le logo existant</a>
</div>

193
library/Giant/Giant.php Normal file
View File

@ -0,0 +1,193 @@
<?php
class Giant
{
protected $config;
protected $customerId = null;
protected $ProviderId = '';
protected $CountryCode;
protected $pays = array(
'FR' => '006',
'BE' => '001',
'ES' => '001',
'GB' => '002',
'NL' => '003'
);
protected $DataSetType = array (
'Full' => 'FU',
'Compact' => 'CO',
'CreditRecommendation' => 'CR',
'Flex' => 'FL',
);
public function __construct()
{
$this->config = new Zend_Config_Ini( realpath(dirname(__FILE__)).'/config.ini' );
}
public function setInfos($login, $country)
{
$this->customerId = $login;
$this->CountryCode = $country;
$this->ProviderId = $pays[$country];
}
public function Search($query = '', $position = 0, $nbRep = 10)
{
$params = new stdClass();
$params->Query = $query;
$params->IncludePhoneticMatches = false;
$params->IncludeSuggestions = false;
$params->StartRow = $position;
$params->NumRows = $nbRep;
$client = $this->loadClient('search');
try {
return $client->Search($params);
} catch (SoapFault $fault) {
return $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse());
}
}
public function AdvancedSearch($fields, $position = 0, $nbRep = 10)
{
$params = new stdClass();
$query = new stdClass();
$fieldList = array(
'CompanyId', 'RegisteredName', 'Building', 'Street', 'HouseNumber', 'City', 'PostCode',
'State', 'Country', 'EntireAddress', 'VatNumber', 'CompanyRegisterNumber', 'CompanyWebSite',
'CompanyEmail', 'ParentCompany', 'LegalForm', 'NaceCodes', 'PreviousRegisteredName',
'TelephoneNumbers', 'AddressType'
);
foreach ( $fields as $name => $value ) {
if ( in_array($name, $fieldList) ) {
$query->{$name} = $value;
}
}
$params->Query = $query;
$params->IncludeSuggestions = false;
$params->StartRow = $position;
$params->NumRows = $nbRep;
$client = $this->loadClient('search');
try {
return $client->Search($params);
} catch (SoapFault $fault) {
return $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse());
}
}
public function RetrieveOptions($CompanyId)
{
$params = new stdClass();
$params->CompanyId = $CompanyId;
$client = $this->loadClient('credit-data');
try {
return $client->RetrieveOptions($params);
} catch (SoapFault $fault) {
return $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse());
}
}
public function OrderDataSet($CompanyId, $type, $LanguageCode = 'en')
{
$params = new stdClass();
$params->CompanyId = $CompanyId;
$params->DataSetType = $this->DataSetType[$type];
$params->DataSetVersion = '1.0';
$params->LanguageCode = $LanguageCode;
$client = $this->loadClient('credit-data');
try {
return $client->OrderDataSet($params);
} catch (SoapFault $fault) {
return $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse());
}
}
public function RetrieveDataSet($InternalOrderId)
{
$parametres = new stdClass();
$parametres->InternalOrderId = $InternalOrderId;
$client = $this->loadClient('credit-data');
try {
return $client->RetrieveDataSet($params);
} catch (SoapFault $fault) {
return $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse());
}
}
public function RetrieveOrderStatus($InternalOrderId)
{
$params = new stdClass();
$params->InternalOrderId = $InternalOrderId;
$client = $this->loadClient('credit-data');
try {
return $client->RetrieveOrderStatus($params);
} catch (SoapFault $fault) {
return $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse());
}
}
public function Ping($Type)
{
$params = new stdClass();
$params->Type = $Type;
try {
return $client->Ping($params);
} catch (SoapFault $fault) {
return $this->soaperror(__FUNCTION__, $fault, $client->__getLastRequest(), $client->__getLastResponse());
}
}
/**
* loadClient
* @param unknown_type $webservice
*/
protected function loadClient($webservice, $test = false)
{
if ($test) {
$webservice = $this->config['webservices']->test;
} else {
$webservice = $this->config['webservices']->prod;
}
$wsdl = $webservice->{$webservice}->wsdl;
$options = $webservice->options;
$options['features'] = SOAP_USE_XSI_ARRAY_TYPE + SOAP_SINGLE_ELEMENT_ARRAYS;
$options['compression'] = SOAP_COMPRESSION_ACCEPT | SOAP_COMPRESSION_GZIP | SOAP_COMPRESSION_DEFLATE;
$options['trace'] = true;
$options['encoding'] = 'utf-8';
$options['login'] = $webservice->login;
$options['password'] = $webservice->password;
$client = new SoapClient($wsdl, $options);
//Set Soap Headers
$header = new stdClass();
$header->ConsumerId = $this->wsService->header->ConsumerId;
$header->CustomerId = ($this->customerId===null) ? $this->wsService->header->CustomerId : $this->customerId ;
$header->Provider = new stdClass();
$header->Provider->ProviderId = $this->ProviderId;
$header->Provider->CountryCode = $this->CountryCode;
$header->TimeStamp = time();
$header->TestIndication = $test;
$soapheader = new SoapHeader(
$webservice->{$webservice}->header->namespace,
$webservice->{$webservice}->header->serviceName,
$header
);
$client->__setSoapHeaders($soapheader);
return $client;
}
/**
* Gestion des erreurs soap provenant de giant
*/
protected function soaperror($method, $fault, $requete, $reponse)
{
return false;
}
}

25
library/Giant/config.ini Normal file
View File

@ -0,0 +1,25 @@
[webservices]
; Paramètres pour le webservice de production
prod.search.wsdl = "https://services.giant-net.com/search/v1?wsdl"
prod.credit-data.wsdl = "https://services.giant-net.com/credit-data/v1?wsdl"
prod.header.namespace = "http://services.giant-net.com/schema/services/shared/1.0";
prod.header.serviceName = "ServiceHeader";
prod.header.ConsumerId = "006"
prod.header.CustomerId = "UNKNOWN"
prod.options.soap_version = SOAP_1_1
prod.login = '006'
prod.password = 'mZ0kXvQ03tPC1'
; Paramètres pour le webservice de test
test.search.wsdl = "http://giant-tst.graydon.nl/search/v1?wsdl"
test.credit-data.wsdl = "https://services.giant-net.com/credit-data/v1?wsdl"
test.header.namespace = "http://services.giant-net.com/schema/services/shared/1.0";
test.header.serviceName = "ServiceHeader";
test.header.ConsumerId = "006"
test.header.CustomerId = "UNKNOWN"
test.options.soap_version = SOAP_1_1
test.login = '006'
test.password = 'ClaudeMonet'

View File

@ -850,7 +850,7 @@ class Infogreffe
$result['num_gest']['dossier_statut'].'-'.
$result['num_gest']['dossier_chrono'].'-'.
$result['num_depot'];
foreach($actes as $acte)
{
if(!empty($acte['date_acte'])){ $date = $acte['date_acte']; }
@ -862,7 +862,7 @@ class Infogreffe
//Si le fichier existe, on modifie l'url
if( file_exists($this->pathData.'/pdf/'.$fichier) ){
$acte['url_access'] = $fichier;
$acte['url_acces'] = $fichier;
}else{
$fichierdl = $this->dl($fichier, $acte['url_acces']);
$acte['url_acces'] = $fichierdl;

656
library/Scores/Bdf.php Normal file
View File

@ -0,0 +1,656 @@
<?php
require_once 'common/curl.php';
class BDF
{
protected $host = 'http://protectel.scrypto.fr';
protected $page = '/iBDF/RequeteLanceur.php';
protected $filetime = 8;
public function __construct(){}
// --------------------------------------------------------------------------- //
// enleveLiens
// --------------------------------------------------------------------------- //
function enleveLiens($contenu, $discriminant)
{
$pos1 = 0;
while (($pos1 = strpos($contenu, '<a ', $pos1)) != false) {
$pos2 = strpos($contenu, '</a>', $pos1);
if ($pos2 == false) {
break;
}
$pos2 += 4;
if (substr_count($contenu, $discriminant, $pos1, $pos2 - $pos1) > 0) {
$pos3 = strpos($contenu, '>', $pos1) + 1;
if ($pos3 == $pos2 - 1) {
$pos1 = $pos2;
continue;
}
$rep = strip_tags(substr($contenu, $pos3, $pos2 - $pos3 - 4));
$contenu = substr_replace($contenu, $rep, $pos1, $pos2 - $pos1);
$pos1 += strlen($rep);
} else {
$pos1 = $pos2;
}
}
return $contenu;
}
function bdf_loadpage($url)
{
$page = getUrl($url, '', '', '', false, '', '',15);
//Fichier non disponible
if($page['code']==408 || $page['code']==400){
$output = false;
//Ecriture du fichier sur le serveur en local
}else{
$body = $page['body'];
$output = $body;
}
$output = utf8_encode($output);
//file_put_contents(PATH_SITE.'/cache/bdf/test.html', $output);
$output = preg_replace('/(.*)\<html/', '<html', $output);
$output = bdf_removeblock($output);
$output = removeTag('html', $output, true, false);
$output = removeTag('head', $output, true, false);
$output = removeTag('body', $output, true, false);
$output = removeTag('meta', $output, false, false);
$output = removeTag('title', $output, true, true);
$output = removeTag('script', $output, true, true);
//$output = changeLinkToLowerCase($output);
$output = bdf_lien_siren($output);
$output = stripslashes($output);
return $output;
}
function bdf_removeblock($content)
{
$output = $content;
$output = enleveLiens($output, '#nullepart');
$output = enleveLiens($output, 'window.print');
$output = str_replace('/PROTECTEL/FIBEN20110207/',
$this->host.'/PROTECTEL/FIBEN20110207/', $output);
return $output;
}
function removeTag($balise, $content, $endOfTag = true, $removeContent = true)
{
if( $endOfTag )
{
if( $removeContent)
$output = preg_replace('@<'.$balise.'[^>]*?>.*?</'.$balise.'>@si','',$content);
else
$output = preg_replace(array('@<'.$balise.'[^>]*?>@', '@</'.$balise.'>@'),'',$content);
}
else
{
$output = preg_replace('@<'.$balise.'[^>]*?>@','',$content);
}
return $output;
}
function changeLinkToLowerCase($content)
{
//$pattern = "/\< *[img][^\>]*[href] *= *[\"\']{0,1}([^\"\'\ >]*)/i";
$pattern = '/(\<img[^>].*?>)/ie';
$replace = "strtolower('\\1')";
$content = preg_replace($pattern,$replace,$content);
$pattern = '/(\<script[^>].*?>)/ie';
$replace = "strtolower('\\1')";
$content = preg_replace($pattern,$replace,$content);
$pattern = '/(\<link[^>].*?>)/ie';
$replace = "strtolower('\\1')";
$content = preg_replace($pattern,$replace,$content);
$pattern = '/(\<table[^>].*?>)/ie';
$replace = "strtolower('\\1')";
$content = preg_replace($pattern,$replace,$content);
return $content;
}
function bdf_lien_module($id, $service = 'fiben', $req = '', $rech = array() )
{
$func_module = 'bdf_modules_'.$service;
$modules = $func_module();
$params = array();
if(is_array($rech) && count($rech)>0){
foreach($rech as $key => $val)
{
${$key} = $val;
}
}
//Paramètres URL
foreach($modules[$id]['params'] as $mparams => $fparams)
{
$addParams = array();
//Paramètres de chaque fonction
$func_params = array();
if(is_array($fparams)){
foreach($fparams as $fparam)
{
$func_params[] = ${$fparam};
}
}
$addParams = call_user_func_array('bdf_param_'.$mparams, $func_params);
//Rassemblement de tout les paramètres
$params = array_merge($params, $addParams);
}
//Paramètres sous format URL
$output = '';
foreach($params as $key => $value)
{
if(!empty($output)) $output.= '&';
$output.= $key.'='.$value;
}
return $this->host.$this->page.'?'.$output;
}
function bdf_lien_siren($c)
{
$p = '/(width="160" class="clFond".*)([0-9]{3} [0-9]{3} [0-9]{3} [0-9]{5})/';
$r = '$1<a href="./?page=identite&siret=$2">$2</a>';
$c = preg_replace($p, $r, $c);
$p = '/(class="clGrasFond".*)([0-9]{3} [0-9]{3} [0-9]{3})/';
$r = '$1<a href="./?page=identite&siret=$2">$2</a>';
$c = preg_replace($p, $r, $c);
$p = '/(width="130" class="clFond".*)([0-9]{3} [0-9]{3} [0-9]{3})/';
$r = '$1<a href="./?page=identite&siret=$2">$2</a>';
$c = preg_replace($p, $r, $c);
$p = '/(class="clFond" width="80".*)([0-9]{3} [0-9]{3} [0-9]{3})/';
$r = '$1<a href="./?page=identite&siret=$2">$2</a>';
$c = preg_replace($p, $r, $c);
$p = '/(class="clTexte" width="184".*)([0-9]{3} [0-9]{3} [0-9]{3})/';
$r = '$1<a href="./?page=identite&siret=$2">$2</a>';
$c = preg_replace($p, $r, $c);
$p = '/(class="clFond" width="255".*)([0-9]{3} [0-9]{3} [0-9]{3})/';
$r = '$1<a href="./?page=identite&siret=$2">$2</a>';
$c = preg_replace($p, $r, $c);
$c = stripslashes($c);
return $c;
}
function bdf_lien_clebdf()
{
//Détection des clebdf
//Remplacement du lien
}
function bdf_lien_plusinfos()
{
}
function bdf_param_banque()
{
return array(
'Etablissement' => '12345',
'Guichet' => '00001',
);
}
function bdf_param_utilisateur()
{
return array(
'Utilisateur' => 'Dupont', //$_SESSION['tabInfo']['login']
'MDP' => '', //$_SESSION['tabInfo']['password']
);
}
function bdf_param_profil()
{
return array(
'Profil' => 'Agence',
);
}
function bdf_param_service($service = 'FIBEN')
{
return array(
'Service' => strtoupper($service),
);
}
function bdf_param_req($req)
{
return array(
'Req' => $req,
);
}
function bdf_param_typeop($id)
{
return array(
'TypeOp' => $id,
);
}
function bdf_param_denom($denom)
{
return array(
'Denom' => $denom,
);
}
function bdf_param_type($type)
{
return array(
'Type' => $type,
);
}
function bdf_param_code($code)
{
return array(
'Code' => $code,
);
}
function bdf_param_rechet($rechet)
{
if(empty($rechet)) $output = 'N';
else $output = 'O';
return array(
'RechEt' => $output,
);
}
function bdf_param_ape($ape)
{
return array(
'APE' => $ape,
);
}
function bdf_modules_fiben()
{
return array(
'27' => array(
'titre' => '27. Panorama',
'params' => array(
'banque' => array(),
'utilisateur' => array(),
'profil' => array(),
'service' => array(),
'req' => array('req'),
'typeop' => array('id')
),
),
'28'=> array(
'titre' => '28. Concours Bancaires',
'params' => array(
'banque' => array(),
'utilisateur' => array(),
'profil' => array(),
'service' => array(),
'req' => array('req'),
'typeop' => array('id')
),
),
'29'=> array(
'titre' => '29. Impayés',
'params' => array(
'banque' => array(),
'utilisateur' => array(),
'profil' => array(),
'service' => array(),
'req' => array('req'),
'typeop' => array('id')
),
),
'30'=> array(
'titre' => '30. Concours Bancaires gpe',
'params' => array(
'banque' => array(),
'utilisateur' => array(),
'profil' => array(),
'service' => array(),
'req' => array('req'),
'typeop' => array('id')
),
),
'37'=> array(
'titre' => '37. Cotation',
'params' => array(
'banque' => array(),
'utilisateur' => array(),
'profil' => array(),
'service' => array(),
'req' => array('req'),
'typeop' => array('id')
),
),
'38'=> array(
'titre' => '38. Score',
'params' => array(
'banque' => array(),
'utilisateur' => array(),
'profil' => array(),
'service' => array(),
'req' => array('req'),
'typeop' => array('id')
),
),
'40'=> array(
'titre' => '40. Relations Bancaires',
'params' => array(
'banque' => array(),
'utilisateur' => array(),
'profil' => array(),
'service' => array(),
'req' => array('req'),
'typeop' => array('id')
),
),
'41'=> array(
'titre' => '41. Etablissement secondaires',
'params' => array(
'banque' => array(),
'utilisateur' => array(),
'profil' => array(),
'service' => array(),
'req' => array('req'),
'typeop' => array('id')
),
),
'45'=> array(
'titre' => '45. Jugements',
'params' => array(
'banque' => array(),
'utilisateur' => array(),
'profil' => array(),
'service' => array(),
'req' => array('req'),
'typeop' => array('id')
),
),
'51'=> array(
'titre' => '51. Dirigeants',
'params' => array(
'banque' => array(),
'utilisateur' => array(),
'profil' => array(),
'service' => array(),
'req' => array('req'),
'typeop' => array('id')
),
),
'52'=> array(
'titre' => '52. Capital',
'params' => array(
'banque' => array(),
'utilisateur' => array(),
'profil' => array(),
'service' => array(),
'req' => array('req') ,
'typeop' => array('id')
),
),
'54'=> array(
'titre' => '54. Participation',
'params' => array(
'banque' => array(),
'utilisateur' => array(),
'profil' => array(),
'service' => array(),
'req' => array('req'),
'typeop' => array('id')
),
),
'56'=> array(
'titre' => '56. Fonction De Direction',
'params' => array(
'banque' => array(),
'utilisateur' => array(),
'profil' => array(),
'service' => array(),
'req' => array('req'),
'typeop' => array('id')
),
),
'57'=> array(
'titre' => '57. Orga liens financiers',
'params' => array(
'banque' => array(),
'utilisateur' => array(),
'profil' => array(),
'service' => array(),
'req' => array('req'),
'typeop' => array('id')
),
),
'58'=> array(
'titre' => '58. Orga liens de direction',
'params' => array(
'banque' => array(),
'utilisateur' => array(),
'profil' => array(),
'service' => array(),
'req' => array('req'),
'typeop' => array('id')
),
),
'60'=> array(
'titre' => '60. Bilan Synthètique',
'params' => array(
'banque' => array(),
'utilisateur' => array(),
'profil' => array(),
'service' => array(),
'req' => array('req'),
'typeop' => array('id')
),
),
'62'=> array(
'titre' => '62. SIG',
'params' => array(
'banque' => array(),
'utilisateur' => array(),
'profil' => array(),
'service' => array(),
'req' => array('req'),
'typeop' => array('id')
),
),
'63'=> array(
'titre' => '63. Tableaux des flux',
'params' => array(
'banque' => array(),
'utilisateur' => array(),
'profil' => array(),
'service' => array(),
'req' => array('req'),
'typeop' => array('id')
),
),
'64'=> array(
'titre' => '64. Ratios',
'params' => array(
'banque' => array(),
'utilisateur' => array(),
'profil' => array(),
'service' => array(),
'req' => array('req'),
'typeop' => array('id')
),
),
'66'=> array(
'titre' => '66. Chiffres Consolidés',
'params' => array(
'banque' => array(),
'utilisateur' => array(),
'profil' => array(),
'service' => array(),
'req' => array('req'),
'typeop' => array('id')
),
),
'67'=> array(
'titre' => '67. Comptes Consolidés',
'params' => array(
'banque' => array(),
'utilisateur' => array(),
'profil' => array(),
'service' => array(),
'req' => array('req'),
'typeop' => array('id')
),
),
'68'=> array(
'titre' => '68. Dossier Comptable',
'params' => array(
'banque' => array(),
'utilisateur' => array(),
'profil' => array(),
'service' => array(),
'req' => array('req'),
'typeop' => array('id')
),
),
'69'=> array(
'titre' => '69. Liasse Fiscale',
'params' => array(
'banque' => array(),
'utilisateur' => array(),
'profil' => array(),
'service' => array(),
'req' => array('req'),
'typeop' => array('id')
),
),
'70'=> array(
'titre' => '70. Eléments de risque',
'params' => array(
'banque' => array(),
'utilisateur' => array(),
'profil' => array(),
'service' => array(),
'req' => array('req'),
'typeop' => array('id')
),
),
'72'=> array(
'titre' => '72. Diagnostic Synthètique',
'params' => array(
'banque' => array(),
'utilisateur' => array(),
'profil' => array(),
'service' => array(),
'req' => array('req'),
'typeop' => array('id')
),
),
'DE'=> array(
'titre' => 'DE. Dossier Découverte',
'params' => array(
'banque' => array(),
'utilisateur' => array(),
'profil' => array(),
'service' => array(),
'req' => array('req'),
'typeop' => array('id')
),
),
'07'=> array(
'titre' => '07. Recherche',
'params' => array(
'banque' => array(),
'utilisateur' => array(),
'profil' => array(),
'service' => array(),
'typeop' => array('id'),
'denom' => array('denom'),
'type' => array('type'),
'code' => array('code'),
'rechet' => array('rechet'),
'ape' => array('ape'),
),
'liste' => false,
),
);
}
function bdf_modules_fcc()
{
return array(
'G'=> array(
'titre' => 'FCC Simplifié',
'params' => array(
'banque' => array(),
'utilisateur' => array(),
'profil' => array(),
'service' => array('service'),
'req' => array('req'),
'typeop' => array('id')
),
),
'D'=> array(
'titre' => 'FCC Détaillé',
'params' => array(
'banque' => array(),
'utilisateur' => array(),
'profil' => array(),
'service' => array('service'),
'req' => array('req'),
'typeop' => array('id')
),
),
);
}
function bdf_modules_ficp()
{
return array(
'G'=> array(
'titre' => 'FICP',
'params' => array(
'banque' => array(),
'utilisateur' => array(),
'profil' => array(),
'service' => array('service'),
'req' => array('req'),
'typeop' => array('id')
),
),
);
}
function bdf_filetimeover($fichier)
{
$timeover = false;
$dateFile = filemtime($fichier);
$now = mktime(date('G'), date('i'), date('s'), date('m') , date('d'), date('Y'));
$maxTime = mktime(date('G',$dateFile)+$this->filetime, date('i',$dateFile), date('s',$dateFile), date("m",$dateFile), date("d",$dateFile), date("Y",$dateFile));
if($now>$maxTime) $timeover = true;
return $timeover;
}
}