From 576d6e646e98e389d10558d56854d2019bea9e6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96sterreicher?= Date: Thu, 12 Jul 2018 12:01:44 +0200 Subject: [PATCH] =?UTF-8?q?Pfad=20f=C3=BCr=20Datenverbund-Portal=20in=20Co?= =?UTF-8?q?nfig=20ausgelagert?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/vilesci.config-default.inc.php | 2 ++ include/dvb.class.php | 10 +++++----- system/matrikelnummer_clearing_download.php | 6 +++--- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/config/vilesci.config-default.inc.php b/config/vilesci.config-default.inc.php index 713367bd7..049109471 100644 --- a/config/vilesci.config-default.inc.php +++ b/config/vilesci.config-default.inc.php @@ -191,6 +191,8 @@ define('SIGNATUR_DEFAULT_PROFILE', 'FHC_AMT_GROSS_DE'); */ // Code der Bildungseinrichtung define('DVB_BILDUNGSEINRICHTUNG_CODE','XX'); +// Datenverbund-Portal +define('DVB_PORTAL', 'https://stubei-p.portal.at'); // Username define('DVB_USERNAME','username'); // Passwort diff --git a/include/dvb.class.php b/include/dvb.class.php index 6d570a740..69b407388 100644 --- a/include/dvb.class.php +++ b/include/dvb.class.php @@ -32,11 +32,11 @@ require_once(dirname(__FILE__).'/prestudent.class.php'); class dvb extends basis_db { - const DVB_URL_WEBSERVICE_OAUTH = 'https://stubei-q.portal.at/dvb/oauth/token'; - const DVB_URL_WEBSERVICE_SVNR = 'https://stubei-q.portal.at/rws/0.2/simpleStudentBySozialVersicherungsnummer.xml'; - const DVB_URL_WEBSERVICE_ERSATZKZ = 'https://stubei-q.portal.at/rws/0.2/simpleStudentByErsatzKennzeichen.xml'; - const DVB_URL_WEBSERVICE_RESERVIERUNG = 'https://stubei-q.portal.at/dvb/matrikelnummern/1.0/reservierung.xml'; - const DVB_URL_WEBSERVICE_MELDUNG = 'https://stubei-q.portal.at/dvb/matrikelnummern/1.0/meldung.xml'; + const DVB_URL_WEBSERVICE_OAUTH = DVB_PORTAL.'/dvb/oauth/token'; + const DVB_URL_WEBSERVICE_SVNR = DVB_PORTAL.'/rws/0.2/simpleStudentBySozialVersicherungsnummer.xml'; + const DVB_URL_WEBSERVICE_ERSATZKZ = DVB_PORTAL.'/rws/0.2/simpleStudentByErsatzKennzeichen.xml'; + const DVB_URL_WEBSERVICE_RESERVIERUNG = DVB_PORTAL.'/dvb/matrikelnummern/1.0/reservierung.xml'; + const DVB_URL_WEBSERVICE_MELDUNG = DVB_PORTAL.'/dvb/matrikelnummern/1.0/meldung.xml'; public $authentication; private $username; diff --git a/system/matrikelnummer_clearing_download.php b/system/matrikelnummer_clearing_download.php index 4f2534d97..aacbd8a3e 100644 --- a/system/matrikelnummer_clearing_download.php +++ b/system/matrikelnummer_clearing_download.php @@ -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);