Pfad für Datenverbund-Portal in Config ausgelagert

This commit is contained in:
Andreas Österreicher
2018-07-12 12:01:44 +02:00
parent 02cde41939
commit 576d6e646e
3 changed files with 10 additions and 8 deletions
+3 -3
View File
@@ -30,7 +30,7 @@ $rechte->getBerechtigungen($uid);
if(!$rechte->isBerechtigt('admin', null, 'suid'))
die($rechte->errormsg);
$be = DVB_BILDUNGSEINRICHTUNG_CODE;
$be = DVB_BILDUNGSEINRICHTUNG_CODE;
$username = DVB_USERNAME;
$passwort = DVB_PASSWORD;
$meldedatum = '20180415';
@@ -38,7 +38,7 @@ $meldedatum = '20180415';
// OAuth Token holen
$curl = curl_init();
$url = 'https://stubei-q.portal.at/dvb/oauth/token?grant_type=client_credentials';
$url = DVB_PORTAL.'/dvb/oauth/token?grant_type=client_credentials';
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_POST, true);
@@ -75,7 +75,7 @@ else
// Clearing Daten holen
$curl = curl_init();
$url = 'https://stubei-q.portal.at/rws/clearing/0.2/clearing-upload.xml';
$url = DVB_PORTAL.'/rws/clearing/0.2/clearing-upload.xml';
$url .= '?be='.$be.'&meldedatum='.$meldedatum;
curl_setopt($curl, CURLOPT_URL, $url);