13 require_once
"include/inc.header.php";
15 if (!
$_SERVER[
'HTTP_SHIB_APPLICATION_ID'] && !
$_SERVER[
'Shib-Application-ID']) {
16 $message =
"This file must be protected by Shibboleth, otherwise you cannot use Shibboleth authentication! Consult the <a href=\"Services/AuthShibboleth/README.SHIBBOLETH.txt\">documentation</a> on how to configure Shibboleth authentication properly.";
17 $ilias->raiseError($message, $ilias->error_obj->WARNING);
21 if (!
$_SERVER[$ilias->getSetting(
'shib_login')] || !
$_SERVER[$ilias->getSetting(
'shib_firstname')]
22 || !
$_SERVER[$ilias->getSetting(
'shib_lastname')]
23 || !
$_SERVER[$ilias->getSetting(
'shib_email')]
25 $message =
"ILIAS needs at least the attributes '" . $ilias->getSetting(
'shib_login') .
"', '" 26 . $ilias->getSetting(
'shib_firstname') .
"', '" . $ilias->getSetting(
'shib_lastname')
27 .
"' and '" . $ilias->getSetting(
'shib_email')
28 .
"' to work properly !\n<br>Please consult the <a href=\"README.SHIBBOLETH.txt\">documentation</a> on how to configure Shibboleth authentication properly.";
30 $ilias->raiseError($message, $ilias->error_obj->WARNING);
33 include_once
'./Services/User/classes/class.ilUserUtil.php';
if((!isset($_SERVER['DOCUMENT_ROOT'])) OR(empty($_SERVER['DOCUMENT_ROOT']))) $_SERVER['DOCUMENT_ROOT']
static getStartingPointAsUrl()
Get current starting point setting as URL.
static redirect($a_script)
http redirect to other script