diff --git a/templates/includes/header.php b/templates/includes/header.php index f0c4e4df3ea3567cc0f47bb2796c022711af74c9..30e734832c5394067d4b1b1f2cd8c1369ac41545 100644 --- a/templates/includes/header.php +++ b/templates/includes/header.php @@ -24,7 +24,7 @@ if (array_key_exists('pageid', $this->data)) { 'page' => $this->data['pageid'] ); - SimpleSAML_Module::callHooks('htmlinject', $hookinfo); + SimpleSAML\Module::callHooks('htmlinject', $hookinfo); } // - o - o - o - o - o - o - o - o - o - o - o - o - diff --git a/templates/metadata.php b/templates/metadata.php index a30e2cc1d29d1607101d29eb22303e37bfffd9d7..99f5f60fe6be39f79c25de89d124cbab5147b589 100644 --- a/templates/metadata.php +++ b/templates/metadata.php @@ -44,7 +44,7 @@ if (array_key_exists('available_certs', $this->data)) { ?> <?php foreach (array_keys($this->data['available_certs']) as $certName) { echo '<li><a href="'. - htmlspecialchars(SimpleSAML_Module::getModuleURL('saml/idp/certs.php').'/'.$certName).'">'.$certName. + htmlspecialchars(SimpleSAML\Module::getModuleURL('saml/idp/certs.php').'/'.$certName).'">'.$certName. '</a>'; if ($this->data['available_certs'][$certName]['certFingerprint'][0] === diff --git a/www/errorreport.php b/www/errorreport.php index 723b3e7015eaa6552b5207286d8320ea5b775573..d99f313b99cb712be944ed536136f213c97988d2 100644 --- a/www/errorreport.php +++ b/www/errorreport.php @@ -22,7 +22,7 @@ try { $session = SimpleSAML_Session::getSessionFromRequest(); $data = $session->getData('core:errorreport', $reportId); } catch (Exception $e) { - SimpleSAML_Logger::error('Error loading error report data: '.var_export($e->getMessage(), true)); + SimpleSAML\Logger::error('Error loading error report data: '.var_export($e->getMessage(), true)); } if ($data === null) { @@ -113,7 +113,7 @@ if ($config->getBoolean('errorreporting', true) && $toAddress !== 'na@example.or $email = new SimpleSAML_XHTML_EMail($toAddress, 'SimpleSAMLphp error report', $from); $email->setBody($message); $email->send(); - SimpleSAML_Logger::error('Report with id '.$reportId.' sent to <'.$toAddress.'>.'); + SimpleSAML\Logger::error('Report with id '.$reportId.' sent to <'.$toAddress.'>.'); } // redirect the user back to this page to clear the POST request diff --git a/www/index.php b/www/index.php index 5d3134049ba061d55de855a8d0b479ac7c35bad1..42344ed94eeb4331489f6ccccf579ae215cc09b0 100644 --- a/www/index.php +++ b/www/index.php @@ -2,4 +2,4 @@ require_once('_include.php'); -\SimpleSAML\Utils\HTTP::redirectTrustedURL(SimpleSAML_Module::getModuleURL('core/frontpage_welcome.php')); +\SimpleSAML\Utils\HTTP::redirectTrustedURL(SimpleSAML\Module::getModuleURL('core/frontpage_welcome.php')); diff --git a/www/module.php b/www/module.php index 66baa3ddd89b846c0accb59d80692afa3216a864..9c09c6582dbce68e266e03261c29f2b1e5b89c90 100644 --- a/www/module.php +++ b/www/module.php @@ -64,7 +64,7 @@ try { $url = ''; } - if (!SimpleSAML_Module::isModuleEnabled($module)) { + if (!SimpleSAML\Module::isModuleEnabled($module)) { throw new SimpleSAML_Error_NotFound('The module \''.$module.'\' was either not found, or wasn\'t enabled.'); } @@ -78,7 +78,7 @@ try { throw new SimpleSAML_Error_BadRequest('Requested URL contained \'./\'.'); } - $moduleDir = SimpleSAML_Module::getModuleDir($module).'/www/'; + $moduleDir = SimpleSAML\Module::getModuleDir($module).'/www/'; // check for '.php/' in the path, the presence of which indicates that another php-script should handle the request for ($phpPos = strpos($url, '.php/'); $phpPos !== false; $phpPos = strpos($url, '.php/', $phpPos + 1)) { @@ -117,7 +117,7 @@ try { if (!file_exists($path)) { // file not found - SimpleSAML_Logger::info('Could not find file \''.$path.'\'.'); + SimpleSAML\Logger::info('Could not find file \''.$path.'\'.'); throw new SimpleSAML_Error_NotFound('The URL wasn\'t found in the module.'); } @@ -147,7 +147,7 @@ try { $contentType = mime_content_type($path); } else { // mime_content_type doesn't exist. Return a default MIME type - SimpleSAML_Logger::warning('Unable to determine mime content type of file: '.$path); + SimpleSAML\Logger::warning('Unable to determine mime content type of file: '.$path); $contentType = 'application/octet-stream'; } } diff --git a/www/saml2/idp/SSOService.php b/www/saml2/idp/SSOService.php index d10eade1fa7327016908a2b67362b4849115265e..c893fb4395dd88cf5cbc6928aac960ee9423f4f8 100644 --- a/www/saml2/idp/SSOService.php +++ b/www/saml2/idp/SSOService.php @@ -10,7 +10,7 @@ require_once('../../_include.php'); -SimpleSAML_Logger::info('SAML2.0 - IdP.SSOService: Accessing SAML 2.0 IdP endpoint SSOService'); +SimpleSAML\Logger::info('SAML2.0 - IdP.SSOService: Accessing SAML 2.0 IdP endpoint SSOService'); $metadata = SimpleSAML_Metadata_MetaDataStorageHandler::getMetadataHandler(); $idpEntityId = $metadata->getMetaDataCurrentEntityID('saml20-idp-hosted'); diff --git a/www/saml2/idp/SingleLogoutService.php b/www/saml2/idp/SingleLogoutService.php index 6305c8e28d285dcda971ed4518acc47ebca4b92b..3105eea7f399f1686219a4804d8a0c7e205b0bcd 100644 --- a/www/saml2/idp/SingleLogoutService.php +++ b/www/saml2/idp/SingleLogoutService.php @@ -10,7 +10,7 @@ require_once('../../_include.php'); -SimpleSAML_Logger::info('SAML2.0 - IdP.SingleLogoutService: Accessing SAML 2.0 IdP endpoint SingleLogoutService'); +SimpleSAML\Logger::info('SAML2.0 - IdP.SingleLogoutService: Accessing SAML 2.0 IdP endpoint SingleLogoutService'); $metadata = SimpleSAML_Metadata_MetaDataStorageHandler::getMetadataHandler(); $idpEntityId = $metadata->getMetaDataCurrentEntityID('saml20-idp-hosted'); diff --git a/www/saml2/idp/initSLO.php b/www/saml2/idp/initSLO.php index a33182fe68f8edeef2ef1422de2a8e4e341d78e0..26085a7f73ee02f9b28aba04cc629c9b4fdd2e99 100644 --- a/www/saml2/idp/initSLO.php +++ b/www/saml2/idp/initSLO.php @@ -5,7 +5,7 @@ $metadata = SimpleSAML_Metadata_MetaDataStorageHandler::getMetadataHandler(); $idpEntityId = $metadata->getMetaDataCurrentEntityID('saml20-idp-hosted'); $idp = SimpleSAML_IdP::getById('saml2:'.$idpEntityId); -SimpleSAML_Logger::info('SAML2.0 - IdP.initSLO: Accessing SAML 2.0 IdP endpoint init Single Logout'); +SimpleSAML\Logger::info('SAML2.0 - IdP.initSLO: Accessing SAML 2.0 IdP endpoint init Single Logout'); if (!isset($_GET['RelayState'])) { throw new SimpleSAML_Error_Error('NORELAYSTATE'); diff --git a/www/shib13/idp/SSOService.php b/www/shib13/idp/SSOService.php index c0129c3828894cfb372f81a3cc3b37f34f3c069d..000d70a3980f3aa116f5ae4e4c989c84701449aa 100644 --- a/www/shib13/idp/SSOService.php +++ b/www/shib13/idp/SSOService.php @@ -10,7 +10,7 @@ require_once('../../_include.php'); -SimpleSAML_Logger::info('Shib1.3 - IdP.SSOService: Accessing Shibboleth 1.3 IdP endpoint SSOService'); +SimpleSAML\Logger::info('Shib1.3 - IdP.SSOService: Accessing Shibboleth 1.3 IdP endpoint SSOService'); $metadata = SimpleSAML_Metadata_MetaDataStorageHandler::getMetadataHandler(); $idpEntityId = $metadata->getMetaDataCurrentEntityID('shib13-idp-hosted');