U7 REEKS N wedstrijden

U8 reeks S
[insert_php]

$url = ‘https://extranet.e-kickoff.com/kbvb_publiek/kalender.do’;
$fields = array(
‘selectedSerPlus_id’ => ‘PCC82404’,
‘KBVB_datumvan_jaar’ => ‘2000’,
‘KBVB_datumvan_maand’ => ’09’,
‘KBVB_datumvan_dag’ => ’01’,
‘KBVB_datumtot_jaar’ => ‘2099’,
‘KBVB_datumtot_maand’ => ’08’,
‘KBVB_datumtot_dag’ => ’31’,
‘useCssNewFootbel’ => ‘hosted-pages’,
‘wat’ => ‘data’,
‘enkel’ => ’test’,
‘LANG’ => ‘N’,
‘secid’ => ‘1271’,
//’useCssNewFootbel’ => ”,
‘matricule’ => ‘01784’,
‘command’ => ‘Bekijken’
);

$fields_string = ”;
foreach($fields as $key=>$value) { $fields_string .= $key.’=’.$value.’&’; }
rtrim($fields_string, ‘&’);

$ch = curl_init();

curl_setopt($ch,CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch,CURLOPT_POST, count($fields));
curl_setopt($ch,CURLOPT_POSTFIELDS, $fields_string);

//execute post
$result = curl_exec($ch);

//close connection
curl_close($ch);

$patroon = ‘/.*().*/is’;
preg_match($patroon, $result, $tabel);

$patroon = ‘/.*().*/is’;
preg_match($patroon, $result, $tabel);

$patroon = ‘/.*().*/is’;
preg_match($patroon, $result, $tabel2);

$patroon = ‘/.*().*/is’;
preg_match($patroon, $result, $tabel3);

$patroon = ‘/.*().*/is’;
preg_match($patroon, $result, $tabel4);

$patroon = ‘/.*().*/is’;
preg_match($patroon, $result, $tabel5);

$output1 = str_replace(‘
‘,”,$tabel[1]);
$output1 = str_replace(‘
‘,”,$output1);
$output1 = str_replace(‘

‘,”,$output1);
$output1 = str_replace(‘

‘,”,$output1);
$output1 = preg_replace( “/\r|\n/”, “”, $output1 );

$output2 = str_replace(‘
‘,”,$tabel2[1]);
$output2 = str_replace(‘
‘,”,$output2);
$output2 = str_replace(‘

‘,”,$output2);
$output2 = str_replace(‘

‘,”,$output2);
$output2 = preg_replace( “/\r|\n/”, “”, $output2 );

$output3 = str_replace(‘
‘,”,$tabel3[1]);
$output3 = str_replace(‘
‘,”,$output3);
$output3 = str_replace(‘

‘,”,$output3);
$output3 = str_replace(‘

‘,”,$output3);
$output3 = preg_replace( “/\r|\n/”, “”, $output3 );

$output4 = str_replace(‘
‘,”,$tabel4[1]);
$output4 = str_replace(‘
‘,”,$output4);
$output4 = str_replace(‘

‘,”,$output4);
$output4 = str_replace(‘

‘,”,$output4);
$output4 = preg_replace( “/\r|\n/”, “”, $output4 );

$output5 = str_replace(‘
‘,”,$tabel5[1]);
$output5 = str_replace(‘
‘,”,$output5);
$output5 = str_replace(‘

‘,”,$output5);
$output5 = str_replace(‘

‘,”,$output5);
$output5 = preg_replace( “/\r|\n/”, “”, $output5 );

echo $output1;
echo $output2;
echo $output3;
echo $output4;
echo $output5;

[/insert_php]