Update
This commit is contained in:
parent
2b3f4190ec
commit
96548b180b
@ -492,7 +492,7 @@ class Metier_Bodacc_MBodacc
|
||||
public function __construct($db = null)
|
||||
{
|
||||
if ( $db === null ) {
|
||||
$this->iDb = new WDB();
|
||||
$this->iDb = new Metier_Util_Db();
|
||||
} else {
|
||||
$this->iDb = $db;
|
||||
}
|
||||
|
@ -81,7 +81,7 @@ class Metier_Insee_MInsee extends Metier_Insee_Table
|
||||
public function __construct($db = null)
|
||||
{
|
||||
if ( $db === null ) {
|
||||
$this->iDb = new WDB();
|
||||
$this->iDb = new Metier_Util_Db();
|
||||
} else {
|
||||
$this->iDb = $db;
|
||||
}
|
||||
@ -276,7 +276,7 @@ class Metier_Insee_MInsee extends Metier_Insee_Table
|
||||
{
|
||||
$tabAdr = $this->structureVoie(strtoupper($adresse));
|
||||
$numAdresse = preg_replace('/^0+/','',''.$tabAdr['num']*1);
|
||||
$adresse = trimAccent($tabAdr['libVoie']);
|
||||
$adresse = Metier_Util_String::trimAccent($tabAdr['libVoie']);
|
||||
$formR = array(
|
||||
'type' => 'ent',
|
||||
'siret' => '',
|
||||
@ -784,7 +784,7 @@ class Metier_Insee_MInsee extends Metier_Insee_Table
|
||||
if ($strLigneDAdresse=='') return $tabRet;
|
||||
$tabLignes=explode(',', preg_replace('/,$/', '', $strLigneDAdresse));
|
||||
foreach ($tabLignes as $strLigneDAdresse) {
|
||||
$strLigneDAdresse=trimAccent($strLigneDAdresse);
|
||||
$strLigneDAdresse=Metier_Util_String::trimAccent($strLigneDAdresse);
|
||||
$strLigneDAdresse=preg_replace('/[^0-9a-zA-Z]/', ' ', $strLigneDAdresse);
|
||||
$strLigneDAdresse=trim(preg_replace('/ +/', ' ', $strLigneDAdresse));
|
||||
//echo "1. Adresse nettoyées = $strLigneDAdresse".PHP_EOL;
|
||||
|
@ -10,7 +10,7 @@ class Metier_Partenaires_MAmabis
|
||||
public function __construct($db = null)
|
||||
{
|
||||
if ( $db === null ) {
|
||||
$this->iDb = new WDB();
|
||||
$this->iDb = new Metier_Util_Db();
|
||||
} else {
|
||||
$this->iDb = $db;
|
||||
}
|
||||
|
@ -14,7 +14,7 @@ class Metier_Partenaires_MArtisanat
|
||||
public $enCache=false;
|
||||
|
||||
function __construct() {
|
||||
$this->iDb=new WDB();
|
||||
$this->iDb=new Metier_Util_Db();
|
||||
}
|
||||
|
||||
function getIdentite($siren, $refresh=false) {
|
||||
|
@ -50,7 +50,7 @@ class Metier_Partenaires_MBanques
|
||||
function __construct($db = null)
|
||||
{
|
||||
if ( $db === null ) {
|
||||
$this->iDb = new WDB();
|
||||
$this->iDb = new Metier_Util_Db();
|
||||
} else {
|
||||
$this->iDb = $db;
|
||||
}
|
||||
|
@ -275,7 +275,7 @@ class Metier_Partenaires_MBilans
|
||||
public function __construct($siren, $db = null)
|
||||
{
|
||||
if ( $db === null ) {
|
||||
$this->iDb = new WDB();
|
||||
$this->iDb = new Metier_Util_Db();
|
||||
} else {
|
||||
$this->iDb = $db;
|
||||
}
|
||||
|
@ -9,7 +9,7 @@ class Metier_Partenaires_MBourse
|
||||
$this->siren = $siren;
|
||||
|
||||
if ( $db === null ) {
|
||||
$this->iDb = new WDB();
|
||||
$this->iDb = new Metier_Util_Db();
|
||||
} else {
|
||||
$this->iDb = $db;
|
||||
}
|
||||
|
@ -126,7 +126,7 @@ class Metier_Partenaires_MCadastre
|
||||
{
|
||||
$this->siren = $siren;
|
||||
if ( $db === null ) {
|
||||
$this->iDb = new WDB();
|
||||
$this->iDb = new Metier_Util_Db();
|
||||
} else {
|
||||
$this->iDb = $db;
|
||||
}
|
||||
|
@ -88,7 +88,7 @@ class Metier_Partenaires_MFacto
|
||||
public function __construct($db = null)
|
||||
{
|
||||
if ( $db === null ) {
|
||||
$this->iDb = new WDB();
|
||||
$this->iDb = new Metier_Util_Db();
|
||||
} else {
|
||||
$this->iDb = $db;
|
||||
}
|
||||
|
@ -6,7 +6,7 @@ class Metier_Partenaires_MGreffes
|
||||
public function __construct($db = null)
|
||||
{
|
||||
if ( $db === null ) {
|
||||
$this->iDb = new WDB();
|
||||
$this->iDb = new Metier_Util_Db();
|
||||
} else {
|
||||
$this->iDb = $db;
|
||||
}
|
||||
|
@ -38,7 +38,7 @@ class Metier_Partenaires_MLiens
|
||||
|
||||
public function __construct($siren) {
|
||||
$this->siren=$siren;
|
||||
$this->iDb=new WDB();
|
||||
$this->iDb=new Metier_Util_Db();
|
||||
$this->iInsee=new Metier_Insee_MInsee();
|
||||
}
|
||||
|
||||
|
@ -517,7 +517,7 @@ class Metier_Partenaires_MMap {
|
||||
public function __construct($accesDist=true, $db = null)
|
||||
{
|
||||
if ( $db === null ) {
|
||||
$this->iDb = new WDB();
|
||||
$this->iDb = new Metier_Util_Db();
|
||||
} else {
|
||||
$this->iDb = $db;
|
||||
}
|
||||
|
@ -24,7 +24,7 @@ class Metier_Partenaires_MMarques
|
||||
$this->partConnection();
|
||||
|
||||
if ( $db === null ) {
|
||||
$this->iDb = new WDB();
|
||||
$this->iDb = new Metier_Util_Db();
|
||||
} else {
|
||||
$this->iDb = $db;
|
||||
}
|
||||
|
@ -21,7 +21,7 @@ class Metier_Partenaires_MOrias
|
||||
$this->accesDist = $accesDist;
|
||||
|
||||
if ( $db === null ) {
|
||||
$this->iDb = new WDB();
|
||||
$this->iDb = new Metier_Util_Db();
|
||||
} else {
|
||||
$this->iDb = $db;
|
||||
}
|
||||
|
@ -70,7 +70,7 @@ class Metier_Partenaires_MPrivileges
|
||||
public function __construct($db = null)
|
||||
{
|
||||
if ( $db === null ) {
|
||||
$this->iDb = new WDB();
|
||||
$this->iDb = new Metier_Util_Db();
|
||||
} else {
|
||||
$this->iDb = $db;
|
||||
}
|
||||
|
@ -18,7 +18,7 @@ class Metier_Partenaires_MQualibat {
|
||||
|
||||
function __construct($accesDist=true) {// $adresse, $cp, $ville, $pays='France') {
|
||||
$this->accesDist=$accesDist;
|
||||
$this->iDb=new WDB();
|
||||
$this->iDb=new Metier_Util_Db();
|
||||
$this->iBodacc=new Metier_Bodacc_MBodacc();
|
||||
$this->$iInsee=new Metier_Insee_MInsee();
|
||||
}
|
||||
|
@ -56,7 +56,7 @@ class Metier_Partenaires_MRncs
|
||||
public function __construct($db = null)
|
||||
{
|
||||
if ( $db === null ) {
|
||||
$this->iDb = new WDB();
|
||||
$this->iDb = new Metier_Util_Db();
|
||||
} else {
|
||||
$this->iDb = $db;
|
||||
}
|
||||
|
@ -28,7 +28,7 @@ class Metier_Partenaires_MRnvp
|
||||
);
|
||||
|
||||
function __construct() {
|
||||
$this->iDb = new WDB();
|
||||
$this->iDb = new Metier_Util_Db();
|
||||
$this->iInsee = new Metier_Insee_MInsee($this->iDb);
|
||||
}
|
||||
|
||||
|
@ -29,7 +29,7 @@ class Metier_Partenaires_MTel
|
||||
$this->codeRetour=$page['code'];
|
||||
}
|
||||
if ( $db === null ) {
|
||||
$this->iDb = new WDB();
|
||||
$this->iDb = new Metier_Util_Db();
|
||||
} else {
|
||||
$this->iDb = $db;
|
||||
}
|
||||
|
@ -21,7 +21,7 @@ class Metier_Partenaires_MTva
|
||||
}
|
||||
|
||||
if ( $db === null ) {
|
||||
$this->iDb = new WDB();
|
||||
$this->iDb = new Metier_Util_Db();
|
||||
} else {
|
||||
$this->iDb = $db;
|
||||
}
|
||||
|
@ -24,7 +24,7 @@ class Metier_Scores_ICotation
|
||||
function __construct($tabBilan, $retraitementAutomatique = true, $db = null)
|
||||
{
|
||||
if ( $db === null ) {
|
||||
$this->iDb = new WDB();
|
||||
$this->iDb = new Metier_Util_Db();
|
||||
} else {
|
||||
$this->iDb = $db;
|
||||
}
|
||||
|
@ -215,7 +215,7 @@ class Metier_Scores_MRatios
|
||||
public function __construct($db = null)
|
||||
{
|
||||
if ( $db === null ) {
|
||||
$this->iDb = new WDB();
|
||||
$this->iDb = new Metier_Util_Db();
|
||||
} else {
|
||||
$this->iDb = $db;
|
||||
}
|
||||
|
@ -19,7 +19,7 @@ function getIndiscoreHisto($siren)
|
||||
WHERE siren=$siren
|
||||
GROUP BY indiScoreDate
|
||||
ORDER BY indiScoreDate DESC";
|
||||
$iDb = new WDB();
|
||||
$iDb = new Metier_Util_Db();
|
||||
$ret = $iDb->query($query);
|
||||
$tabRet = array();
|
||||
while( $ret = $iDb->fetch(MYSQL_ASSOC) ) {
|
||||
@ -73,7 +73,7 @@ function getIndiscoreCache($siren)
|
||||
FROM jo.scores_surveillance
|
||||
WHERE siren=$siren
|
||||
ORDER BY indiScoreDate DESC";
|
||||
$iDb = new WDB();
|
||||
$iDb = new Metier_Util_Db();
|
||||
$ret = $iDb->query($query);
|
||||
$tabRet = array();
|
||||
while( $ret = $iDb->fetch(MYSQL_ASSOC) ) {
|
||||
@ -647,7 +647,7 @@ function calculIndiScore($siren, $nic=0, $accesDist=false, $cycleClient=2, $mail
|
||||
$NIVEAU = $cycleClient; // 1, 2, 3 ou 5 Niveau de version des commentaires
|
||||
|
||||
if ( $db === null ) {
|
||||
$iDb = new WDB();
|
||||
$iDb = new Metier_Util_Db();
|
||||
} else {
|
||||
$iDb = $db;
|
||||
}
|
||||
|
@ -1042,7 +1042,7 @@ class Metier_Scores_MSolvabilite
|
||||
public function __construct($siren, $naf='', $trancheEff='', $effectifReel='', $depSiege_CodePosSiege='', $fj='', $capital='', $capitalDev='', $dateCreaEn='', $dateCreaSiege='', $singularite='', $recme=0, $db = null)
|
||||
{
|
||||
if ( $db === null ) {
|
||||
$this->iDb = new WDB();
|
||||
$this->iDb = new Metier_Util_Db();
|
||||
} else {
|
||||
$this->iDb = $db;
|
||||
}
|
||||
|
@ -18,7 +18,7 @@ class Metier_Util_Log
|
||||
} else {
|
||||
file_put_contents(LOG_PATH.'/debugError.log', date('Y/m/d-H:i:s') .';'. $level .';'. $_SERVER['PHP_SELF'] .';'. $_SERVER['PHP_AUTH_USER'] .';'. $_SERVER['PHP_AUTH_PW'] .';'.
|
||||
$_SERVER['REMOTE_ADDR'] .';'. $_SERVER['HTTP_SOAPACTION'] .';'.$line.';'. $file.';'. $function.';'. $class .';'.
|
||||
@gethostbyaddr($_SERVER['REMOTE_ADDR']) .';'. $HTTP_RAW_POST_DATA .';'. @memory_get_usage().';'. $message . PHP_EOL, FILE_APPEND);
|
||||
@gethostbyaddr($_SERVER['REMOTE_ADDR']) .';'. 'php://input' .';'. @memory_get_usage().';'. $message . "\n", FILE_APPEND);
|
||||
}
|
||||
} else {
|
||||
if (!file_exists(LOG_PATH.'/debug.log')) {
|
||||
@ -28,7 +28,7 @@ class Metier_Util_Log
|
||||
date('Y/m/d-H:i:s') .';'. $level .';'. $_SERVER['PHP_SELF'] .';'. $_SERVER['PHP_AUTH_USER'] .';'.
|
||||
$_SERVER['PHP_AUTH_PW'] .';'. $_SERVER['REMOTE_ADDR'] .';'. $_SERVER['HTTP_SOAPACTION'] .';'.
|
||||
$line.';'. $file.';'. $function.';'. $class .';'. @gethostbyaddr($_SERVER['REMOTE_ADDR']) .';'.
|
||||
$HTTP_RAW_POST_DATA .';'. @memory_get_usage().';'. $message . PHP_EOL, FILE_APPEND);
|
||||
'php://input' .';'. @memory_get_usage().';'. $message . "\n", FILE_APPEND);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -72,7 +72,7 @@ class SdMetier_Scoring_Base extends SdMetier_Scoring_Vars
|
||||
public function __construct($db = null)
|
||||
{
|
||||
if ( $db === null ) {
|
||||
$this->db = new WDB();
|
||||
$this->db = new Metier_Util_Db();
|
||||
}
|
||||
|
||||
// --- Initialisation tableau libellé des variables
|
||||
@ -124,7 +124,7 @@ class SdMetier_Scoring_Base extends SdMetier_Scoring_Vars
|
||||
WHERE siren=$siren
|
||||
GROUP BY indiScoreDate
|
||||
ORDER BY indiScoreDate DESC";
|
||||
$iDb = new WDB();
|
||||
$iDb = new Metier_Util_Db();
|
||||
$ret = $iDb->query($query);
|
||||
$tabRet = array();
|
||||
while( $ret = $iDb->fetch(MYSQL_ASSOC) ) {
|
||||
|
@ -589,7 +589,7 @@ if ( $opts->reprise ) {
|
||||
|
||||
$row = 0;
|
||||
$doublonList = array();
|
||||
$iDb = new WDB();
|
||||
$iDb = new Metier_Util_Db();
|
||||
|
||||
//Vérification et création des données
|
||||
foreach($tabIdentifiant as $item)
|
||||
@ -1446,7 +1446,7 @@ function privilegeData($siren, $nic, $values = false)
|
||||
if ($nbPrivileges>0) {
|
||||
$return = 'Oui';
|
||||
} else {
|
||||
$iDb = new WDB('sdv1');
|
||||
$iDb = new Metier_Util_Db();
|
||||
$sql = "SELECT count(*) AS nbPriv FROM ge_cs2 WHERE cs = 'P' AND dateFin >= NOW() AND dateSuppr=0 AND siren='$siren';";
|
||||
$ret = $iDb->query($sql);
|
||||
if (count($ret) > 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user