mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-23 09:52:22 +00:00
Pfad für Datenverbund-Portal in Config ausgelagert
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user