Correction script getBodaccPdf
This commit is contained in:
parent
4ccfddc7b2
commit
3e6af9a0d7
@ -9,13 +9,15 @@ if ($argc != 4){
|
||||
}
|
||||
|
||||
$type = strtoupper($argv[1]);
|
||||
if (!in_array($type, array('A', 'B', 'C'))) {
|
||||
exit;
|
||||
}
|
||||
|
||||
$annee = $argv[2];
|
||||
|
||||
$num = $argv[3];
|
||||
$c = strlen($num);
|
||||
for($i=0;$i<4-$c;$i++){
|
||||
$num = '0'.$num;
|
||||
}
|
||||
$num = str_pad($num, 4, '0', STR_PAD_LEFT);
|
||||
|
||||
$annonce = 1;
|
||||
|
||||
function getPage($url, $curl_data = '', $verbose=false)
|
||||
@ -96,10 +98,10 @@ $data = array(
|
||||
'datepublicationmax' => '',
|
||||
'datepublicationmin' => '',
|
||||
'motscles' => '',
|
||||
'numeroannonce' => $num,
|
||||
'numeroannonce' => '1',
|
||||
'numerodepartement' => 'tout',
|
||||
'numeroparution' => $annee.$num,
|
||||
'publication' => 'A',
|
||||
'publication' => $type,
|
||||
'registre' => '',
|
||||
'typeannonce' => 'tout',
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user