diff --git a/.gitignore b/.gitignore index b04edb1..4752afd 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,4 @@ src/Language/es.lang.ini .tmp/* !.tmp/index.php /nbproject/private/ +/simplesaml/ \ No newline at end of file diff --git a/autoload.php b/autoload.php index 8e49188..2582c12 100755 --- a/autoload.php +++ b/autoload.php @@ -31,3 +31,7 @@ spl_autoload_register( function( $class ) { require $file; } }); + + +//simplesaml +require_once('../simplesamlphp/lib/_autoload.php'); \ No newline at end of file diff --git a/inc/header.inc.php b/inc/header.inc.php index 8a5170d..7b7c0bd 100644 --- a/inc/header.inc.php +++ b/inc/header.inc.php @@ -50,6 +50,11 @@ $timeplus = new DateTime($StaticFunctions->getUTC(), new DateTimeZone('UTC')); // DUMB WAY TO CALCULATE SOME TIMES $timeplus->setTimezone(new DateTimeZone("$timezone")); $timenow = $timeplus->format('Y-m-d H:i:s'); + + //simplesaml + //$as = new \SimpleSAML\Auth\Simple('default-sp'); + //$as->requireAuth(); + //$attributes = $as->getAttributes(); ?> diff --git a/index.php b/index.php index 950abd0..b62bd9d 100644 --- a/index.php +++ b/index.php @@ -231,7 +231,7 @@ $(document).on("click", ".open-voidModal", function (e) { - getSite($siteid, $uid, "0", "0")[0]["sites_region"] == "EMEA") { ?> + getSite($siteid, $uid, "0", "0")[0]["sites_region"] == "EMEA") { ?>