Suppression référence INCLUDE_PATH
This commit is contained in:
parent
c7ca364a52
commit
0e993e5a86
@ -5,12 +5,12 @@
|
||||
* Pour windows/wamp : include_path = ".;c:\wamp\bin\php\php-X.X.X\PEAR"
|
||||
* Pour serveur linux : include_path = ".:/usr/share/php"
|
||||
*/
|
||||
ini_set('include_path', ini_get('include_path') . PATH_SEPARATOR .
|
||||
ini_set('include_path', ini_get('include_path') . PATH_SEPARATOR .
|
||||
realpath(dirname(__FILE__) . '/../framework/') . PATH_SEPARATOR .
|
||||
realpath(dirname(__FILE__) . '/../includes/')
|
||||
);
|
||||
|
||||
/**
|
||||
/**
|
||||
* Fonction globale récupérant le microtime de la machine en format float.
|
||||
* @return float Valeur courante du microtime() de la machine en format décimal
|
||||
*/
|
||||
@ -41,15 +41,13 @@ define ('NOW_FORMAT', substr(DATETIME,8,2).':'.substr(DATETIME,10,2).':'.substr(
|
||||
* Les librairies suivantes sont chargées automatiquement car tous les scripts les utilisent !
|
||||
*/
|
||||
if( !defined('ROOT_PATH') )
|
||||
{
|
||||
{
|
||||
define ('ROOT_PATH', realpath(dirname(__FILE__) . '/../') );
|
||||
define ('WWW_PATH', realpath(ROOT_PATH.'/www/') );
|
||||
define ('LOG_PATH', realpath(ROOT_PATH.'/log/') );
|
||||
define ('INCLUDE_PATH', realpath(ROOT_PATH.'/includes/') );
|
||||
include_once realpath(INCLUDE_PATH.'/phplib/db_mysql.inc');
|
||||
include_once realpath(INCLUDE_PATH.'/auth/sessions.inc');
|
||||
//include_once realpath(INCLUDE_PATH.'/auth/sessions.local.inc');
|
||||
include_once realpath(ROOT_PATH.'/config/config.inc');
|
||||
require_once 'phplib/db_mysql.inc';
|
||||
require_once 'auth/sessions.inc';
|
||||
require_once realpath(ROOT_PATH.'/config/config.inc');
|
||||
}
|
||||
|
||||
//Debuggage
|
||||
@ -58,14 +56,14 @@ ob_start();
|
||||
$firephp = FirePHP::getInstance(true);
|
||||
|
||||
//Définition des options de configuration suivant le serveur
|
||||
if(ENVIRONNEMENT == 'PRD')
|
||||
if(ENVIRONNEMENT == 'PRD')
|
||||
{
|
||||
$firephp->setEnabled(false);
|
||||
ini_set('error_reporting', 0);
|
||||
}
|
||||
elseif(ENVIRONNEMENT == 'DEV')
|
||||
{
|
||||
$firephp->setEnabled(true); //Debuggage activé par defaut
|
||||
$firephp->setEnabled(true); //Debuggage activé par defaut
|
||||
//ini_set('error_reporting', E_ALL ^ E_NOTICE);
|
||||
}
|
||||
|
||||
@ -82,7 +80,7 @@ if ( LOG_BENCH != 'NONE' ){
|
||||
}
|
||||
}
|
||||
|
||||
/* @todo: A enlever pour la prod
|
||||
/* @todo: A enlever pour la prod
|
||||
$timer = new Benchmark_Timer();
|
||||
$timer->start();
|
||||
$timer->setMarker('Debut du script (prepend.php)');
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -2,9 +2,8 @@
|
||||
|
||||
//Chargement des prix
|
||||
$tabPaysPrix = array();
|
||||
$path = realpath(INCLUDE_PATH.'/graydon/');
|
||||
if (is_file($path .'/price.txt')) {
|
||||
$tabPaysPrix = parse_ini_file($path .'/price.txt', true);
|
||||
if (is_file('graydon/price.txt')) {
|
||||
$tabPaysPrix = parse_ini_file('graydon/price.txt', true);
|
||||
}
|
||||
|
||||
//Chargement de la liste complète des pays
|
||||
@ -27,24 +26,24 @@ $listPays = array_keys($tabPaysPrix['Normal']);
|
||||
foreach($listPays as $pays){
|
||||
|
||||
//Enregistrement du pays en mode actif
|
||||
if($tabPays[$pays]){
|
||||
$code = $tabPays[$pays];
|
||||
}else{
|
||||
if($tabPays[$pays]){
|
||||
$code = $tabPays[$pays];
|
||||
}else{
|
||||
//Code non trouvé
|
||||
$code = '';
|
||||
print '<br/>Code non trouvé pour le pays : '.$pays.'<br/>';
|
||||
};
|
||||
|
||||
|
||||
echo $sql = 'INSERT INTO country (code, country, status) VALUES ( "'.$code.'" , "'.$pays.'", "actif")';
|
||||
mysql_query($sql,$link);
|
||||
$country_id = mysql_insert_id();
|
||||
|
||||
|
||||
//Enregitrement des prix
|
||||
echo $sql = 'INSERT INTO price (immediate, normal, superflash, country_id) VALUES ( "'.$tabPaysPrix['Immediate'][$pays].'" , "'.$tabPaysPrix['Normal'][$pays].'", "'.$tabPaysPrix['Superflash'][$pays].'", "'.$country_id.'")';
|
||||
mysql_query($sql,$link);
|
||||
|
||||
|
||||
echo '<br/>';
|
||||
|
||||
|
||||
}
|
||||
|
||||
?>
|
@ -8,11 +8,9 @@
|
||||
// MODIF
|
||||
global $fichierPdf;
|
||||
|
||||
include_once realpath(dirname(__FILE__) . '/index.fct.php');
|
||||
include_once realpath(dirname(__FILE__) . '/../framework/fwk.php');
|
||||
define ('INCLUDE_PATH', realpath(dirname(__FILE__) . '/../includes/'));
|
||||
|
||||
include_once realpath(dirname(__FILE__) . '/../batch/mysql.php');
|
||||
require_once 'index.fct.php';
|
||||
require_once 'fwk.php';
|
||||
require_once 'default/_includes/mysql.php';
|
||||
|
||||
session_start();
|
||||
$cle_cookie='sdjglsdkhmsoL68';
|
||||
@ -22,7 +20,7 @@ if(ENVIRONNEMENT == 'DEV'){ $timeout=36000; }
|
||||
|
||||
$refresh=5;
|
||||
|
||||
if (ENV<>'PRD') {
|
||||
if (ENV!='PRD') {
|
||||
// Pas de mise en cache WSDL pour SOAP
|
||||
ini_set('soap.wsdl_cache_enabled', 0);
|
||||
}
|
||||
|
@ -28,10 +28,10 @@ if ( $cache->startCapture($fileName.'.html') == FALSE){
|
||||
print $cache->displayCache();
|
||||
}else{
|
||||
|
||||
include_once(INCLUDE_PATH.'/partenaires/classMTva.php');
|
||||
include_once(INCLUDE_PATH.'/partenaires/classMMap.php');
|
||||
include_once(INCLUDE_PATH.'/partenaires/classMCoface.php');
|
||||
include_once(FWK_PATH.'/common/dates.php');
|
||||
require_once 'partenaires/classMTva.php';
|
||||
require_once 'partenaires/classMMap.php';
|
||||
require_once 'partenaires/classMCoface.php';
|
||||
require_once 'common/dates.php';
|
||||
|
||||
try {
|
||||
$O = $client->getInfosBourse($siren);
|
||||
|
@ -6,9 +6,9 @@ $tabInfo = $_SESSION['tabInfo'];
|
||||
|
||||
if (!$_SESSION['connected'])
|
||||
echo ('Vous devez être connecté afin de pouvoir utiliser cette fonctionnalité');
|
||||
/*elseif ($_SESSION['tabInfo']['login']<>'ylenaour' && $_SESSION['tabInfo']['login']<>'jmartory' &&
|
||||
/*elseif ($_SESSION['tabInfo']['login']<>'ylenaour' && $_SESSION['tabInfo']['login']<>'jmartory' &&
|
||||
$_SESSION['tabInfo']['login']<>'mheitz' ) {
|
||||
echo ('Vous n\'avez pas les droits nécessaires pour utiliser cette fonctionnalité');
|
||||
echo ('Vous n\'avez pas les droits nécessaires pour utiliser cette fonctionnalité');
|
||||
}*/
|
||||
elseif ($type<>'tri' && //Tribunaux
|
||||
$type<>'pre' && // Préfectures
|
||||
@ -29,7 +29,7 @@ elseif ($type<>'tri' && //Tribunaux
|
||||
*/
|
||||
$type<>'cfe' && // Centres de Formalités des Entreprises
|
||||
$type<>'') {
|
||||
echo ('Compétence territoriale inexistante');
|
||||
echo ('Compétence territoriale inexistante');
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -42,17 +42,17 @@ $siren=substr($siret,0,9);
|
||||
if (isset($_REQUEST['id']) && $_REQUEST['id']*1<>0) $idCom=$_REQUEST['id'];
|
||||
else $idCom=false;
|
||||
|
||||
include_once(INCLUDE_PATH.'/partenaires/classMTva.php');
|
||||
include_once(INCLUDE_PATH.'/partenaires/classMMap.php');
|
||||
include_once(INCLUDE_PATH.'/partenaires/classMCoface.php');
|
||||
include_once(FWK_PATH.'/common/dates.php');
|
||||
require_once 'partenaires/classMTva.php';
|
||||
require_once 'partenaires/classMMap.php';
|
||||
require_once 'partenaires/classMCoface.php';
|
||||
require_once 'common/dates.php';
|
||||
|
||||
try {
|
||||
$O = $client->getListeCompetences($siret, $type, $_SESSION['tabInfo']['entrep']['codeCommune']);
|
||||
$competences=$O['result'];
|
||||
$competences=$O['result'];
|
||||
$firephp->log($competences, 'Competences');
|
||||
} catch (SoapFault $fault) {
|
||||
include_once(realpath(dirname(__FILE__).'/../../').'/includes/soaperror.php');
|
||||
require_once 'soaperror.php';
|
||||
processSoapFault($client,$fault,$tabInfo);
|
||||
die();
|
||||
}
|
||||
@ -267,7 +267,7 @@ elseif ($comp['Type']=='M') echo '<i>Mandataire judiciaire</i><br/>';
|
||||
</li></ul></td>
|
||||
</tr>
|
||||
<?/*
|
||||
|
||||
|
||||
[Id] => 367
|
||||
[IdSup] => 000000000
|
||||
[Code] => Chartres/CHA
|
||||
@ -275,11 +275,11 @@ elseif ($comp['Type']=='M') echo '<i>Mandataire judiciaire</i><br/>';
|
||||
[Nom] => Pierrat Guy
|
||||
[Siret] => 338630999
|
||||
[Adr] => 24 Rue Chanzy Bp 299
|
||||
[AdrComp] =>
|
||||
[AdrComp] =>
|
||||
[CP] => 28005
|
||||
[Ville] => CHARTRES CEDEX
|
||||
[Fax] => 02 37 91 05 38
|
||||
[Web] =>
|
||||
[Web] =>
|
||||
[Mail] => guy.pierrat.aj@wanadoo.fr
|
||||
[Statut] => PP
|
||||
[Remarque] => */?>
|
||||
@ -338,22 +338,22 @@ elseif ($comp['Type']=='M') echo '<i>Mandataire judiciaire</i><br/>';
|
||||
?><br>
|
||||
</table>
|
||||
<?php
|
||||
/** @todo
|
||||
*
|
||||
/** @todo
|
||||
*
|
||||
* Cadastre
|
||||
* Hypothèques
|
||||
* Avocats http://www.cnb.avocat.fr/annuaire/resultats.php
|
||||
*
|
||||
*
|
||||
* A voir 1 :
|
||||
* Experts Comptables http://www.bretagne.experts-comptables.fr/annuaire/resultats.php
|
||||
* Commisaires aux comptes
|
||||
*
|
||||
* A voir 2 :
|
||||
*
|
||||
* A voir 2 :
|
||||
* Notaires http://www.notaires.fr/notaires/annuaire.nsf/F_RN_RECH_PUB?OpenForm&comLangue=FR
|
||||
* Forme : Profession liberale (1500) SCP de notaires (6565)
|
||||
* Activité : Organisations professionnelles (911C)
|
||||
* Activites des organisations professionnelles (9412Z) Activites juridiques (6910Z)
|
||||
* *
|
||||
* *
|
||||
* Faire des scripts génériques qui à partir de l'INSEE et de la création, maj ou suppression de de SIREN/SIRET dans certaines CJ ou NAF
|
||||
**/
|
||||
}
|
||||
|
@ -17,16 +17,16 @@ $siren=substr($siret,0,9);
|
||||
if (isset($_REQUEST['idEntreprise']) && $_REQUEST['idEntreprise']*1<>0) $idCom=$_REQUEST['idEntreprise'];
|
||||
else $idCom=false;
|
||||
|
||||
include_once(INCLUDE_PATH.'/partenaires/classMTva.php');
|
||||
include_once(INCLUDE_PATH.'/partenaires/classMMap.php');
|
||||
include_once(INCLUDE_PATH.'/partenaires/classMCoface.php');
|
||||
include_once(FWK_PATH.'/common/dates.php');
|
||||
require_once 'partenaires/classMTva.php';
|
||||
require_once 'partenaires/classMMap.php';
|
||||
require_once 'partenaires/classMCoface.php';
|
||||
require_once 'common/dates.php';
|
||||
|
||||
try {
|
||||
$O = $client->getListeConventions($siren);
|
||||
$conventions=$O['result'];
|
||||
} catch (SoapFault $fault) {
|
||||
include_once(realpath(dirname(__FILE__).'/../../').'/includes/soaperror.php');
|
||||
require_once 'soaperror.php';
|
||||
processSoapFault($client,$fault,$tabInfo);
|
||||
die();
|
||||
}
|
||||
@ -55,7 +55,7 @@ $raisonSociale=$tabInfo['entrep']['raisonSociale'];
|
||||
</tr>
|
||||
<?
|
||||
/* if ($idCom) {
|
||||
|
||||
|
||||
foreach ($annonces as $ann) {
|
||||
if ($ann['id']==$_REQUEST['id']) {/*'id' =>$ann['id'],
|
||||
'' =>$ann['source'],
|
||||
@ -66,14 +66,14 @@ $raisonSociale=$tabInfo['entrep']['raisonSociale'];
|
||||
'communiqueHtml'=>utf8_encode($ann['communiqueHtml']),
|
||||
'pj' =>$ann['pj'],
|
||||
'url' =>$ann['url'],*/
|
||||
if (count($conventions)>0) {
|
||||
if (count($conventions)>0) {
|
||||
/** Affichage de la liste des conventions collectives
|
||||
**/
|
||||
|
||||
|
||||
/*
|
||||
[] => Industries metallurgiques OETAM (Region parisienne)
|
||||
[infoCC] => Industries metallurgiques OETAM (Region parisienne)
|
||||
|
||||
|
||||
*/
|
||||
foreach ($conventions as $i=>$conv) {?>
|
||||
<tr>
|
||||
|
@ -1,13 +1,12 @@
|
||||
<?
|
||||
<?
|
||||
if (!$_SESSION['connected']) die();
|
||||
|
||||
$tabInfo = $_SESSION['tabInfo'];
|
||||
|
||||
include_once(INCLUDE_PATH.'/partenaires/classMTva.php');
|
||||
include_once(INCLUDE_PATH.'/partenaires/classMMap.php');
|
||||
//include_once(INCLUDE_PATH.'partenaires/classMCoface.php');
|
||||
include_once(FWK_PATH.'/common/dates.php');
|
||||
require_once(realpath(dirname(__FILE__).'/../../includes/').'/cache.php');
|
||||
require_once 'partenaires/classMTva.php';
|
||||
require_once 'partenaires/classMMap.php';
|
||||
require_once 'common/dates.php';
|
||||
require_once 'cache.php';
|
||||
|
||||
$siret=trim(preg_replace('/[^0-9]/', '', $_REQUEST['siret']));
|
||||
if (strlen($siret)<>0 && strlen($siret)<>9 && strlen($siret)<>14) die('Paramètres incorrects !');
|
||||
@ -20,7 +19,7 @@ if ($_REQUEST['vue']=='histo')
|
||||
$histo=true;
|
||||
else
|
||||
$histo=false;
|
||||
|
||||
|
||||
//Générer un nom de fichier pour le cache et l'export des fichiers
|
||||
if (($siret*1)==0 && ($siren*1)<100){
|
||||
$fileName = $page2.'-'.$idEntreprise;
|
||||
@ -38,11 +37,11 @@ if( preg_match('/saisie/i', $_SESSION['tabInfo']['droits']) || $_SESSION['tabInf
|
||||
$cache->forceStart = TRUE;
|
||||
if ( $cache->startCapture($fileName.'.html') == FALSE){
|
||||
print $cache->displayCache();
|
||||
}else{
|
||||
|
||||
}else{
|
||||
|
||||
try {
|
||||
$O = $client->getDirigeants($siren, $histo);
|
||||
$dirs=$O['result'];
|
||||
$dirs=$O['result'];
|
||||
} catch (SoapFault $fault) {
|
||||
include_once(realpath(dirname(__FILE__).'/../../').'/includes/soaperror.php');
|
||||
processSoapFault($client,$fault,$tabInfo);
|
||||
@ -50,10 +49,10 @@ if ( $cache->startCapture($fileName.'.html') == FALSE){
|
||||
}
|
||||
|
||||
$firephp->log($dirs,'dirs');
|
||||
|
||||
|
||||
$raisonSociale=$tabInfo['entrep']['raisonSociale'];
|
||||
|
||||
?>
|
||||
|
||||
?>
|
||||
<table width="580" border="0" align="left" bgcolor="#FFFFFF">
|
||||
<tr>
|
||||
<td colspan="3"><img src="./img/rub_dirigeant.png" width="577" height="36"></td>
|
||||
@ -109,7 +108,7 @@ if ( $cache->startCapture($fileName.'.html') == FALSE){
|
||||
<?
|
||||
foreach ($dirs as $i=>$dir) {
|
||||
$nom = str_replace('&#160;',' ', $dir['Societe'].' '.$dir['Nom'].' '.$dir['Prenom']);
|
||||
if(isset($dir['Civilite']) && $dir['Civilite']!=''){$nom = $dir['Civilite'].'. '.$nom;}
|
||||
if(isset($dir['Civilite']) && $dir['Civilite']!=''){$nom = $dir['Civilite'].'. '.$nom;}
|
||||
?>
|
||||
<tr>
|
||||
<td class="StyleInfoData" width="120"><?php print $dir['Titre'];?></td>
|
||||
@ -120,7 +119,7 @@ if ( $cache->startCapture($fileName.'.html') == FALSE){
|
||||
</a>
|
||||
</p>
|
||||
</td>
|
||||
<td class="StyleInfoData" width="230"><?
|
||||
<td class="StyleInfoData" width="230"><?
|
||||
if (trim($dir['NaissDate'])<>'' && trim($dir['NaissVille'].' '.$dir['NaissDepPays'])<>'') {
|
||||
echo 'né(e) le '.$dir['NaissDate'].' à '.$dir['NaissVille'];
|
||||
if (trim($dir['NaissDepPays'])<>'')
|
||||
@ -139,8 +138,8 @@ if ( $cache->startCapture($fileName.'.html') == FALSE){
|
||||
echo '<tr><td class="StyleInfoData" width="550"> Aucune donnée n\'est présente dans notre base</td></tr>';
|
||||
?></table></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
<?
|
||||
@ -154,15 +153,15 @@ if ( $cache->startCapture($fileName.'.html') == FALSE){
|
||||
$tabForExport = htmldecode($dirs);
|
||||
if(count($tabForExport)>0){
|
||||
require_once(realpath(dirname(__FILE__).'/../../includes/').'/export.php');
|
||||
|
||||
|
||||
$array2csv = new ExportCSV();
|
||||
$array2csv->records = $tabForExport;
|
||||
$array2csv->writeCSV($fileName);
|
||||
|
||||
|
||||
$array2xml = new ExportXML();
|
||||
$array2xml->rootName = $page.'s';
|
||||
$array2xml->defaultTagName = $page;
|
||||
if ($_REQUEST['vue']=='histo'){
|
||||
if ($_REQUEST['vue']=='histo'){
|
||||
$array2xml->rootName = 'historique'.$page.'s';
|
||||
$array2xml->defaultTagName = 'historique'.$page;
|
||||
}
|
||||
|
@ -1,13 +1,12 @@
|
||||
<?
|
||||
<?
|
||||
if (!$_SESSION['connected']) die();
|
||||
|
||||
$tabInfo = $_SESSION['tabInfo'];
|
||||
|
||||
include_once(INCLUDE_PATH.'/partenaires/classMTva.php');
|
||||
include_once(INCLUDE_PATH.'/partenaires/classMMap.php');
|
||||
//include_once(INCLUDE_PATH.'partenaires/classMCoface.php');
|
||||
include_once(FWK_PATH.'/common/dates.php');
|
||||
require_once(realpath(dirname(__FILE__).'/../../includes/').'/cache.php');
|
||||
require_once 'partenaires/classMTva.php';
|
||||
require_once 'partenaires/classMMap.php';
|
||||
require_once 'common/dates.php';
|
||||
require_once 'cache.php';
|
||||
|
||||
$siret=trim(preg_replace('/[^0-9]/', '', $_REQUEST['siret']));
|
||||
if (strlen($siret)<>0 && strlen($siret)<>9 && strlen($siret)<>14) die('Paramètres incorrects !');
|
||||
@ -33,7 +32,7 @@ if( preg_match('/saisie/i', $_SESSION['tabInfo']['droits']) || $_SESSION['tabInf
|
||||
if ( $cache->startCapture($fileName.'.html') == FALSE){
|
||||
print $cache->displayCache();
|
||||
}else{
|
||||
|
||||
|
||||
try {
|
||||
$O = $client->getListeEtablissements($siren);
|
||||
$etabs=$O['result'];
|
||||
@ -42,7 +41,7 @@ if ( $cache->startCapture($fileName.'.html') == FALSE){
|
||||
processSoapFault($client,$fault,$tabInfo);
|
||||
die();
|
||||
}
|
||||
|
||||
|
||||
$raisonSociale=$tabInfo['entrep']['raisonSociale'];
|
||||
?>
|
||||
<table width="580" border="0" align="left" bgcolor="#FFFFFF">
|
||||
@ -68,12 +67,12 @@ if ( $cache->startCapture($fileName.'.html') == FALSE){
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td colspan="2" width="550" class="StyleInfoData"><table><?foreach ($etabs as $i=>$etab) {
|
||||
|
||||
|
||||
if ($etab['Siege']==1) $type='siège ';
|
||||
else $type='établissement ';
|
||||
if ($etab['Actif']==1) $type.='actif';
|
||||
else $type.='inactif';
|
||||
|
||||
|
||||
$lien='<a title="Voir la fiche d\'identité" href="/?page=identite&siret='.$siren.$etab['Nic'].'&idEntreprise='.$idEntreprise.'">';
|
||||
?><tr><td class="StyleInfoData" width="30"><b><?=$lien.$etab['Nic']?></a></b></td>
|
||||
<td class="StyleInfoData" width="120"><?=$type?></td>
|
||||
@ -98,7 +97,7 @@ if ( $cache->startCapture($fileName.'.html') == FALSE){
|
||||
</tr>
|
||||
<tr>
|
||||
</table>
|
||||
<?php
|
||||
<?php
|
||||
|
||||
//Exportation des données sous forme de fichier
|
||||
function htmldecode($value){
|
||||
@ -108,14 +107,14 @@ if ( $cache->startCapture($fileName.'.html') == FALSE){
|
||||
$firephp->log($etabs,'Etablissements');
|
||||
$tabForExport = htmldecode($etabs);
|
||||
//@TODO a tester
|
||||
|
||||
|
||||
if(count($tabForExport)>0){
|
||||
require_once(realpath(dirname(__FILE__).'/../../includes/').'/export.php');
|
||||
|
||||
|
||||
$array2csv = new ExportCSV();
|
||||
$array2csv->records = $tabForExport;
|
||||
$array2csv->writeCSV($fileName);
|
||||
|
||||
|
||||
$array2xml = new ExportXML();
|
||||
$array2xml->rootName = $page.'s';
|
||||
$array2xml->defaultTagName = $page;
|
||||
|
@ -10,16 +10,16 @@ $siren=substr($siret,0,9);
|
||||
if (isset($_REQUEST['idan']) && $_REQUEST['idan']*1<>0) $idCom=$_REQUEST['idan'];
|
||||
else $idCom=false;
|
||||
|
||||
include_once(INCLUDE_PATH.'/partenaires/classMTva.php');
|
||||
include_once(INCLUDE_PATH.'/partenaires/classMMap.php');
|
||||
include_once(INCLUDE_PATH.'/partenaires/classMCoface.php');
|
||||
include_once(FWK_PATH.'/common/dates.php');
|
||||
require_once 'partenaires/classMTva.php';
|
||||
require_once 'partenaires/classMMap.php';
|
||||
require_once 'partenaires/classMCoface.php';
|
||||
require_once 'common/dates.php';
|
||||
|
||||
$tabInfo = $_SESSION['tabInfo'];
|
||||
|
||||
try {
|
||||
$O = $client->getInfosReg($siren, $idCom);
|
||||
$annonces=$O['result'];
|
||||
$annonces=$O['result'];
|
||||
} catch (SoapFault $fault) {
|
||||
include_once(realpath(dirname(__FILE__).'/../../').'/includes/soaperror.php');
|
||||
processSoapFault($client,$fault,$tabInfo);
|
||||
@ -51,7 +51,7 @@ $raisonSociale=$tabInfo['entrep']['raisonSociale'];
|
||||
</tr>
|
||||
<?
|
||||
if ($idCom) {
|
||||
|
||||
|
||||
foreach ($annonces as $ann) {
|
||||
if ($ann['id']==$_REQUEST['idan']) {/*'id' =>$ann['id'],
|
||||
'' =>$ann['source'],
|
||||
@ -93,9 +93,9 @@ $raisonSociale=$tabInfo['entrep']['raisonSociale'];
|
||||
<?
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
} else {
|
||||
if (count($annonces)>0) {
|
||||
if (count($annonces)>0) {
|
||||
/** Affichage de la liste des infos reg
|
||||
**/
|
||||
foreach ($annonces as $i=>$ann) {?>
|
||||
|
@ -1,11 +1,10 @@
|
||||
<?
|
||||
if (!$_SESSION['connected']) die();
|
||||
|
||||
include_once(INCLUDE_PATH.'/partenaires/classMTva.php');
|
||||
include_once(INCLUDE_PATH.'/partenaires/classMMap.php');
|
||||
//include_once(INCLUDE_PATH.'partenaires/classMCoface.php');
|
||||
include_once(FWK_PATH.'/common/dates.php');
|
||||
require_once(realpath(dirname(__FILE__).'/../../includes/').'/cache.php');
|
||||
require_once 'partenaires/classMTva.php';
|
||||
require_once 'partenaires/classMMap.php';
|
||||
require_once 'common/dates.php';
|
||||
require_once 'cache.php';
|
||||
|
||||
$tabInfo = $_SESSION['tabInfo'];
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?
|
||||
<?
|
||||
$siret=trim(preg_replace('/[^0-9]/', '', $_REQUEST['siret']));
|
||||
if (strlen($siret)<>0 && strlen($siret)<>9 && strlen($siret)<>14) die('Paramètres incorrects !');
|
||||
|
||||
@ -13,14 +13,13 @@ if (!$_SESSION['connected'])
|
||||
elseif (!preg_match('/MARQUES/i', $_SESSION['tabInfo']['droits']))
|
||||
echo ('Vous n\'avez pas les droits nécessaires pour utiliser cette fonctionnalité (2)');
|
||||
else {
|
||||
|
||||
include_once(INCLUDE_PATH.'/partenaires/classMTva.php');
|
||||
include_once(INCLUDE_PATH.'/partenaires/classMMap.php');
|
||||
//include_once(INCLUDE_PATH.'partenaires/classMCoface.php');
|
||||
include_once(FWK_PATH.'/common/dates.php');
|
||||
|
||||
require_once 'partenaires/classMTva.php';
|
||||
require_once 'partenaires/classMMap.php';
|
||||
require_once 'common/dates.php';
|
||||
|
||||
$tabInfo = $_SESSION['tabInfo'];
|
||||
|
||||
|
||||
try {
|
||||
$O = $client->getMarques($siren, $id);
|
||||
$marques=$O['result'];
|
||||
@ -29,7 +28,7 @@ else {
|
||||
processSoapFault($client,$fault,$tabInfo);
|
||||
die();
|
||||
}
|
||||
|
||||
|
||||
$raisonSociale=$tabInfo['entrep']['raisonSociale'];
|
||||
?>
|
||||
<table width="580" border="0" align="left" bgcolor="#FFFFFF">
|
||||
@ -66,24 +65,24 @@ else {
|
||||
<td width="200" class="StyleInfoData">Dépôt n°<?=$marque['Depot']?> du <?=WDate::dateT('Y-m-d','d/m/Y',$marque['Date'])?></td>
|
||||
<td width="350" class="StyleInfoLib"><?=$aff?></td>
|
||||
</tr>
|
||||
|
||||
|
||||
<?
|
||||
if ($id<>0) {
|
||||
?>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="550" colspan="2" class="StyleInfoLib" align="center"><img src="<?=$marque['UrlLien']?>"/> </td>
|
||||
</tr>
|
||||
</tr>
|
||||
<?
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (count($marques)==0){
|
||||
?>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="550" colspan="2" class="StyleInfoLib">Aucune marque n'a été déposée par cette entreprise depuis 1982.</td>
|
||||
</tr>
|
||||
</tr>
|
||||
<?
|
||||
}
|
||||
?>
|
||||
|
@ -315,6 +315,7 @@ $(document).ready(function(){
|
||||
$typeId='I';
|
||||
$autreId=$siret;
|
||||
$siret='';
|
||||
$firephp->info('Code ISIN');
|
||||
}
|
||||
}
|
||||
//Numéro RC
|
||||
@ -390,6 +391,7 @@ $(document).ready(function(){
|
||||
processSoapFault($client,$fault,$tabInfo);
|
||||
}
|
||||
} elseif ($typeRech=='ent' && ($typeId=='R' || $typeId=='W' || $typeId=='I') ) {
|
||||
$firephp->log( 'searchAutreId('.$typeId.', '.$autreId.', '.$position.', '.$tabInfo['nbReponses'].', 200, '.$cp.')', 'Requete');
|
||||
echo "<!--_typeRech=ent, Autre Id $typeId=$autreId-->\n";
|
||||
try {
|
||||
$O = $client->searchAutreId($typeId, $autreId, $position, $tabInfo['nbReponses'], 200, $cp);
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
include_once(INCLUDE_PATH.'/partenaires/classMTva.php');
|
||||
include_once(FWK_PATH.'/common/dates.php');
|
||||
include_once(realpath(dirname(__FILE__).'/../pages_saisie/constantes.php'));
|
||||
require_once 'partenaires/classMTva.php';
|
||||
require_once 'common/dates.php';
|
||||
require_once (realpath(dirname(__FILE__).'/../pages_saisie/constantes.php'));
|
||||
|
||||
$siret=trim(preg_replace('/[^0-9]/', '', $_REQUEST['siret']));
|
||||
$idEntreprise=trim(preg_replace('/[^0-9]/', '', $_REQUEST['idEntreprise']))*1; // Si id=0 alors non communiqué
|
||||
|
@ -32,11 +32,11 @@ if ($action<>'' && $action<>'commande') die('Param
|
||||
|
||||
|
||||
$raisonSociale=$tabInfo['entrep']['raisonSociale'];
|
||||
|
||||
include_once(INCLUDE_PATH.'/partenaires/classMTva.php');
|
||||
include_once(INCLUDE_PATH.'/partenaires/classMMap.php');
|
||||
include_once(INCLUDE_PATH.'/partenaires/classMCoface.php');
|
||||
include_once(FWK_PATH.'/common/dates.php');
|
||||
|
||||
require_once 'partenaires/classMTva.php';
|
||||
require_once 'partenaires/classMMap.php';
|
||||
require_once 'partenaires/classMCoface.php';
|
||||
require_once 'common/dates.php';
|
||||
|
||||
|
||||
/*$client = new SoapClient('https://www.creditsafe.fr/getdata/service/CSFRServices.asmx?WSDL',
|
||||
@ -48,7 +48,7 @@ include_once(FWK_PATH.'/common/dates.php');
|
||||
//'use' => SOAP_ENCODED,
|
||||
));
|
||||
*/
|
||||
|
||||
|
||||
$req='<xmlrequest>'.
|
||||
'<header>'.
|
||||
'<username>'.CREDITSAFE_WS_USER.'</username>'.
|
||||
@ -65,11 +65,11 @@ include_once(FWK_PATH.'/common/dates.php');
|
||||
"<companynumber>$siret</companynumber>".
|
||||
'</body>'.
|
||||
'</xmlrequest>';
|
||||
|
||||
|
||||
$success=true;
|
||||
$date=date('Ymd');
|
||||
$fichier=$siret.'-'.$date.'.xml';
|
||||
|
||||
|
||||
if ( !file_exists(PATH_DATA.'/creditsafe/xml/'.$fichier) ) {
|
||||
/* try {
|
||||
$O=$client->GetData('<RequestXmlString><xmlrequest>'.
|
||||
@ -102,7 +102,7 @@ include_once(FWK_PATH.'/common/dates.php');
|
||||
$referer=$cookie='';
|
||||
$page=getUrl($url, $cookie, '', $referer, false, '', '');
|
||||
$referer=$url;
|
||||
|
||||
|
||||
/*
|
||||
$fp=@fopen(htmlspecialchars($url), 'rb');
|
||||
print $content = stream_get_contents($fp);
|
||||
@ -115,10 +115,10 @@ include_once(FWK_PATH.'/common/dates.php');
|
||||
$fp=@fopen(PATH_DATA.'/creditsafe/xml/'.$fichier, 'w');
|
||||
@fwrite($fp, $xml);
|
||||
@fclose($fp);
|
||||
|
||||
|
||||
|
||||
|
||||
$O = $client->setLog('scorecsf', $siret);
|
||||
|
||||
|
||||
} else {
|
||||
/** Lecture du fichier XML en provenance des greffes
|
||||
**/
|
||||
@ -128,7 +128,7 @@ include_once(FWK_PATH.'/common/dates.php');
|
||||
}
|
||||
/*<>100</rating>
|
||||
2000000</creditlimit>*/
|
||||
|
||||
|
||||
$dom_object = new DomDocument2();
|
||||
//TODO : Chemin !!
|
||||
$dom_object->load(PATH_DATA.'/creditsafe/xml/'.$fichier);
|
||||
@ -148,16 +148,16 @@ foreach ($result as $annonce) {
|
||||
$libelle='';
|
||||
if (strtoupper($creditlimit)<>strtolower($creditlimit) || $creditlimit=='')
|
||||
$strCreditlimit=$creditlimit;
|
||||
else
|
||||
else
|
||||
$strCreditlimit=number_format($creditlimit,null,null,' '). ' €';
|
||||
|
||||
|
||||
if ($rating>=40) {
|
||||
$fontColor='green';
|
||||
$imgFeux='<img src="./img/creditsafe/feux_vert.png"/>';
|
||||
if ($rating>=71) $libelle='Très bonne cote de crédit/solvabilité';
|
||||
elseif ($rating>=51) $libelle='Bonne cote de crédit/solvabilité';
|
||||
else $libelle='Solvable';
|
||||
|
||||
|
||||
} elseif ($rating>=20) {
|
||||
$fontColor='yellow';//#f2be2c';
|
||||
$imgFeux='<img src="./img/creditsafe/feux_orange.png"/>';
|
||||
@ -176,7 +176,7 @@ foreach ($result as $annonce) {
|
||||
if ($rating==0) $libelle='Entreprise en situation de défaillance et ayant un très fort risque de radiation';
|
||||
else $libelle='Avertissement - Crédit à votre discrétion';
|
||||
}
|
||||
|
||||
|
||||
?><table width="580" border="0" align="left" bgcolor="#FFFFFF">
|
||||
<tr>
|
||||
<td colspan="3"><img src="./img/rub_evaluation.png" width="577" height="36"></td>
|
||||
@ -211,7 +211,7 @@ foreach ($result as $annonce) {
|
||||
.grey_gradiant .v20 { background: #bcbcbc; }
|
||||
.grey_gradiant .v10 { background: #c8c8c8;-->
|
||||
<tr><td colspan="3">
|
||||
|
||||
|
||||
<table cellspacing="0">
|
||||
<tr>
|
||||
<td width="20"> </td>
|
||||
@ -236,7 +236,7 @@ foreach ($result as $annonce) {
|
||||
<td colspan="5" align="right"><img src="./img/creditsafe/logo_creditsafe.png"/></td>
|
||||
</tr>-->
|
||||
</table>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<?
|
||||
@ -253,7 +253,7 @@ foreach ($result as $annonce) {
|
||||
$message='Entreprise mise sous surveillance scoring partenaire !';
|
||||
mail( 'contact@scores-decisions.com',"Demande de surveillance score CreditSafe pour $siren à ".$_REQUEST['email'],
|
||||
'REQUEST='.EOL.print_r($_REQUEST,true).'EOL'.
|
||||
'SERVER='.EOL.print_r($_SERVER,true).'EOL'.
|
||||
'SERVER='.EOL.print_r($_SERVER,true).'EOL'.
|
||||
'SESSION='.EOL.print_r($_SESSION,true).'EOL'.
|
||||
'ENV='.EOL.print_r($_ENV,true).'EOL'.
|
||||
'tabInfo='.print_r($tabInfo,true));
|
||||
@ -270,13 +270,13 @@ foreach ($result as $annonce) {
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
|
||||
|
||||
class DomDocument2 extends DOMDocument {
|
||||
|
||||
|
||||
function getValueFromTag($tagName) {
|
||||
$items=$this->getElementsByTagName($tagName);
|
||||
foreach ($items as $item) {
|
||||
|
||||
|
||||
return utf8_decode($item->nodeValue);
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?
|
||||
if (!$_SESSION['connected'])
|
||||
echo ('Vous devez être connecté afin de pouvoir utiliser cette fonctionnalité');
|
||||
else
|
||||
else
|
||||
{
|
||||
if (isset($_GET['siret']) && $_GET['siret']<>'')
|
||||
{
|
||||
@ -9,15 +9,15 @@ else
|
||||
<a href='./?page=<?=$_REQUEST['referer']?>'>Retour à la page précédente</a> <a name="haut" href='#bas'>Aller en bas</a><br/>
|
||||
<hr width="95%"/>
|
||||
<?*/
|
||||
include INCLUDE_PATH.'/constantes.php';
|
||||
|
||||
include_once(realpath(dirname(__FILE__). '/../../framework/default/_includes/mysql.php'));
|
||||
require_once 'constantes.php';
|
||||
|
||||
require_once 'default/_includes/mysql.php';
|
||||
$con = mysql_pconnect('localhost', 'root', 'catsysyo92');
|
||||
if (!($con === false)) {
|
||||
if (mysql_select_db('insee', $con) === false)
|
||||
die('Could not select database: ' . mysql_error());
|
||||
}
|
||||
|
||||
|
||||
$siren=substr($_GET['siret'],0,9);
|
||||
$nic=substr($_GET['siret'],9,5);
|
||||
$_SESSION['siren']=$siren;
|
||||
@ -33,7 +33,7 @@ else
|
||||
$RP=mysql_select('insee', $fields, $where);
|
||||
$etab=$RP[0];
|
||||
$_SESSION['nic']=$etab['insNIC'];
|
||||
|
||||
|
||||
//$tfin=microtime_float();
|
||||
//$trec=$tfin-$tdeb;
|
||||
// echo "Durée : $trec s<br/>";
|
||||
|
Loading…
Reference in New Issue
Block a user