2640 lines
72 KiB
PHP
2640 lines
72 KiB
PHP
#!/usr/bin/php -c/var/www/batch/config/php_batch_sd.ini
|
|
<?php
|
|
include_once(FWK_PATH.'common/chiffres.php');
|
|
include_once(FWK_PATH.'common/dates.php');
|
|
include_once(FWK_PATH.'common/curl.php');
|
|
include_once(INCLUDE_PATH.'insee/classMInsee.php');
|
|
include_once(FWK_PATH.'mail/sendMail.php');
|
|
|
|
global $iDb;
|
|
$iDb=new WDB('sdv1');
|
|
$iDb2=new WDB('sdv1');
|
|
|
|
$iInsee=new MInsee();
|
|
|
|
//include_once(INCLUDE_PATH.'insee/classMSigVille.php');
|
|
$cookie=$post=$referer='';
|
|
$timeout=5;
|
|
|
|
//isZonesPrior($codeInsee, $adrCP, $adrVille, $adrNum, $adrBtq, $adrTypVoie, $adrLibVoie)
|
|
$tabRet=$iDb->select('jo.zonage' ,
|
|
'address,rivoli,adrNum,adrIndRep,adrTypeVoie,adrLibVoie,adr_cp,adr_ville,zus,zru,zfu,cucs',
|
|
//"zus='NSP' OR zru='NSP' OR zfu='NSP' OR cucs='NSP'", false, true);
|
|
//"zus='NSP' AND zru='NSP' AND zfu='NSP' AND cucs='NSP'", false, true);
|
|
"zus<>'' OR zru<>'' OR zfu<>'' OR cucs<>''", false, true);
|
|
$nbRet=count($tabRet);
|
|
foreach ($tabRet as $i=>$tabTmp) {
|
|
echo "Adresse n°$i/$nbRet :\t";
|
|
$ret=$iDb2->select('zonages', 'count(*) as nb', "adr_cp='".$tabTmp['adr_cp']
|
|
."' AND adr_ville='".addslashes($tabTmp['adr_ville'])
|
|
."' AND addressIn='".addslashes($tabTmp['address'])."'", false);
|
|
if ($ret[0]['nb']>0) {
|
|
echo "Déjà traitée.".EOL;
|
|
}
|
|
else {
|
|
echo "en cours...".EOL;
|
|
@isZonesPrior(substr($tabTmp['rivoli'],0,5), $tabTmp['adr_cp'], $tabTmp['adr_ville'], $tabTmp['adrNum'],
|
|
$tabTmp['adrIndRep'], $tabTmp['adrTypeVoie'], $tabTmp['adrLibVoie'],
|
|
$tabTmp['address'], $tabTmp['rivoli'], $tabTmp['zus'], $tabTmp['zru'], $tabTmp['zfu'],$tabTmp['cucs']);
|
|
randsleep(7,21);
|
|
//randsleep(1,2);
|
|
}
|
|
}
|
|
die();
|
|
|
|
|
|
$tabRet=$iDb->select('villes.villes_geographie' , 'DISTINCT cp AS cp', "cp>=58370", false, true);
|
|
$nbRet=count($tabRet);
|
|
foreach ($tabRet as $i=>$tabTmp) {
|
|
$cpIn=$tabTmp['cp'];
|
|
$url="http://sig.ville.gouv.fr/adresses/autocompleteCommune?nom_commune=&code_postal=$cpIn";
|
|
$page=getUrl($url, $cookie, $post, $referer, false, 'sig.ville.gouv.fr', '', $timeout);
|
|
$body=$page['body'];
|
|
if (preg_match_all('/<li id="(.*)">(.*) \((.*)\)<\/li>/Uim', $body, $matches)) {
|
|
foreach ($matches[1] as $j=>$cp) {
|
|
$ville=strip_tags(utf8_decode($matches[2][$j]));
|
|
echo $cp.'='.$ville.EOL;
|
|
$iDb->insert('zonesVilles', array( 'cp'=>$cp,
|
|
'commune'=>$ville));
|
|
//getVoiesVille($cp,$ville,"$i/$nbRet");
|
|
}
|
|
}/*
|
|
<li id="80320"><strong>A</strong>blaincourt-Pressoir (80320)</li>
|
|
<li id="62153"><strong>A</strong>blain-Saint-Nazaire (62153)</li>
|
|
*/
|
|
randsleep(7,21);
|
|
}
|
|
function getVoiesVille($cp,$ville,$infos='') {
|
|
global $iDb;
|
|
$cookie=$post=$referer='';
|
|
$timeout=5;
|
|
for ($i=65; $i<=90;$i++) {
|
|
$lettre=chr($i);
|
|
$url="http://sig.ville.gouv.fr/adresses/autocompleteVoie?nom_voie=$lettre&code_postal=$cp&nom_commune=".trimAccent($ville);
|
|
$page=getUrl($url, $cookie, $post, $referer, false, 'sig.ville.gouv.fr', '', $timeout);
|
|
$body=$page['body'];
|
|
if (preg_match_all('/<li id="(.*)">(.*)<\/li>/Uim', $body, $matches)) {
|
|
foreach ($matches[1] as $j=>$id) {
|
|
$voie=strip_tags(utf8_decode($matches[2][$j]));
|
|
echo "$infos:$cp\t$ville\t$id\t$voie".EOL;
|
|
$iDb->insert('zonesVoies', array( 'cp'=>$cp,
|
|
'commune'=>$ville,
|
|
'idVoie'=>$id,
|
|
'libVoie'=>$voie));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
function isZonesPrior($codeInsee, $adrCP, $adrVille, $adrNum, $adrBtq, $adrTypVoie, $adrLibVoie,
|
|
$address,$rivoli,$zus,$zru,$zfu,$cucs) {
|
|
global $iDb;
|
|
$iInsee=new MInsee();
|
|
$cookie=$post=$referer='';
|
|
$timeout=5;
|
|
$url="http://sig.ville.gouv.fr/recherche-adresses-zus-zfu-quartiers-des-cucs";
|
|
$post=array('insee_com'=>$codeInsee,
|
|
'code_postal'=>$adrCP,
|
|
'nom_commune'=>trimAccent($adrVille),
|
|
'num_adresse'=>trim($adrNum.$adrBtq),
|
|
'id_voie'=>'',
|
|
'nom_voie'=>urlencode(trim($iInsee->getCodeVoie($adrTypVoie).' '.$adrLibVoie)),
|
|
'x'=>33,
|
|
'y'=>19,
|
|
);
|
|
$page=getUrl($url, $cookie, $post, $referer, false, 'sig.ville.gouv.fr', '', $timeout);
|
|
$body=$page['body'];
|
|
if (preg_match('/sultats de la recherche pour l\'adresse(?:.*)<strong class="system_title">(.*)<\/strong>/Uis', $body, $matches)) {
|
|
$adrRet=trim(preg_replace('/ +/',' ', utf8_decode($matches[1])));
|
|
}
|
|
|
|
if (preg_match('/<li class="green">(?:.*)<span class="ico">(?:.*)<\/span>(.*)<\/li>/Uis', $body, $matches)) {
|
|
$adrQuartier=trim(utf8_decode($matches[1]));
|
|
|
|
}
|
|
|
|
if (preg_match('/<div style="padding-bottom\:10px"><strong>Pour information \: <\/strong><\/div>(?:.*)<ul>(.*)<\/ul>/Uis', $body, $matches)) {
|
|
$adrInfos=str_replace(' style="padding:0px"','',trim(utf8_decode($matches[1])));
|
|
}
|
|
|
|
if (preg_match('/<a href="\/Cartographie\/(.*)\/voie_id\/(.*)">Acc/i', $body, $matches)) {
|
|
$codeInseeRet=$matches[1];
|
|
$adrVoieId=$matches[2];
|
|
}
|
|
|
|
echo "Adresse=".$adrRet.EOL;
|
|
echo "Quartier=".$adrQuartier.EOL;
|
|
echo "Infos=".$adrInfos.EOL;
|
|
echo "Code Insee Commune=$codeInsee ($codeInseeRet)".EOL;
|
|
echo "Code Voie SIG Ville=$adrVoieId".EOL;
|
|
|
|
$tabInsert=array( 'address'=>$adrRet,
|
|
'quartier'=>$adrQuartier,
|
|
'infos'=>$adrInfos,
|
|
'inseeComIn'=>$codeInsee,
|
|
'inseeComOut'=>$codeInseeRet,
|
|
'adr_cp'=>$adrCP,
|
|
'adr_ville'=>$adrVille,
|
|
'adrNum'=>$adrNum,
|
|
'adrIndRep'=>$adrBtq,
|
|
'adrTypeVoie'=>$adrTypVoie,
|
|
'adrLibVoie'=>$adrLibVoie,
|
|
'adrIdVoie'=>$adrVoieId,
|
|
'addressIn'=>$address,
|
|
'rivoli'=>$rivoli,
|
|
'zus'=>$zus,
|
|
'zru'=>$zru,
|
|
'zfu'=>$zfu,
|
|
'cucs'=>$cucs,
|
|
);
|
|
$iDb->insert('zonages', $tabInsert);
|
|
echo mysql_error().EOL;
|
|
|
|
}
|
|
|
|
//751170935 0123 BD BESSIERES 75017 PARIS 17
|
|
//
|
|
|
|
|
|
$url='http://sig.ville.gouv.fr/recherche-adresses-zus-zfu-quartiers-des-cucs';
|
|
$referer=$url;
|
|
$cookie='';
|
|
|
|
|
|
$tdeb=microtime(1);
|
|
$post=array('insee_com'=>'01053',
|
|
'code_postal'=>'01000',
|
|
'nom_commune'=>'Bourg-en-Bresse',
|
|
'num_adresse'=>'8',
|
|
//'id_voie'=>28,
|
|
'nom_voie'=>'RUE+DES+BLANCHISSERIES',
|
|
'x'=>33,
|
|
'y'=>19,
|
|
);
|
|
$page=getUrl($url, $cookie, $post, $referer, false, 'sig.ville.gouv.fr', '', $timeout);
|
|
|
|
print_r($page);
|
|
die();
|
|
|
|
/*
|
|
$this->duree=round(microtime(1)-$tdeb,3);
|
|
$this->referer=$this->url;
|
|
$this->body=$page['body'];
|
|
$this->codeRetour=$page['code'];
|
|
$this->header=$page['header'];
|
|
$this->cookie=$this->header['Cookie']
|
|
if ($this->codeRetour<>200) return false;
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
die();
|
|
|
|
|
|
$tabSiren=array('007080021',
|
|
'015550882',
|
|
'015851793',
|
|
'016250029',
|
|
'016980062',
|
|
'017251067',
|
|
'054200415',
|
|
'054800958',
|
|
'055200984',
|
|
'055804124',
|
|
'056501711',
|
|
'056502248',
|
|
'056503097',
|
|
'056800659',
|
|
'056806813',
|
|
'057502742',
|
|
'057505539',
|
|
'057506677',
|
|
'057801730',
|
|
'057802753',
|
|
'057806150',
|
|
'057818494',
|
|
'058811670',
|
|
'059804062',
|
|
'060200128',
|
|
'060801388',
|
|
'060801396',
|
|
'061500245',
|
|
'062201009',
|
|
'064502636',
|
|
'067200030',
|
|
'067800425',
|
|
'068502376',
|
|
'068803055',
|
|
'071500763',
|
|
'071502397',
|
|
'072801749',
|
|
'073806440',
|
|
'085480069',
|
|
'085580983',
|
|
'085780534',
|
|
'085980357',
|
|
'086280393',
|
|
'086880036',
|
|
'087280061',
|
|
'095720314',
|
|
'095750311',
|
|
'274400027',
|
|
'276700028',
|
|
'279200224',
|
|
'279300198',
|
|
'300521754',
|
|
'300702305',
|
|
'301165841',
|
|
'301251880',
|
|
'301340584',
|
|
'301364824',
|
|
'301374690',
|
|
'301374922',
|
|
'301501391',
|
|
'301571931',
|
|
'301763405',
|
|
'301790705',
|
|
'301850277',
|
|
'301940011',
|
|
'301984563',
|
|
'301986154',
|
|
'302079462',
|
|
'302135561',
|
|
'302162623',
|
|
'302208301',
|
|
'302333075',
|
|
'302364211',
|
|
'302450911',
|
|
'302475041',
|
|
'302507652',
|
|
'302588462',
|
|
'302590898',
|
|
'302607957',
|
|
'302695614',
|
|
'302698873',
|
|
'302715966',
|
|
'303227730',
|
|
'303336119',
|
|
'303376586',
|
|
'303409619',
|
|
'303656375',
|
|
'303656847',
|
|
'303970230',
|
|
'304201650',
|
|
'304475338',
|
|
'304497852',
|
|
'304602956',
|
|
'304711369',
|
|
'304735640',
|
|
'304927072',
|
|
'304940471',
|
|
'305109779',
|
|
'305151409',
|
|
'305154262',
|
|
'305177545',
|
|
'305205411',
|
|
'305207169',
|
|
'305243081',
|
|
'305243222',
|
|
'305291346',
|
|
'305362162',
|
|
'305376857',
|
|
'305394397',
|
|
'305635039',
|
|
'305756413',
|
|
'305823296',
|
|
'305836033',
|
|
'305918732',
|
|
'306020140',
|
|
'306050188',
|
|
'306100421',
|
|
'306100421',
|
|
'306138900',
|
|
'306243288',
|
|
'306289307',
|
|
'306348632',
|
|
'306916099',
|
|
'307146472',
|
|
'307166934',
|
|
'307191015',
|
|
'307322214',
|
|
'307378489',
|
|
'307570747',
|
|
'308066166',
|
|
'308077635',
|
|
'308148691',
|
|
'308159789',
|
|
'308250570',
|
|
'308403955',
|
|
'308491521',
|
|
'308884998',
|
|
'308973239',
|
|
'309064947',
|
|
'309073625',
|
|
'309256105',
|
|
'309304616',
|
|
'309528115',
|
|
'309745891',
|
|
'309755387',
|
|
'309767440',
|
|
'309892230',
|
|
'309954006',
|
|
'310327895',
|
|
'310370754',
|
|
'310391503',
|
|
'310505748',
|
|
'310519194',
|
|
'310601687',
|
|
'310635032',
|
|
'310635347',
|
|
'310710223',
|
|
'310792023',
|
|
'310818000',
|
|
'310850342',
|
|
'310923008',
|
|
'310949623',
|
|
'310996178',
|
|
'311043194',
|
|
'311098487',
|
|
'311127278',
|
|
'311248637',
|
|
'311549240',
|
|
'311596670',
|
|
'311799456',
|
|
'311999833',
|
|
'312147770',
|
|
'312212301',
|
|
'312261894',
|
|
'312379076',
|
|
'312559982',
|
|
'312560584',
|
|
'313042251',
|
|
'313125437',
|
|
'313167173',
|
|
'313334856',
|
|
'313382418',
|
|
'313384695',
|
|
'313403222',
|
|
'313414062',
|
|
'313777997',
|
|
'313812133',
|
|
'313966129',
|
|
'313986838',
|
|
'314119504',
|
|
'314153420',
|
|
'314397670',
|
|
'314397696',
|
|
'314397712',
|
|
'314428186',
|
|
'314583741',
|
|
'314583758',
|
|
'314583782',
|
|
'314583816',
|
|
'314583824',
|
|
'314583873',
|
|
'314603051',
|
|
'314684960',
|
|
'314722026',
|
|
'314830183',
|
|
'314925090',
|
|
'315000943',
|
|
'315013359',
|
|
'315062752',
|
|
'315064501',
|
|
'315161141',
|
|
'315268664',
|
|
'315334011',
|
|
'315474536',
|
|
'315493510',
|
|
'315549352',
|
|
'315597500',
|
|
'315871640',
|
|
'316016930',
|
|
'316085620',
|
|
'316331065',
|
|
'316807015',
|
|
'316811876',
|
|
'317358380',
|
|
'317686061',
|
|
'317705226',
|
|
'317750818',
|
|
'317780062',
|
|
'317975910',
|
|
'318072360',
|
|
'318148467',
|
|
'318246899',
|
|
'318404811',
|
|
'318649043',
|
|
'318658879',
|
|
'318771995',
|
|
'318883238',
|
|
'318906443',
|
|
'318906591',
|
|
'318919065',
|
|
'319137576',
|
|
'319159877',
|
|
'319427399',
|
|
'319632790',
|
|
'319642252',
|
|
'319883344',
|
|
'320217144',
|
|
'320229644',
|
|
'320442726',
|
|
'320443393',
|
|
'320585110',
|
|
'320733777',
|
|
'320772510',
|
|
'320955396',
|
|
'321006892',
|
|
'321008013',
|
|
'321057978',
|
|
'321163768',
|
|
'321164626',
|
|
'321227506',
|
|
'321263683',
|
|
'321502049',
|
|
'321514002',
|
|
'321616914',
|
|
'321774150',
|
|
'321875205',
|
|
'322306440',
|
|
'322424342',
|
|
'322498270',
|
|
'322566043',
|
|
'322624701',
|
|
'322688474',
|
|
'323057083',
|
|
'323078006',
|
|
'323140392',
|
|
'323376814',
|
|
'323379040',
|
|
'323438028',
|
|
'323438515',
|
|
'323650945',
|
|
'323912998',
|
|
'324103829',
|
|
'324286319',
|
|
'324501006',
|
|
'324559970',
|
|
'324613678',
|
|
'324646090',
|
|
'324905165',
|
|
'324958198',
|
|
'325041481',
|
|
'325520450',
|
|
'325520898',
|
|
'325685139',
|
|
'325720720',
|
|
'325820751',
|
|
'325821072',
|
|
'325857357',
|
|
'326019775',
|
|
'326050044',
|
|
'326094471',
|
|
'326118502',
|
|
'326180544',
|
|
'326300159',
|
|
'326521002',
|
|
'326557725',
|
|
'326685161',
|
|
'326780541',
|
|
'326784709',
|
|
'326820065',
|
|
'326981156',
|
|
'327060273',
|
|
'327280368',
|
|
'327359980',
|
|
'327733184',
|
|
'327948907',
|
|
'327991774',
|
|
'328006432',
|
|
'328031042',
|
|
'328340732',
|
|
'328619721',
|
|
'328621586',
|
|
'328695119',
|
|
'328899042',
|
|
'328905997',
|
|
'328931613',
|
|
'329009559',
|
|
'329021638',
|
|
'329035422',
|
|
'329168157',
|
|
'329198337',
|
|
'329211734',
|
|
'329338883',
|
|
'329368526',
|
|
'329393797',
|
|
'329405211',
|
|
'329426340',
|
|
'329463715',
|
|
'329925010',
|
|
'330139403',
|
|
'330267691',
|
|
'330339144',
|
|
'330730771',
|
|
'331048132',
|
|
'331089474',
|
|
'331312108',
|
|
'331339275',
|
|
'331377036',
|
|
'331405936',
|
|
'331620096',
|
|
'331648014',
|
|
'331888990',
|
|
'331930081',
|
|
'332110097',
|
|
'332332386',
|
|
'332564954',
|
|
'332588995',
|
|
'332726140',
|
|
'332759877',
|
|
'332822485',
|
|
'332868108',
|
|
'332890359',
|
|
'332978485',
|
|
'333202083',
|
|
'333353738',
|
|
'333491066',
|
|
'333583466',
|
|
'333916385',
|
|
'333955912',
|
|
'334057361',
|
|
'334175221',
|
|
'334192903',
|
|
'334204971',
|
|
'334240363',
|
|
'334473352',
|
|
'334503893',
|
|
'334654035',
|
|
'334668852',
|
|
'334873726',
|
|
'335092318',
|
|
'335146312',
|
|
'335351920',
|
|
'337280226',
|
|
'337587422',
|
|
'337598866',
|
|
'337621841',
|
|
'337970487',
|
|
'338112733',
|
|
'338154610',
|
|
'338246317',
|
|
'338253081',
|
|
'338253131',
|
|
'338253230',
|
|
'338481955',
|
|
'338567258',
|
|
'338695869',
|
|
'338905433',
|
|
'338966385',
|
|
'339012452',
|
|
'339030702',
|
|
'339196685',
|
|
'339311714',
|
|
'339379984',
|
|
'339403933',
|
|
'339419962',
|
|
'339447534',
|
|
'339488777',
|
|
'339507394',
|
|
'339718421',
|
|
'339812059',
|
|
'339874703',
|
|
'339946469',
|
|
'339993164',
|
|
'340035526',
|
|
'340137736',
|
|
'340337864',
|
|
'340429653',
|
|
'340545441',
|
|
'340641216',
|
|
'340664564',
|
|
'340709534',
|
|
'340723626',
|
|
'340869353',
|
|
'341095735',
|
|
'341125540',
|
|
'341152833',
|
|
'341203875',
|
|
'341399558',
|
|
'341429488',
|
|
'341459386',
|
|
'341535094',
|
|
'341612687',
|
|
'341633725',
|
|
'341805836',
|
|
'341816064',
|
|
'341972156',
|
|
'342043528',
|
|
'342048055',
|
|
'342192150',
|
|
'342386232',
|
|
'342401965',
|
|
'342404399',
|
|
'342705829',
|
|
'342786837',
|
|
'342837416',
|
|
'342874617',
|
|
'342913191',
|
|
'342948965',
|
|
'342965001',
|
|
'343004511',
|
|
'343043360',
|
|
'343056958',
|
|
'343088134',
|
|
'343207916',
|
|
'343234142',
|
|
'343262622',
|
|
'343282380',
|
|
'343294195',
|
|
'343403531',
|
|
'343488508',
|
|
'343688016',
|
|
'343691374',
|
|
'343862652',
|
|
'343893251',
|
|
'343958138',
|
|
'344026075',
|
|
'344077672',
|
|
'344103270',
|
|
'344122262',
|
|
'344260286',
|
|
'344263702',
|
|
'344307384',
|
|
'344314976',
|
|
'344347232',
|
|
'344496252',
|
|
'344810825',
|
|
'344844998',
|
|
'345034904',
|
|
'345076087',
|
|
'345086177',
|
|
'345130488',
|
|
'345197552',
|
|
'345351183',
|
|
'345404156',
|
|
'347555559',
|
|
'347715914',
|
|
'347806002',
|
|
'347840068',
|
|
'347849382',
|
|
'347902587',
|
|
'347926719',
|
|
'348390626',
|
|
'348505256',
|
|
'348607417',
|
|
'348674169',
|
|
'348899295',
|
|
'348901521',
|
|
'348922055',
|
|
'348936386',
|
|
'348937012',
|
|
'348991555',
|
|
'349074906',
|
|
'349505370',
|
|
'349638395',
|
|
'349942458',
|
|
'350050589',
|
|
'350063384',
|
|
'350127460',
|
|
'350169124',
|
|
'350422622',
|
|
'350693586',
|
|
'350917662',
|
|
'351005582',
|
|
'351151196',
|
|
'351330022',
|
|
'351347232',
|
|
'351466495',
|
|
'351528229',
|
|
'351572888',
|
|
'351630371',
|
|
'351705298',
|
|
'351745724',
|
|
'351867692',
|
|
'351909536',
|
|
'351980925',
|
|
'352009534',
|
|
'352014955',
|
|
'352050512',
|
|
'352170013',
|
|
'352236244',
|
|
'352256424',
|
|
'352335962',
|
|
'352383715',
|
|
'352529499',
|
|
'352533921',
|
|
'352600456',
|
|
'352645501',
|
|
'352739411',
|
|
'352745749',
|
|
'352751143',
|
|
'352774079',
|
|
'352948434',
|
|
'352973622',
|
|
'353150261',
|
|
'353185952',
|
|
'353282106',
|
|
'353296445',
|
|
'353311525',
|
|
'353522204',
|
|
'353669419',
|
|
'353735657',
|
|
'353861909',
|
|
'354083990',
|
|
'354500225',
|
|
'357200054',
|
|
'357801109',
|
|
'358802296',
|
|
'361200389',
|
|
'367801404',
|
|
'369200167',
|
|
'370200537',
|
|
'372800227',
|
|
'376080487',
|
|
'377524319',
|
|
'377679840',
|
|
'377714654',
|
|
'377895404',
|
|
'377917067',
|
|
'378040497',
|
|
'378072144',
|
|
'378168470',
|
|
'378358246',
|
|
'378460281',
|
|
'378499644',
|
|
'378702674',
|
|
'378783237',
|
|
'378901946',
|
|
'378992895',
|
|
'379134166',
|
|
'379142086',
|
|
'379208077',
|
|
'379229529',
|
|
'379455231',
|
|
'379587900',
|
|
'379696545',
|
|
'379706344',
|
|
'379821994',
|
|
'379914237',
|
|
'380110304',
|
|
'380111302',
|
|
'380129866',
|
|
'380160846',
|
|
'380160952',
|
|
'380231316',
|
|
'380342808',
|
|
'380368316',
|
|
'380474494',
|
|
'380484766',
|
|
'380622332',
|
|
'380631929',
|
|
'380744870',
|
|
'380827204',
|
|
'380932590',
|
|
'381031285',
|
|
'381165430',
|
|
'381352939',
|
|
'381548791',
|
|
'381743335',
|
|
'381983568',
|
|
'381997378',
|
|
'382017143',
|
|
'382368389',
|
|
'382372993',
|
|
'382401867',
|
|
'382587558',
|
|
'382597821',
|
|
'382891752',
|
|
'383123874',
|
|
'383196656',
|
|
'383242161',
|
|
'383242161',
|
|
'383252608',
|
|
'383300597',
|
|
'383359510',
|
|
'383392453',
|
|
'383470937',
|
|
'383474814',
|
|
'383475092',
|
|
'383537784',
|
|
'383607090',
|
|
'383703873',
|
|
'383706397',
|
|
'383711678',
|
|
'383719085',
|
|
'383755857',
|
|
'383766581',
|
|
'383866795',
|
|
'383921921',
|
|
'383960135',
|
|
'383966991',
|
|
'383986874',
|
|
'384029237',
|
|
'384030680',
|
|
'384074951',
|
|
'384137857',
|
|
'384560942',
|
|
'384627170',
|
|
'384711909',
|
|
'384956892',
|
|
'385006234',
|
|
'385019070',
|
|
'385215603',
|
|
'385365713',
|
|
'387468663',
|
|
'387949530',
|
|
'388156499',
|
|
'388231847',
|
|
'388237927',
|
|
'388379695',
|
|
'388698201',
|
|
'388727240',
|
|
'388734568',
|
|
'388758617',
|
|
'388777534',
|
|
'388779407',
|
|
'388784928',
|
|
'388866212',
|
|
'388872566',
|
|
'389134016',
|
|
'389187360',
|
|
'389191982',
|
|
'389192030',
|
|
'389192246',
|
|
'389272295',
|
|
'389290586',
|
|
'389297664',
|
|
'389390949',
|
|
'389470303',
|
|
'389516741',
|
|
'389534256',
|
|
'389566019',
|
|
'389571977',
|
|
'389574245',
|
|
'389578428',
|
|
'389589375',
|
|
'389612383',
|
|
'389613365',
|
|
'389625278',
|
|
'389632639',
|
|
'389675018',
|
|
'389730599',
|
|
'389756487',
|
|
'389798927',
|
|
'389818907',
|
|
'390053411',
|
|
'390179687',
|
|
'390398055',
|
|
'390426450',
|
|
'390689529',
|
|
'391125796',
|
|
'391182805',
|
|
'391378239',
|
|
'391543576',
|
|
'391548955',
|
|
'391637865',
|
|
'391673357',
|
|
'391793197',
|
|
'391829462',
|
|
'391890555',
|
|
'391918158',
|
|
'391933397',
|
|
'392032934',
|
|
'392172375',
|
|
'392212122',
|
|
'392213146',
|
|
'392377248',
|
|
'392462529',
|
|
'392468278',
|
|
'392527404',
|
|
'392860243',
|
|
'393118039',
|
|
'393135298',
|
|
'393162433',
|
|
'393193867',
|
|
'393291042',
|
|
'393341516',
|
|
'393341540',
|
|
'393361134',
|
|
'393502463',
|
|
'393525993',
|
|
'393709860',
|
|
'393712286',
|
|
'394671820',
|
|
'394816508',
|
|
'395001852',
|
|
'395780059',
|
|
'396020232',
|
|
'397480930',
|
|
'397509647',
|
|
'397767831',
|
|
'397815754',
|
|
'397894296',
|
|
'398110445',
|
|
'398266098',
|
|
'398471565',
|
|
'398762211',
|
|
'398796383',
|
|
'398827113',
|
|
'398993899',
|
|
'399198951',
|
|
'399226653',
|
|
'399227636',
|
|
'399258516',
|
|
'399292994',
|
|
'399307370',
|
|
'399311745',
|
|
'399315613',
|
|
'399341304',
|
|
'399361468',
|
|
'399395581',
|
|
'399861194',
|
|
'400357885',
|
|
'400519005',
|
|
'400752028',
|
|
'400869277',
|
|
'401182274',
|
|
'401308358',
|
|
'401375316',
|
|
'401449855',
|
|
'401503792',
|
|
'401595483',
|
|
'401948245',
|
|
'402038384',
|
|
'402096267',
|
|
'402222483',
|
|
'402293450',
|
|
'402327597',
|
|
'402638209',
|
|
'402682991',
|
|
'402805527',
|
|
'402959886',
|
|
'402965297',
|
|
'402968655',
|
|
'403056237',
|
|
'403080823',
|
|
'403082852',
|
|
'403104250',
|
|
'403106537',
|
|
'403119431',
|
|
'403138225',
|
|
'403184344',
|
|
'403206964',
|
|
'403210032',
|
|
'403215692',
|
|
'403256944',
|
|
'403259138',
|
|
'403291586',
|
|
'403335904',
|
|
'403335938',
|
|
'403412489',
|
|
'403860968',
|
|
'404164014',
|
|
'404271470',
|
|
'404432775',
|
|
'405650359',
|
|
'406680314',
|
|
'407512938',
|
|
'407794551',
|
|
'407842269',
|
|
'407899392',
|
|
'407904374',
|
|
'407948926',
|
|
'407985308',
|
|
'407986074',
|
|
'407997162',
|
|
'408024719',
|
|
'408063436',
|
|
'408685816',
|
|
'409108115',
|
|
'409160017',
|
|
'409160132',
|
|
'409709607',
|
|
'409722956',
|
|
'409768520',
|
|
'409862372',
|
|
'409867942',
|
|
'409899127',
|
|
'410000566',
|
|
'410034607',
|
|
'410065361',
|
|
'410081640',
|
|
'410140057',
|
|
'410151674',
|
|
'410218010',
|
|
'410267199',
|
|
'410279533',
|
|
'410303481',
|
|
'410313647',
|
|
'410314876',
|
|
'410330765',
|
|
'410335855',
|
|
'410349070',
|
|
'410352777',
|
|
'410354948',
|
|
'410355028',
|
|
'410383467',
|
|
'410409015',
|
|
'410409460',
|
|
'410435911',
|
|
'410436158',
|
|
'410546956',
|
|
'411198880',
|
|
'411393218',
|
|
'411787567',
|
|
'411795610',
|
|
'412082224',
|
|
'412280737',
|
|
'412395709',
|
|
'412431744',
|
|
'412442519',
|
|
'412581878',
|
|
'412798373',
|
|
'413151739',
|
|
'413156795',
|
|
'413156969',
|
|
'413157306',
|
|
'413512013',
|
|
'413691643',
|
|
'413782509',
|
|
'413901760',
|
|
'414030064',
|
|
'414033845',
|
|
'414119735',
|
|
'414138842',
|
|
'414265165',
|
|
'414281345',
|
|
'414337402',
|
|
'414433797',
|
|
'414496315',
|
|
'414537142',
|
|
'414572248',
|
|
'414611384',
|
|
'414642272',
|
|
'414675173',
|
|
'414702506',
|
|
'414719534',
|
|
'414725101',
|
|
'414728337',
|
|
'414728964',
|
|
'414799296',
|
|
'414814798',
|
|
'414815217',
|
|
'414819409',
|
|
'414842062',
|
|
'414945188',
|
|
'414954743',
|
|
'414967984',
|
|
'414969584',
|
|
'415176684',
|
|
'415550284',
|
|
'416220010',
|
|
'417350311',
|
|
'418096392',
|
|
'418679866',
|
|
'419553532',
|
|
'419671425',
|
|
'419683818',
|
|
'419782883',
|
|
'419875786',
|
|
'420495178',
|
|
'420540643',
|
|
'420559056',
|
|
'420611386',
|
|
'420625451',
|
|
'420742660',
|
|
'420797433',
|
|
'420809923',
|
|
'420851651',
|
|
'420879140',
|
|
'420948226',
|
|
'420985962',
|
|
'421098088',
|
|
'421106709',
|
|
'421110198',
|
|
'421131368',
|
|
'421149295',
|
|
'421159575',
|
|
'421162751',
|
|
'421174038',
|
|
'421218132',
|
|
'421255134',
|
|
'421287855',
|
|
'421320268',
|
|
'421343369',
|
|
'421414913',
|
|
'421454406',
|
|
'421627290',
|
|
'423032598',
|
|
'423959287',
|
|
'424059822',
|
|
'424210599',
|
|
'424623759',
|
|
'424691046',
|
|
'424821221',
|
|
'424946184',
|
|
'424982650',
|
|
'424982825',
|
|
'425039773',
|
|
'425050556',
|
|
'425064664',
|
|
'425920212',
|
|
'426420162',
|
|
'428111843',
|
|
'428240352',
|
|
'428267249',
|
|
'428268023',
|
|
'428269104',
|
|
'428559967',
|
|
'428560031',
|
|
'428593230',
|
|
'428611719',
|
|
'428675839',
|
|
'428677124',
|
|
'428682447',
|
|
'428682660',
|
|
'428682686',
|
|
'428685358',
|
|
'428689392',
|
|
'428702419',
|
|
'428706097',
|
|
'428706204',
|
|
'428709786',
|
|
'428734123',
|
|
'428764500',
|
|
'428764682',
|
|
'428891113',
|
|
'429057342',
|
|
'429638786',
|
|
'429707292',
|
|
'429811284',
|
|
'429852668',
|
|
'429955297',
|
|
'430006643',
|
|
'430209650',
|
|
'431657568',
|
|
'431817915',
|
|
'432123735',
|
|
'432505972',
|
|
'432513356',
|
|
'432845279',
|
|
'432930055',
|
|
'433085149',
|
|
'433224847',
|
|
'433250834',
|
|
'433313475',
|
|
'433604196',
|
|
'433623550',
|
|
'433623683',
|
|
'433691862',
|
|
'433719812',
|
|
'433744539',
|
|
'433802147',
|
|
'433824240',
|
|
'433842044',
|
|
'433888674',
|
|
'433891850',
|
|
'433900834',
|
|
'433907748',
|
|
'433927332',
|
|
'433938883',
|
|
'433948031',
|
|
'433962586',
|
|
'433977980',
|
|
'433998473',
|
|
'433999356',
|
|
'434019485',
|
|
'434021028',
|
|
'434021069',
|
|
'434045530',
|
|
'434317293',
|
|
'434691192',
|
|
'434776753',
|
|
'434831335',
|
|
'435151055',
|
|
'435377684',
|
|
'435480520',
|
|
'437181076',
|
|
'437380306',
|
|
'437807795',
|
|
'438050551',
|
|
'438053613',
|
|
'438090797',
|
|
'438102790',
|
|
'438116428',
|
|
'438277030',
|
|
'438834186',
|
|
'439067612',
|
|
'439220203',
|
|
'439436569',
|
|
'439987405',
|
|
'440055861',
|
|
'440056026',
|
|
'440056182',
|
|
'440056356',
|
|
'440056463',
|
|
'440156081',
|
|
'440156180',
|
|
'440198687',
|
|
'440233104',
|
|
'440267177',
|
|
'440294510',
|
|
'440303196',
|
|
'440305282',
|
|
'440319101',
|
|
'440319473',
|
|
'440326692',
|
|
'440372043',
|
|
'440513059',
|
|
'440767549',
|
|
'440916351',
|
|
'441330636',
|
|
'441772340',
|
|
'442439709',
|
|
'442743530',
|
|
'443021241',
|
|
'443177233',
|
|
'443681903',
|
|
'443782784',
|
|
'443806906',
|
|
'443982038',
|
|
'444212955',
|
|
'444329478',
|
|
'444420830',
|
|
'444454326',
|
|
'444502025',
|
|
'444523526',
|
|
'444565659',
|
|
'444575120',
|
|
'444590921',
|
|
'444600464',
|
|
'444608442',
|
|
'444619258',
|
|
'444632756',
|
|
'444718563',
|
|
'444719272',
|
|
'445088057',
|
|
'445331192',
|
|
'445720295',
|
|
'445950074',
|
|
'447754086',
|
|
'447800210',
|
|
'448139634',
|
|
'448457978',
|
|
'448596361',
|
|
'448683789',
|
|
'448863688',
|
|
'449080969',
|
|
'449142348',
|
|
'449354224',
|
|
'449990712',
|
|
'450028832',
|
|
'450372347',
|
|
'450866264',
|
|
'451208292',
|
|
'451221295',
|
|
'451225718',
|
|
'451268353',
|
|
'451321335',
|
|
'451321376',
|
|
'451329908',
|
|
'451353734',
|
|
'451375638',
|
|
'451647903',
|
|
'451678973',
|
|
'452013667',
|
|
'452783970',
|
|
'452791262',
|
|
'453577439',
|
|
'455501452',
|
|
'456204940',
|
|
'456500537',
|
|
'456800937',
|
|
'456801158',
|
|
'457208619',
|
|
'457507267',
|
|
'458502838',
|
|
'458503828',
|
|
'464202373',
|
|
'468500541',
|
|
'469600050',
|
|
'470500943',
|
|
'470801168',
|
|
'475483319',
|
|
'475581591',
|
|
'476980321',
|
|
'477180186',
|
|
'477181010',
|
|
'477280846',
|
|
'477565907',
|
|
'478293764',
|
|
'478355753',
|
|
'478417710',
|
|
'478565898',
|
|
'478725625',
|
|
'478780844',
|
|
'478784218',
|
|
'478989668',
|
|
'479026619',
|
|
'479048597',
|
|
'479162695',
|
|
'479464166',
|
|
'479766800',
|
|
'479766842',
|
|
'479766958',
|
|
'479766982',
|
|
'479766990',
|
|
'479767691',
|
|
'479769093',
|
|
'480081306',
|
|
'480107911',
|
|
'480470152',
|
|
'481212561',
|
|
'481213692',
|
|
'482283694',
|
|
'482605771',
|
|
'482755741',
|
|
'483018370',
|
|
'483479168',
|
|
'484190806',
|
|
'484920194',
|
|
'485720627',
|
|
'486080161',
|
|
'487454340',
|
|
'487706046',
|
|
'487911505',
|
|
'489139436',
|
|
'489332908',
|
|
'489626135',
|
|
'489952457',
|
|
'491167839',
|
|
'491371167',
|
|
'492486402',
|
|
'492713912',
|
|
'493191407',
|
|
'493254908',
|
|
'493265284',
|
|
'493371595',
|
|
'493385785',
|
|
'493394662',
|
|
'493502504',
|
|
'493821821',
|
|
'494887631',
|
|
'494887854',
|
|
'495361602',
|
|
'496680018',
|
|
'498818459',
|
|
'505680298',
|
|
'506950211',
|
|
'515420305',
|
|
'515450088',
|
|
'515580421',
|
|
'525580130',
|
|
'525721189',
|
|
'535420533',
|
|
'542001193',
|
|
'542010053',
|
|
'542014428',
|
|
'542016654',
|
|
'542021829',
|
|
'542034327',
|
|
'542034921',
|
|
'542035753',
|
|
'542036850',
|
|
'542040530',
|
|
'542041363',
|
|
'542041421',
|
|
'542042486',
|
|
'542050315',
|
|
'542050794',
|
|
'542051180',
|
|
'542052766',
|
|
'542052865',
|
|
'542054945',
|
|
'542057336',
|
|
'542064175',
|
|
'542066238',
|
|
'542070958',
|
|
'542076799',
|
|
'542078555',
|
|
'542086616',
|
|
'542088067',
|
|
'542094065',
|
|
'542094750',
|
|
'542095336',
|
|
'542097324',
|
|
'542097944',
|
|
'542107651',
|
|
'542107800',
|
|
'542780036',
|
|
'542880125',
|
|
'542950118',
|
|
'545550378',
|
|
'545620114',
|
|
'545920076',
|
|
'546650334',
|
|
'546650367',
|
|
'546780065',
|
|
'546950379',
|
|
'548202985',
|
|
'548500149',
|
|
'548500982',
|
|
'549850253',
|
|
'550501985',
|
|
'550502942',
|
|
'552002917',
|
|
'552006454',
|
|
'552008831',
|
|
'552011983',
|
|
'552012031',
|
|
'552012585',
|
|
'552014201',
|
|
'552016628',
|
|
'552016834',
|
|
'552018681',
|
|
'552022063',
|
|
'552022105',
|
|
'552024671',
|
|
'552029431',
|
|
'552032302',
|
|
'552032534',
|
|
'552032708',
|
|
'552033821',
|
|
'552034209',
|
|
'552035388',
|
|
'552042285',
|
|
'552043754',
|
|
'552044992',
|
|
'552046484',
|
|
'552046955',
|
|
'552048027',
|
|
'552048837',
|
|
'552049447',
|
|
'552052672',
|
|
'552052698',
|
|
'552059024',
|
|
'552061962',
|
|
'552065187',
|
|
'552076333',
|
|
'552080897',
|
|
'552081317',
|
|
'552081739',
|
|
'552083297',
|
|
'552088536',
|
|
'552093338',
|
|
'552096281',
|
|
'552107955',
|
|
'552108722',
|
|
'552111809',
|
|
'552114175',
|
|
'552115891',
|
|
'552117590',
|
|
'552118465',
|
|
'552118846',
|
|
'552119216',
|
|
'552124984',
|
|
'552141533',
|
|
'556750123',
|
|
'558201075',
|
|
'558501912',
|
|
'559800750',
|
|
'559801675',
|
|
'562000349',
|
|
'562011742',
|
|
'562012427',
|
|
'562013771',
|
|
'562016774',
|
|
'562024422',
|
|
'562029090',
|
|
'562033068',
|
|
'562036624',
|
|
'562037838',
|
|
'562038216',
|
|
'562041525',
|
|
'562042598',
|
|
'562046235',
|
|
'562050856',
|
|
'562053694',
|
|
'562055079',
|
|
'562060269',
|
|
'562061630',
|
|
'562063057',
|
|
'562068155',
|
|
'562071423',
|
|
'562077503',
|
|
'562077792',
|
|
'562091546',
|
|
'562100214',
|
|
'562102558',
|
|
'562107003',
|
|
'562109801',
|
|
'562110346',
|
|
'562110882',
|
|
'562113530',
|
|
'562123513',
|
|
'562136036',
|
|
'562620773',
|
|
'562821033',
|
|
'562880179',
|
|
'562920470',
|
|
'563720374',
|
|
'563820489',
|
|
'568500680',
|
|
'568502165',
|
|
'568504161',
|
|
'569200959',
|
|
'569800873',
|
|
'569801897',
|
|
'570804542',
|
|
'571722669',
|
|
'572025526',
|
|
'572028033',
|
|
'572028041',
|
|
'572040509',
|
|
'572050169',
|
|
'572050334',
|
|
'572053833',
|
|
'572059939',
|
|
'572064145',
|
|
'572067684',
|
|
'572071884',
|
|
'572074110',
|
|
'572075646',
|
|
'572075836',
|
|
'572082253',
|
|
'572086213',
|
|
'572093128',
|
|
'572093243',
|
|
'572102176',
|
|
'572139996',
|
|
'572141885',
|
|
'572149169',
|
|
'572155091',
|
|
'572158269',
|
|
'572165652',
|
|
'572174415',
|
|
'572185684',
|
|
'572201549',
|
|
'572219202',
|
|
'572221034',
|
|
'572232411',
|
|
'573680162',
|
|
'573750619',
|
|
'573820917',
|
|
'575680350',
|
|
'578500803',
|
|
'582001707',
|
|
'582008728',
|
|
'582017810',
|
|
'582018966',
|
|
'582022265',
|
|
'582074944',
|
|
'582081782',
|
|
'582106985',
|
|
'582122230',
|
|
'582131264',
|
|
'582137436',
|
|
'582142816',
|
|
'583720644',
|
|
'584800122',
|
|
'588501312',
|
|
'590800215',
|
|
'592014476',
|
|
'592059182',
|
|
'592067136',
|
|
'592780043',
|
|
'592880264',
|
|
'596820332',
|
|
'597020841',
|
|
'599815073',
|
|
'601251614',
|
|
'601650146',
|
|
'602002461',
|
|
'602010696',
|
|
'602018897',
|
|
'602020737',
|
|
'602025538',
|
|
'602033185',
|
|
'602036444',
|
|
'602045288',
|
|
'602052359',
|
|
'602055311',
|
|
'602060147',
|
|
'602820011',
|
|
'602950206',
|
|
'605520584',
|
|
'605620533',
|
|
'609849153',
|
|
'612016956',
|
|
'612030619',
|
|
'612034496',
|
|
'612035832',
|
|
'612039073',
|
|
'612039495',
|
|
'613650373',
|
|
'615820776',
|
|
'615920188',
|
|
'617120118',
|
|
'619200850',
|
|
'620800581',
|
|
'622009918',
|
|
'622012748',
|
|
'622037083',
|
|
'622037513',
|
|
'622042422',
|
|
'622044287',
|
|
'622057594',
|
|
'622980027',
|
|
'624500195',
|
|
'625780135',
|
|
'627220049',
|
|
'628200222',
|
|
'628502239',
|
|
'629857301',
|
|
'632012100',
|
|
'632013843',
|
|
'632021606',
|
|
'632022703',
|
|
'632041042',
|
|
'632045837',
|
|
'632049128',
|
|
'632050019',
|
|
'632054029',
|
|
'632750139',
|
|
'639804384',
|
|
'642005177',
|
|
'642016166',
|
|
'642020390',
|
|
'642041362',
|
|
'642058739',
|
|
'645680026',
|
|
'652009044',
|
|
'652023961',
|
|
'652031857',
|
|
'652041781',
|
|
'652044991',
|
|
'652054198',
|
|
'653820530',
|
|
'654800689',
|
|
'662006170',
|
|
'662014489',
|
|
'662018068',
|
|
'662025196',
|
|
'662043595',
|
|
'662047216',
|
|
'662049287',
|
|
'662051275',
|
|
'663820413',
|
|
'664800364',
|
|
'668500622',
|
|
'668502966',
|
|
'669801243',
|
|
'670500438',
|
|
'672006483',
|
|
'672008489',
|
|
'672014081',
|
|
'672014099',
|
|
'672024155',
|
|
'672039971',
|
|
'673620399',
|
|
'675580542',
|
|
'675680458',
|
|
'675780167',
|
|
'675980114',
|
|
'676250111',
|
|
'679801886',
|
|
'679803197',
|
|
'680500881',
|
|
'682010376',
|
|
'682026083',
|
|
'682030895',
|
|
'682040837',
|
|
'682780150',
|
|
'685420606',
|
|
'685550444',
|
|
'685550659',
|
|
'687020214',
|
|
'688203173',
|
|
'689800225',
|
|
'692007495',
|
|
'692011760',
|
|
'692015217',
|
|
'692021470',
|
|
'692036924',
|
|
'695480244',
|
|
'695680108',
|
|
'695720821',
|
|
'695721902',
|
|
'696080399',
|
|
'696520410',
|
|
'696780428',
|
|
'698800935',
|
|
'700200983',
|
|
'702001785',
|
|
'702012956',
|
|
'702019902',
|
|
'702021114',
|
|
'702027871',
|
|
'702034398',
|
|
'702055187',
|
|
'703780247',
|
|
'705580108',
|
|
'706220548',
|
|
'706580149',
|
|
'706980182',
|
|
'709200133',
|
|
'709200307',
|
|
'709801781',
|
|
'709806624',
|
|
'709900245',
|
|
'712007962',
|
|
'712018324',
|
|
'712019538',
|
|
'712019801',
|
|
'712023571',
|
|
'712030113',
|
|
'712030154',
|
|
'712034800',
|
|
'712042456',
|
|
'712044502',
|
|
'712049618',
|
|
'712052141',
|
|
'712052612',
|
|
'712620715',
|
|
'713780278',
|
|
'716320619',
|
|
'719805541',
|
|
'720801497',
|
|
'722000395',
|
|
'722000957',
|
|
'722003464',
|
|
'722024742',
|
|
'722028586',
|
|
'722031176',
|
|
'722033115',
|
|
'722034592',
|
|
'722037553',
|
|
'722043858',
|
|
'722045879',
|
|
'722047164',
|
|
'722055738',
|
|
'722063997',
|
|
'722065638',
|
|
'722620119',
|
|
'722621166',
|
|
'722850070',
|
|
'723000642',
|
|
'724501549',
|
|
'726580152',
|
|
'727050080',
|
|
'728206533',
|
|
'729800706',
|
|
'731620316',
|
|
'732075312',
|
|
'735520041',
|
|
'737050187',
|
|
'738205269',
|
|
'739806230',
|
|
'745420653',
|
|
'745550111',
|
|
'745780387',
|
|
'746950179',
|
|
'747252120',
|
|
'755802105',
|
|
'756200135',
|
|
'756200150',
|
|
'756800322',
|
|
'756802328',
|
|
'758501001',
|
|
'758801906',
|
|
'759200454',
|
|
'760800060',
|
|
'761201300',
|
|
'766500011',
|
|
'769800202',
|
|
'772500161',
|
|
'772500369',
|
|
'775424914',
|
|
'775558463',
|
|
'775558489',
|
|
'775572878',
|
|
'775576986',
|
|
'775581812',
|
|
'775588692',
|
|
'775591563',
|
|
'775592496',
|
|
'775604853',
|
|
'775618036',
|
|
'775618945',
|
|
'775629058',
|
|
'775634132',
|
|
'775644149',
|
|
'775658354',
|
|
'775658859',
|
|
'775661390',
|
|
'775662257',
|
|
'775663438',
|
|
'775665433',
|
|
'775667363',
|
|
'775678980',
|
|
'775690191',
|
|
'775690621',
|
|
'775690639',
|
|
'775694995',
|
|
'775700198',
|
|
'775701253',
|
|
'775714991',
|
|
'775726417',
|
|
'775726433',
|
|
'775727233',
|
|
'775728025',
|
|
'775729098',
|
|
'775733835',
|
|
'775784689',
|
|
'776056467',
|
|
'776221467',
|
|
'777379843',
|
|
'778115824',
|
|
'778127613',
|
|
'778147801',
|
|
'778151944',
|
|
'778596502',
|
|
'778740001',
|
|
'779306471',
|
|
'779463223',
|
|
'779859297',
|
|
'780109856',
|
|
'780130175',
|
|
'780503918',
|
|
'781107446',
|
|
'781446521',
|
|
'782855696',
|
|
'784032385',
|
|
'784824153',
|
|
'784939688',
|
|
'785304031',
|
|
'785480351',
|
|
'785769555',
|
|
'785792433',
|
|
'785820507',
|
|
'786920306',
|
|
'788037018',
|
|
'788213825',
|
|
'796380426',
|
|
'796580496',
|
|
'797080850',
|
|
'815420344',
|
|
'837150424',
|
|
'845420280',
|
|
'845880517',
|
|
'846920080',
|
|
'854800422',
|
|
'854800745',
|
|
'855200507',
|
|
'855802369',
|
|
'856200159',
|
|
'857200521',
|
|
'857800692',
|
|
'857802508',
|
|
'867500514',
|
|
'867800427',
|
|
'867800518',
|
|
'869500223',
|
|
'875550667',
|
|
'876580077',
|
|
'885581033',
|
|
'885850248',
|
|
'896820065',
|
|
'897080289',
|
|
'905620035',
|
|
'915722011',
|
|
'916521107',
|
|
'916920697',
|
|
'925520108',
|
|
'925750325',
|
|
'927250217',
|
|
'927350363',
|
|
'936080340',
|
|
'937080414',
|
|
'945550549',
|
|
'945752137',
|
|
'946051018',
|
|
'950026914',
|
|
'950344333',
|
|
'950397653',
|
|
'950596429',
|
|
'950608406',
|
|
'954200838',
|
|
'954503439',
|
|
'954506077',
|
|
'955500293',
|
|
'955503982',
|
|
'955504923',
|
|
'955510029',
|
|
'955511217',
|
|
'955801204',
|
|
'956500367',
|
|
'956501258',
|
|
'956506828',
|
|
'957501851',
|
|
'957503931',
|
|
'957520901',
|
|
'957526858',
|
|
'957528474',
|
|
'957802416',
|
|
'960506152',
|
|
'961503422',
|
|
'962501318',
|
|
'967504697',
|
|
'969510940',
|
|
'971201546',
|
|
'971204052',
|
|
'972200018',
|
|
'973201940',
|
|
'975620675',
|
|
'976320309',
|
|
'997506407',
|
|
'998269211',
|
|
'998348601',
|
|
'998823504');
|
|
$nb=count($tabSiren);
|
|
foreach ($tabSiren as $i=>$siren) {
|
|
echo "$i\t$siren\t";
|
|
$dirs=$iInsee->getDirigeants($siren, false);
|
|
$cac1=$cac2=array();
|
|
foreach ($dirs as $j=>$dir) {
|
|
if ($dir['Fonction']>299 && $dir['Fonction']<305 && $dir['Ancien']==0) {
|
|
switch($dir['Fonction']*1) {
|
|
case 300: // Commissaire aux comptes titulaire
|
|
case 304: // Commissaire aux comptes
|
|
case 302: // Co-commissaire aux comptes titulaire
|
|
$cac1[$dir['DateFct']]=array( 'RS' =>$dir['Societe'],
|
|
'Nom' =>$dir['Nom'],
|
|
'Prenom'=>$dir['Prenom']);
|
|
break;
|
|
default: // Autres commissaires aux comptes suppléeants
|
|
$cac2[$dir['DateFct']]=array( 'RS' =>$dir['Societe'],
|
|
'Nom' =>$dir['Nom'],
|
|
'Prenom'=>$dir['Prenom']);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
krsort($cac1);
|
|
foreach ($cac1 as $cac) break;
|
|
echo @$cac['RS']."\t".@$cac['Nom']."\t".@$cac['Prenom']."\t";
|
|
krsort($cac2);
|
|
foreach ($cac2 as $cac) break;
|
|
echo @$cac['RS']."\t".@$cac['Nom']."\t".@$cac['Prenom'].EOL;
|
|
}
|
|
die();
|
|
|
|
$tabRet=$iDb->select('insee.insee_even' , 'id,insSIREN,insNIC,insEVE,insSIRETPS,insSIRETASS,idFlux', "id >20000000
|
|
AND insEVE
|
|
IN ('M0C', 'M0R', '110', '120', '125')
|
|
AND (insDCRET BETWEEN '2011-06-01' AND '2011-06-30'
|
|
OR insDCREN BETWEEN '2011-06-01' AND '2011-06-30'
|
|
OR idFlux BETWEEN '2011-06-01' AND '2011-06-30')
|
|
AND (insAPEN700 IN ('6810Z', '6820A', '6820B', '6831Z', '6832A', '6832B', '8110Z', '4776Z', '5510Z', '5610A', '5610B', '5621Z', '5630Z')
|
|
OR insAPET700 IN ('6810Z', '6820A', '6820B', '6831Z', '6832A', '6832B', '8110Z', '4776Z', '5510Z', '5610A', '5610B', '5621Z', '5630Z')
|
|
) AND id>=21029406", false, true);
|
|
$nbRet=count($tabRet);
|
|
$fp=fopen(REP_TEMP . 'diffusionCreationMornay_'.DATETIME."_$nbRet.txt", 'w');
|
|
foreach ($tabRet as $i=>$tabSiren) {
|
|
$id=$tabSiren['id'];
|
|
$siren=$tabSiren['insSIREN']*1;
|
|
$nic=$tabSiren['insNIC']*1;
|
|
//echo "DEB $id: $siren $nic".EOL;
|
|
$a=$iInsee->getIdentiteEntreprise($siren,$nic);
|
|
// echo "DEBa $id: $siren $nic".EOL;
|
|
$b=$iInsee->getInfosNotice($siren,$nic);
|
|
// echo "DEBb $id: $siren $nic".EOL;
|
|
$c=$iInsee->getAdresse($siren,$nic);
|
|
// echo "DEBc $id: $siren $nic".EOL;
|
|
$even='';
|
|
$siretPre=0;
|
|
if ($nic<20) $even=100;
|
|
else {
|
|
$even=$tabSiren['insEVE'];
|
|
if ($a['AutreSiret']['pre']['nic']*1>9)
|
|
$siretPre= initstr($siren, 9 , '0', ALIGN_RIGHT) .
|
|
initstr($a['AutreSiret']['pre']['nic'], 5 , '0', ALIGN_RIGHT);
|
|
}
|
|
if ($tabSiren['insSIRETPS']*1>0 && $tabSiren['insSIRETASS']*1==0)
|
|
$siretPre=$tabSiren['insSIRETPS'];
|
|
elseif($tabSiren['insSIRETPS']*1==0 && $tabSiren['insSIRETASS']*1>0)
|
|
$siretPre=$tabSiren['insSIRETASS'];
|
|
|
|
$str= $id."\t".
|
|
$even."\t".
|
|
$a['OrigineCreation']."\t". // Facultatif ORIGINE Origine de la création de l'établissement
|
|
initstr($siretPre, 14 , '0', ALIGN_RIGHT) ."\t".
|
|
initstr($a['Siren'], 9 , '0', ALIGN_RIGHT) . // Obligatoire SIREN Siren de l'entreprise
|
|
initstr($a['Nic'], 5 , '0', ALIGN_RIGHT) ."\t". // Obligatoire NIC Nic de l'établissement
|
|
initstr($a['FJ'], 4 , '0', ALIGN_RIGHT) ."\t". // Obligatoire CJ Catégorie Juridique de l'entreprise
|
|
$a['Nom']."\t".
|
|
$a['NomCommercial']."\t".
|
|
$a['Enseigne']."\t".
|
|
$a['Sigle']."\t".
|
|
$a['AdresseNum']."\t".
|
|
$a['AdresseBtq']."\t".
|
|
$a['AdresseVoie']."\t".
|
|
$a['AdresseRue']."\t".
|
|
$a['Ville']."\t".
|
|
$a['CP']."\t".
|
|
$a['Adresse2']."\t".
|
|
str_replace("\t",' ',$a['Activite'])."\t".
|
|
$a['NafEtab']."\t".
|
|
$a['NafEnt']."\t".
|
|
WDate::dateT('Ymd','d/m/Y',str_replace('-','',$a['DateCreaEn']))."\t".
|
|
WDate::dateT('Ymd','d/m/Y',str_replace('-','',$a['DateCreaEt']))."\t".
|
|
WDate::dateT('Ymd','d/m/Y',str_replace('-','',$tabSiren['idFlux']))."\t".
|
|
initstr(str_replace('.','',$a['Tel']), 10 ) .EOL;
|
|
echo $str;
|
|
fwrite($fp, $str);
|
|
//echo "FIN $id: $siren $nic".EOL;
|
|
}
|
|
|
|
die();
|
|
for($k=100000;$k<700000;$k=$k+100000) {
|
|
$tabRet=$iDb->select('probtp' , 'id,siren,nic,AdresseNum,AdresseBtq,AdresseVoie,AdresseRue,Adresse2,CP,Ville', "1/*sirenValide=0 AND siretValide=0*/ LIMIT $k,100000", false, true);
|
|
$sirenPre=$nbDom=0;
|
|
$nbRet=count($tabRet);
|
|
foreach ($tabRet as $i=>$tabSiren) {
|
|
$id=$tabSiren['id'];
|
|
$siren=$tabSiren['siren'];
|
|
$nic=$tabSiren['nic'];
|
|
/*
|
|
$sirenV=$iInsee->valideSiren($siren);
|
|
if ($sirenV) $siretV=$iInsee->valideSiren($siren,$nic);
|
|
else $siretV=false;
|
|
$tabUpdate=array( 'sirenValide'=>$sirenV,
|
|
'siretValide'=>$siretV,
|
|
);
|
|
*/
|
|
|
|
/*
|
|
if ($siren<>$sirenPre) {
|
|
$mBil=new MBilans($siren);
|
|
$tabBilans=@$mBil->listeBilans();
|
|
}
|
|
if (count($tabBilans)>0) {
|
|
if ($siren<>$sirenPre) {
|
|
$derBilan=current($tabBilans);
|
|
$p=@$mBil->getBilan(WDate::dateT('Ymd','d/m/Y',$derBilan['dateExercice']), $derBilan['typeBilan']);
|
|
}
|
|
if ($p['CONSOLIDE']=='N' || $p['CONSOLIDE']=='S') {
|
|
$unite=$p['MONNAIE_LIV_UNITE'];
|
|
switch ($unite) {
|
|
case 'm':
|
|
case 'M': $mult=1000000; break;
|
|
case 'k':
|
|
case 'K': $mult=1000; break;
|
|
default: $mult=1; break;
|
|
}
|
|
$tabUpdate=array( 'bilanDate'=>@$p['DATE_CLOTURE'],
|
|
'bilanDuree'=>@$p['DUREE_MOIS'],
|
|
'bilanYP'=>@$p['YP'],
|
|
'bilanGG'=>@$p['GG']*$mult,
|
|
'bilanFJ'=>@$p['FJ']*$mult,
|
|
'bilanHN'=>@$p['HN']*$mult,
|
|
);
|
|
$iDb->update('probtp', $tabUpdate, "siren=$siren AND nic=$nic");
|
|
}
|
|
}*/
|
|
|
|
if ($siren<>$sirenPre) {
|
|
/* $tabDir=@$iInsee->getDirigeants($siren, false);
|
|
if (count($tabDir)>0) {
|
|
$dir=$tabDir[0];
|
|
$tabUpdate=@array( 'dirNom'=>$dir['Nom'],
|
|
'dirPre'=>$dir['Prenom'],
|
|
'dirDate'=>WDate::dateT('d/m/Y','Ymd',$dir['NaissDate']),
|
|
);
|
|
$iDb->update('probtp', $tabUpdate, "siren=$siren AND nic=$nic");
|
|
}*/
|
|
/** Adresse de domiciliation
|
|
**/
|
|
$tabDom=@$iInsee->infoAdresseDom( $tabSiren['AdresseNum'],
|
|
$tabSiren['AdresseBtq'],
|
|
$tabSiren['AdresseVoie'],
|
|
$tabSiren['AdresseRue'],
|
|
$tabSiren['Adresse2'],
|
|
$tabSiren['CP'],
|
|
$tabSiren['Ville']);
|
|
if (is_array($tabDom) && count($tabDom)>0) {
|
|
$nbDom++;
|
|
$tabUpdate=array('adrDom'=>1);
|
|
if (preg_match('/^CHEZ (.*)$/i',$tabSiren['Adresse2'], $matches) &&
|
|
!preg_match('/ M | M. | MR | MME | MLLE /i',$tabSiren['Adresse2']))
|
|
$tabUpdate=array('adrDom'=>2);
|
|
|
|
$iDb->update('probtp', $tabUpdate, "siren=$siren AND nic=$nic");
|
|
}
|
|
}
|
|
|
|
if ($i%1000==0) echo date('Y/m/d H:i:s')." - $i/$nbRet : $siren $nic ($id, $nbDom)".EOL;
|
|
$sirenPre=$siren;
|
|
}
|
|
}
|
|
die();
|
|
|
|
print_r(unserialize('a:7:{s:6:"Profil";s:12:"Recouvrement";s:11:"ProfilAutre";s:0:"";s:8:"Identite";s:17:"JACINTO Catherine";s:3:"Tel";s:14:"01 60 17 62 77";s:3:"Fax";s:0:"";s:5:"Email";s:26:"cjacinto@phoenixcontact.fr";s:3:"Ref";s:8:"CJ221106";}'));
|
|
echo EOL;
|
|
print_r(unserialize('a:14:{s:6:"Entrep";a:3:{s:8:"AutreTel";s:0:"";s:9:"AutreMail";s:0:"";s:3:"Rib";a:4:{s:6:"Banque";s:0:"";s:7:"Guichet";s:0:"";s:6:"Compte";s:0:"";s:3:"Cle";s:0:"";}}s:7:"Encours";s:5:"25000";s:11:"NbEcheances";s:1:"3";s:12:"AvisAssureur";s:1:"-";s:4:"Type";s:4:"gold";s:5:"Delai";s:1:"1";s:10:"Precisions";a:4:{s:9:"MontantCA";s:0:"";s:5:"Motif";s:19:"suivi de l\'encours ";s:5:"Autre";s:0:"";s:4:"Type";s:39:"Enquete sur un client (controle credit)";}s:10:"Anciennete";s:2:"15";s:15:"AncienneteDuree";s:6:"Annees";s:13:"ImpayeesChoix";s:3:"non";s:8:"Impayees";a:3:{s:7:"Montant";s:0:"";s:6:"Nombre";s:0:"";s:4:"Date";s:0:"";}s:14:"RetardPaiement";a:3:{s:7:"Montant";s:0:"";s:6:"Nombre";s:0:"";s:4:"Date";s:0:"";}s:6:"Litige";a:1:{s:10:"Precisions";s:0:"";}s:11:"Observation";s:0:"";}'));
|
|
die();
|
|
die(print_r($iInsee->getInfoSirene(29, 444745475)));
|
|
|
|
/*include_once(INCLUDE_PATH.'partenaires/classMGreffes.php');
|
|
include_once(FWK_PATH.'mail/sendMail.php');
|
|
*/
|
|
/*
|
|
function ferie($mois,$an, $alsace = false){
|
|
if (is_array($mois)){
|
|
$retour = array();
|
|
foreach ($mois as $m) {
|
|
$r = ferie($m, $an);
|
|
$retour[$m] = ferie($m, $an);
|
|
}
|
|
return $retour;
|
|
}
|
|
|
|
// calcul des jours feries pour un seul mois.
|
|
if (mktime(0,0,0,$mois, 1,$an) == -1) { return FALSE;}
|
|
list($mois, $an) = explode("-", date("m-Y", mktime(0,0,0,$mois, 1, $an)));
|
|
$an = intval($an);
|
|
$mois = intval($mois);
|
|
|
|
// une constante
|
|
$jour = 3600*24;
|
|
|
|
// les jours fixes
|
|
$ferie["Jour de l'an"][1] = 1;
|
|
$ferie["Armistice 39-45 "][5] = 8;
|
|
$ferie["Toussaint"][11] = 1;
|
|
$ferie["Armistice 14-18"][11] = 11;
|
|
$ferie["Assomption"][8] = 15;
|
|
$ferie["Fête du travail "][5] = 1;
|
|
$ferie["Fête nationale"][7] = 14;
|
|
$ferie["Noël"][12] = 25;
|
|
if ($alsace)
|
|
$ferie["Lendemain de Noël (Alsace seulement)"][12] = 25;
|
|
|
|
// quelques fetes mobiles
|
|
$lundi_de_paques['mois'] = date( "n", easter_date($an)+1*$jour);
|
|
$lundi_de_paques['jour'] = date( "j", easter_date($an)+1*$jour);
|
|
$lundi_de_paques['nom'] = "Lundi de Pâques";
|
|
|
|
$ascencion['mois'] = date( "n", easter_date($an)+39*$jour);
|
|
$ascencion['jour'] = date( "j", easter_date($an)+39*$jour);
|
|
$ascencion['nom'] = "Jeudi de l'ascenscion";
|
|
|
|
$vendredi_saint['mois'] = date( "n", easter_date($an)-2*$jour);
|
|
$vendredi_saint['jour'] = date( "j", easter_date($an)-2*$jour);
|
|
$vendredi_saint['nom'] = "Vendredi Saint";
|
|
|
|
$lundi_de_pentecote['mois'] = date( "n", easter_date($an)+50*$jour);
|
|
$lundi_de_pentecote['jour'] = date( "j", easter_date($an)+50*$jour);
|
|
$lundi_de_pentecote['nom'] = "Lundi de Pentecôte";
|
|
|
|
|
|
$ferie[$lundi_de_paques['nom']][$lundi_de_paques['mois']] = $lundi_de_paques['jour'];
|
|
$ferie[$lundi_de_pentecote['nom']][$lundi_de_pentecote['mois']] = $lundi_de_pentecote['jour'];
|
|
$ferie[$ascencion['nom']][$ascencion['mois']] = $ascencion['jour'];
|
|
if ($alsace)
|
|
$ferie[$vendredi_saint['nom']." (Alsace)"][$vendredi_saint['mois']]= $vendredi_saint['jour'];
|
|
|
|
// reponse
|
|
$reponse = array();
|
|
while(list($nom, $date)= each($ferie)){
|
|
if (isset($date[$mois])){
|
|
// une fete a date calculable
|
|
$reponse[$date[$mois]]=$nom;
|
|
}
|
|
}
|
|
ksort($reponse);
|
|
return $reponse;
|
|
}
|
|
function tab_jours_feriés($an) {
|
|
return ferie(range(1,12),$an);
|
|
}
|
|
|
|
|
|
$année = date("Y");
|
|
$tabFeriers = tab_jours_feriés($année);
|
|
print_r($tabFeriers);
|
|
die();
|
|
|
|
echo "<br>";
|
|
while (list($mois, $tab) = each ($fériées)) {
|
|
while (list($jour, $fete) = each ($tab)) {
|
|
echo "$jour/$mois/$année => $fete \n<br>";
|
|
}
|
|
|
|
}
|
|
*/
|
|
|
|
$iDb=new WDB();
|
|
$tabRet=$iDb->select('boamp_detail' , 'id, raisonSociale, adresse, cp, ville', "1");
|
|
foreach ($tabRet as $i=>$tabInsert) {
|
|
$idTxtUnique=trim(strtoupper(preg_replace('/[^a-z0-9]/i', '',
|
|
$tabInsert['raisonSociale'].$tabInsert['adresse'].
|
|
$tabInsert['cp'].$tabInsert['ville'])));
|
|
$id=$tabInsert['id'];
|
|
if ($idTxtUnique<>'') {
|
|
$iDb->update('boamp_detail',
|
|
array( 'idTxtUnique'=>$idTxtUnique,
|
|
'dateUpdate'=>0), "id=$id");
|
|
//die($id);
|
|
}
|
|
}
|
|
|
|
//echo WDate::jourFerie($argv[1],1);
|
|
|
|
|
|
die();
|
|
|
|
|
|
$tabFormesJuridiques=array(
|
|
"SociÉtÉ À responsabilitÉ limitÉe À capital variable" ,
|
|
"Societe anonyme cooperative a capital variable" ,
|
|
"Societe a responsabilite limitee" ,
|
|
"Sarl membre de la ce ou partie À l'accord sur l'espace Économique europÉen" ,
|
|
"Soci t par actions simplifi e" ,
|
|
"Soci t responsabilit limit e" ,
|
|
"Societe civile de personnes" ,
|
|
"Societe civile particuliere" ,
|
|
"Societe d'exercice liberal par actions simplifiee" ,
|
|
"Societe anonyme cooperative" ,
|
|
"Societe par actions simplifiee a associe unique" ,
|
|
"Societe cooperative" ,
|
|
"S a r l a capital variable" ,
|
|
"Ste en commandite simple" ,
|
|
"Soci t responsabilit limit e capital variable" ,
|
|
"Groupememt d'interet economique commercial" ,
|
|
"Societe par action simplifiee" ,
|
|
"Societe d'exercice liberal par actions simplifiee - selas" ,
|
|
"Entreprise unipersonnelle a responsabilite limitee" ,
|
|
"Soci t en nom collectif" ,
|
|
"SociÉtÉ par actions simplifiÉe unipersonnelle" ,
|
|
"Societe civile de contruction/vente" ,
|
|
"Societe anonyme a capital variable" ,
|
|
"Societe cooperative de production a responsabilite limitee a capital variable" ,
|
|
"Cooperative ouvriere de product. a resp. lim." ,
|
|
"SociÉtÉ civile de moyens" ,
|
|
"Affaire personnelle commerÇant" ,
|
|
"SociÉtÉ civile professionnelle" ,
|
|
"Societe anonyme d'economie mixte locale" ,
|
|
"Sa a conseil d administration" ,
|
|
"Societe cooperative agricole a capital variable" ,
|
|
"Cooperative ouvriere de production en a.r.l." ,
|
|
"Sarl a associe unique et a capital variable" ,
|
|
"Societe anonyme d'h.l.m." ,
|
|
"Cooperative agricole" ,
|
|
"Soci t civile" ,
|
|
"Soci t civile immobili re" ,
|
|
"SociÉtÉ d'exercice libÉral À responsabilitÉ limitÉe" ,
|
|
"Societe cooperative de production a responsabilite limitee" ,
|
|
"Societe cooperative de travailleurs (anonyme)" ,
|
|
"Soci?t? ? responsabilit? limit?e" ,
|
|
"Cooperative ouvriere de production (anonyme)" ,
|
|
"Sa coop de production a cap variable" ,
|
|
"Sa À conseil d'administration" ,
|
|
"Societe d'interet collectif agricole" ,
|
|
"Societe civile agricole" ,
|
|
"Societe cooperative de production anonyme a capital variable" ,
|
|
"Sarl unipersonnelle" ,
|
|
"Sarl cooperative" ,
|
|
"Societe cooperative agricole" ,
|
|
"Societe anonyme" ,
|
|
"Societe par actions simplifiee a directoire et conseil de surveillance" ,
|
|
"Ste coop. prod. a resp. limitee a capital personnel et variable" ,
|
|
"Societe d'actions simplifiee a capital variable" ,
|
|
"SociÉtÉ anonyme coopÉrative d'intÉrÊt collectif pour l'accession À la propriÉtÉ" ,
|
|
"Groupement d'intÉrÊt Économique" ,
|
|
"Societe d'exercice liberal a responsabilite limitee unipersonnelle%" ,
|
|
"Societe cooperative de production" ,
|
|
"Societe cooperative ouvriere de production anonyme a capital variable" ,
|
|
"Sarl a capital variable" ,
|
|
"Societe anonyme d'economie mixte" ,
|
|
"Societe cooperative anonyme d interet collectif agricole" ,
|
|
"Sasu sociÉtÉ par actions simplifiÉe À associÉ unique" ,
|
|
"Societe d'investissements a capital variable (s.i.c.a.v)" ,
|
|
"Societe cooperative de production (sarl)" ,
|
|
"Societe d exercice liberal par actions simplifiees" ,
|
|
"Union de cooperatives agricoles" ,
|
|
"Societe cooperative ouvriere de production anonyme" ,
|
|
"Soci t de droit tranger" ,
|
|
"Societe civile professionnelle d'architectes" ,
|
|
"Societe civile construction vente" ,
|
|
"Soci t anonyme" ,
|
|
"Societe a responsabilite limitee de presse" ,
|
|
"Societe anonyme sportive professionnelle" ,
|
|
"Societe anonyme a conseil d administration" ,
|
|
"Cooperative d'utilisation de materiel agricole (c.u.m.a.)" ,
|
|
"Societe civile cooperative de construction" ,
|
|
"Sarl de presse" ,
|
|
"Groupememt d interet economique commercial" ,
|
|
"Sa À directoire" ,
|
|
"Societe cooperative de production en a.r.l a capital variable" ,
|
|
"Societe cooperative interet collectif agricole s.a." ,
|
|
"Societe cooperative d'interet collectif anonyme" ,
|
|
"Societe cooperative a capital et personnel variables" ,
|
|
"SociÉtÉ coopÉrative À capital variable en la forme sarl" ,
|
|
"Ste coop de banque a capital var." ,
|
|
"Groupement agricole d'exploitation en commun - gaec" ,
|
|
"SociÉtÉ civile d'exploitation agricole" ,
|
|
"Societe cooperative a capital variable et a responsabilite limitee" ,
|
|
"Societe anonyme cooperative de production d hlm" ,
|
|
"Societe anonyme cooperative de commercants detaillants" ,
|
|
"SociÉtÉ civile professionnelle de commissaires-priseurs" ,
|
|
"Societe anonyme cooperative de banque populaire" ,
|
|
"Cooperative de consommation en s.a" ,
|
|
"Sa coopÉrative d'intÉrÊt collectif pour accession À la propriÉtÉ (sacicap)" ,
|
|
"Cooperative de commercants detaillants" ,
|
|
"Societe anonyme cooperative a capital et personnel variable" ,
|
|
"SociÉtÉ coopÉrative de production À forme sarl." ,
|
|
"SociÉtÉ civile immobiliÈre de construction vente" ,
|
|
"Ano societe anonyme a directoire et conseil de surveillance" ,
|
|
"Societe par actions simplifiee" ,
|
|
"Societe cooperative ouvriere de production" ,
|
|
"Societe civile d exploitation agricole a responsabilite limitee" ,
|
|
"Exploitation agricole À responsabilitÉ limitÉe" ,
|
|
"E.u.r.l." ,
|
|
"Societe d'economie mixte a conseil d'administration" ,
|
|
"Groupement europeen d'interet economique" ,
|
|
"Societe anonyme cooperative de production d'hlm" ,
|
|
"Groupement d int r t conomique" ,
|
|
"Cooperative ouvriere de product a resp lim " ,
|
|
"Soci t responsabilit limit e coop rative ouvri re de production et de cr dit" ,
|
|
"Societe cooperative credit capital variable a.r.l." ,
|
|
"Societe d'exercice liberal a forme anonyme _ selafa" ,
|
|
"SociÉtÉ À responsabilitÉ limitÉe coopÉrative ouvriÈre de production et de crÉdit" ,
|
|
"SociÉtÉ anonyme d'hlm" ,
|
|
"Societe d interet collectif agricole" ,
|
|
"Societe cooperative d'artisan en arl a capital variable" ,
|
|
"SociÉtÉ d'exercice libÉral À forme anonyme" ,
|
|
"SociÉtÉ d'investissement À capital variable" ,
|
|
"Societe civile d exploitation agricole" ,
|
|
"Societe en nom collectif" ,
|
|
"Sarl cooperative ouvriere de production et de credit a capital variable" ,
|
|
"SociÉtÉ par actions simplifiÉe À capital variable" ,
|
|
"SociÉtÉ par actions simplifiÉe À associÉ unique et capital variable" ,
|
|
"S a cooperative d entreprises a capital variable" ,
|
|
"Sa a conseil d'administration" ,
|
|
"Societe cooperative de credit" ,
|
|
"Societe de presse" ,
|
|
"Societe anonyme a participation ouvriere" ,
|
|
"Groupement d interet economique commercial" ,
|
|
"SociÉtÉ anonyme d'Économie mixte À conseil d'administration" ,
|
|
"Ste d'exercice liberal a responsabilite limitee unipersonnel" ,
|
|
"Societe cooperative d interet collectif a responsabilite limitee" ,
|
|
"Sa d'economie mixte a conseil administratif" ,
|
|
"Societe d'economie mixte a directoire" ,
|
|
"Cette societe est une sas unipersonnelle" ,
|
|
"Sa sportive professionnelle" ,
|
|
"S.a.r.l. a capital personnel variable" ,
|
|
"Societe civile professionnelle d'huissiers" ,
|
|
"Sa cooperative ouvriere de production et de credit a conseil d administration" ,
|
|
"Gaec a capital variable" ,
|
|
"Groupement agricole d exploitation en commun" ,
|
|
"Societe d'exercice liberal par actions simplifiees (selas)" ,
|
|
"Societe civile d attribution" ,
|
|
"Soci t par actions simplifi e associ unique" ,
|
|
"Societe civile de construction vente" ,
|
|
"Cooperative agricole a capital variable" ,
|
|
"Societe cooperative de production en a.r.l. a capital variable" ,
|
|
"Societe anonyme a capital et personnel variables" ,
|
|
"SociÉtÉ anonyme À conseil d'administration" ,
|
|
"Sa coop. ouvriere de production capital et personnel variables" ,
|
|
"Union de societes cooperatives a directoire" ,
|
|
"Societe d'exercice liber. forme anonyme" ,
|
|
"Sarl d'intÉrÊt collectif et agricole À capital variable" ,
|
|
"Sarl cooperative a capital variable" ,
|
|
"Sa coop rative ouvri re de prod et cr dit conseil d adm capital variable" ,
|
|
"Banque cooperative regie par la loi n.99-532 du 25.06.1999" ,
|
|
"Societe anonyme au capital et personnel variable" ,
|
|
"Soci?t? par actions simplifi?e unipersonnelle" ,
|
|
"Sa d'int. collectif agri. a ca" ,
|
|
"Soci t civile de moyens" ,
|
|
"Societe a responsabilite limite de droit britanique" ,
|
|
"Ste cooperative de banque populaire" ,
|
|
"Societe cooperative de consommation anonyme" ,
|
|
"Societe anonyme d hlm" ,
|
|
"SociÉtÉ coopÉrative de travailleurs À forme sarl" ,
|
|
"Cooperative d'interet collectif a conseil d'administration" ,
|
|
"SociÉtÉ de placement À prÉpondÉrance immobiliÈre À capital variable" ,
|
|
"Societe cooperative a capital variable" ,
|
|
"Etablissement public national" ,
|
|
"Sica anonyme a directoire et conseil de surveillance" ,
|
|
"Eurl a capital variable" ,
|
|
"Sarl cooperative ouvriere de production" ,
|
|
"Sa coop. de production hlm a capital variable" ,
|
|
"Socite civile cooperative de credit" ,
|
|
"Societe a responsabilite limitee d'architecture" ,
|
|
"Cooperative ouvriere de production en a r l " ,
|
|
"Societe cooperative a responsabilite limitee a capital variable" ,
|
|
"Sarl sous forme de eurl" ,
|
|
"Ano societe anonyme cooperative a capital variable a directoire" ,
|
|
"Cooperative artisanale en s.a.r.l" ,
|
|
"SociÉtÉ civile professionnelle d'avocats" ,
|
|
"Ste cooperative artisanale resp.lim.capital variable" ,
|
|
"Societe anonyme capital fixe coop. de banque" ,
|
|
"Societe cooperative de banque populaire a capital variable" ,
|
|
"Cooperative ouvriere de production en s.a.r.l." ,
|
|
"Societe cooperative ouvriere de production a.s.a" ,
|
|
"SociÉtÉ coopÉrative de production À forme anonyme À capital variable" ,
|
|
"Sa coopÉrative ouvriÈre de prod. et crÉdit À conseil d'adm. À capital variable" ,
|
|
"Banque cooperative" ,
|
|
"Sarl membre de la ce ou partie l accord sur l espace conomique europ en" ,
|
|
"Sascop" ,
|
|
"Sa cooperative de consommation a conseil d administration a capital variable" ,
|
|
"Societe anonyme a conseil de surveillance" ,
|
|
"Cooperative artisanale" ,
|
|
"Cooperative maritime" ,
|
|
"Ste d'investissements a capital variable a conseil -sicav-" ,
|
|
"Societe civile en construction vente (loi de 1971) titre1" ,
|
|
"Societe cooperative artisanale a resp. limitee et a capital variable" ,
|
|
"SociÉtÉ anonyme coopÉrative de consommation À conseil d'administration" ,
|
|
"Ville de" ,
|
|
"Societe anonyme de presse" ,
|
|
"Association loi 1901 Émettant des obligations" ,
|
|
"Societe civile professionnelle de notaires" ,
|
|
"Societe civile immobiliere d attribution" ,
|
|
"Societe civile professionnelle de chirurgien-dentistes" ,
|
|
"Ste cooperative d'interet collectif a responsabilite limitee a capital variable" ,
|
|
"Arl societe a associe unique" ,
|
|
"Soci?t? par actions simplifi?e" ,
|
|
"SociÉtÉ coopÉrative ouvriÈre de production en la forme sarl" ,
|
|
"Soci t responsabilit limit e coop rative capital variable" ,
|
|
"Societe anonyme de consom a capital variable" ,
|
|
"Entreprise unipersonnelle a responsabilite limitee (eurl) et a capital variable" ,
|
|
"Societe cooperative de credit a capital variable" ,
|
|
"Societe civile de placement immobilier" ,
|
|
"Ste civile a participation ouvriere a capital variable" ,
|
|
"Societe anonyme cooperative de banque populaire a capital variable" ,
|
|
"Societe d'investissement a capital variable d'actionnariat salaries (sicavas)" ,
|
|
"Cooperative a capital variable (sarl)" ,
|
|
"Soci t en commandite simple" ,
|
|
"Soci t d exercice lib ral responsabilit limit e" ,
|
|
"Societe anonyme cooperative maritime a capital variable" ,
|
|
"Societe d interet collectif agricole arl" ,
|
|
"Societe anonyme cooperative a directoire" ,
|
|
"Cooperative professionnelle" ,
|
|
"S.a cooperative d'entreprises a capital variable" ,
|
|
"SociÉtÉ ÉtrangÈre immatriculÉe au rcs" ,
|
|
"Soci?t? ? responsabilit? limit?e ? associ? unique" ,
|
|
"SociÉtÉ civile professionnelle d'huissiers de justice" ,
|
|
"Soci t responsabilit limit e associ unique" ,
|
|
"SociÉtÉ coopÉrative ouvriÈre de production en la forme sa" ,
|
|
"Sa coop de commercants detail a ca" ,
|
|
"StÉ de participation financiÈre de profession libÉrale À responsabilitÉ limitÉe" ,
|
|
"Societe cooperative maritime" ,
|
|
"Autres formes juridiques" ,
|
|
"Societe civile immobiliere de construction / vente" ,
|
|
"Banque coopÉrative rÉgie par la loi n°99-532 du 25 juin 1999" ,
|
|
"SociÉtÉ coopÉrative exploitÉe sous forme de sarl" ,
|
|
"Sarl associe unique" ,
|
|
"Institution regie - articles l141-1 et suivants du code monetaire et financier" ,
|
|
"Societe de droit anglais" ,
|
|
"Societe cooperative de consommation anonyme a capital variable" ,
|
|
"Union de cooperative" ,
|
|
"Societe en commandite simple a capital variable" ,
|
|
"StÉ coop de crÉdit À capital variable et À responsabilitÉ statutairement limitÉe" ,
|
|
"Societe par actions" ,
|
|
"Societe cooperative artisanale a responsabilite limitee" ,
|
|
"Societe civile professionnelle de medecins" ,
|
|
"Union de cooperatives a capital variable" ,
|
|
"Societe anonyme d'h.l.m. a conseil" ,
|
|
"Sarl cooperative artisanale" ,
|
|
"Societe civile de construction" ,
|
|
"Societe civile d exploitation viticole" ,
|
|
"E.u.r.l a capital variable" ,
|
|
"Entreprise unipersonnelle a responsabilite limitee et a capital variable" ,
|
|
"Ste anonyme a directoire et conseil d'orientation & surveillance" ,
|
|
"Sarl unipersonnelle sportive" ,
|
|
"Scop a responsabilite limitee et a capital variable" ,
|
|
"SociÉtÉ À responsabilitÉ limitÉe unipersonnelle À capital variable" ,
|
|
"Sarl a capital et personnel variable" ,
|
|
"Societe d exploitation agricole a responsabilite limitee" ,
|
|
"Sarl - eurl a capital variable" ,
|
|
"StÉ anonyme coopÉrative d'intÉrÊt collectif pour l'accession À la propriÉtÉ" ,
|
|
"Ste anonyme cooperative a capital variable" ,
|
|
"Etablissement de credit a but non lucratif" ,
|
|
"Societe cooperative de travailleurs (sarl)" ,
|
|
"E.a.r.l." ,
|
|
"Societe d assurance" ,
|
|
"Regie municipale" ,
|
|
"Coop. de crÉdit À responsabilitÉ statutairement limitÉe et À capital variable" ,
|
|
"Societe" ,
|
|
"Sarl non membre de la ce ou non partie À l'accord sur l'espace Économique eur." ,
|
|
"Cooperative a capital variable en a r l " ,
|
|
"Societe anonyme a directoire et conseil de surveillance" ,
|
|
"Cooperative ouvriere de production (sa)" ,
|
|
"Societe civile d'attribution" ,
|
|
"Societe civile de portefeuille" ,
|
|
"SociÉtÉ anonyme coopÉrative d'intÉrÊt collectif pour accession À la propriÉtÉ" ,
|
|
"Affaire personnelle artisan" ,
|
|
"Scp de mandataires judiciaires À la liquidation des entreprises" ,
|
|
"Societe civile immobiliere a capital variable" ,
|
|
"S a r l de presse" ,
|
|
"Sarl d'architecture" ,
|
|
"Societe civile professionnelle de mandataires liquidateurs" ,
|
|
"Societe anonyme cooperative de consommation" ,
|
|
);
|
|
|
|
function getCodeFJ($forme_juridique) {
|
|
$iDb=new WDB();
|
|
$variable=false;
|
|
$strVar='';
|
|
if (preg_match('/capital variable/i', $forme_juridique)) {
|
|
$fj2=addslashes(preg_replace('/capital variable/i',' ',$forme_juridique));
|
|
$variable=true;
|
|
$strVar='VAR';
|
|
} else
|
|
$fj2=addslashes($forme_juridique);
|
|
|
|
$tmp=$iDb->select(
|
|
'tabFJur',
|
|
"code, libelle, MATCH(libelle) AGAINST('$fj2') AS score",
|
|
"code>1000 AND MATCH(libelle) AGAINST('$fj2')", false, MYSQL_ASSOC);
|
|
echo "A RECHERCHER : '$forme_juridique'".EOL;
|
|
foreach($tmp as $i=>$tabFj) {
|
|
if ($i==0) {
|
|
echo strtoupper(" $i - ".$tabFj['libelle']." ==> ".$tabFj['code']).EOL;
|
|
$code=$tabFj['code'];
|
|
} else
|
|
echo " $i - ".$tabFj['libelle']." ==> ".$tabFj['code'].EOL;
|
|
if ($i>20) break;
|
|
}
|
|
while(true){
|
|
echo "Confirmez le code $code pour '$forme_juridique' ?".EOL;
|
|
$saisie = trim(strtoupper(fgets(STDIN)));
|
|
if (strlen($saisie)==4 && $saisie*1>1000) {
|
|
$code=$saisie;
|
|
break;
|
|
/* if (!$iBodacc->addDeviseBodacc($devise, $saisie) && mysql_errno()<>1062) {
|
|
echo date ('Y/m/d - H:i:s')." - ERREUR ".mysql_errno()." : Insertion des informations de chargement en base impossible :".EOL;
|
|
echo date ('Y/m/d - H:i:s'). mysql_error();
|
|
die();
|
|
}
|
|
$capital_devise=$saisie;
|
|
break;*/
|
|
} elseif ($saisie=='?') {
|
|
$code=$saisie;
|
|
break;
|
|
} elseif (strlen($saisie)==0) {
|
|
break;
|
|
}
|
|
}
|
|
return array('code'=>$code,'variable'=>$variable,'var'=>$strVar);
|
|
}
|
|
$fp=fopen('./libFJ.php','w+');
|
|
$fp2=fopen('./libFJ.csv','w+');
|
|
foreach($tabFormesJuridiques as $i=>$fj) {
|
|
//echo "$i:$fj = "..EOL;
|
|
$fj2=prepareString(strtoupper(trim($fj)));
|
|
$tabCode=getCodeFJ($fj2);
|
|
$code=$tabCode['code'];
|
|
$var=$tabCode['variable'];
|
|
$strVar=$tabCode['var'];
|
|
fwrite($fp, "case '$fj2':\t\$cj=$code; \$capitalType='$strVar'; break;".EOL);
|
|
fwrite($fp2, "$fj2\t$code\t$strVar".EOL);
|
|
}
|
|
|
|
|
|
echo simpleWhois('indiscore', 'fr', true);
|
|
die();
|
|
$tab = array( 'toto.com',
|
|
'momo.com',
|
|
'yoyo.fr',
|
|
'65qs4df56q4qsdqsd.com',
|
|
'koko.net',
|
|
'zozo.net',
|
|
'soso.net',
|
|
'qoqo.net',
|
|
'qs56d4qs56d4qs65d4qs564.net',
|
|
'xoxo.net',
|
|
'coco.com',
|
|
'hoho.fr',
|
|
'nono.net',
|
|
'dodo.com',
|
|
);
|
|
// Récupération des résultats
|
|
$output = false;
|
|
// Exécution
|
|
if($tab){
|
|
foreach($tab as $host){
|
|
list($domain, $tdl) = split(".", $host, 2); // le 2 permet de s'arreter après le 1er point ce qui permet d'avoir des extenssion du type .com.fr
|
|
$output[$host] = simpleWhois($domain, $tdl);
|
|
}
|
|
}
|
|
// Affichage "brut" des données traitées
|
|
if($output){
|
|
print_r($output);
|
|
}
|
|
?>
|