Skip to content
Snippets Groups Projects
Commit 773ce8d9 authored by Andreas Åkre Solberg's avatar Andreas Åkre Solberg
Browse files

Added more hostname diagnostics

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@519 44740490-163a-0410-bde0-09ae8108e29a
parent 82c340c9
No related branches found
No related tags found
No related merge requests found
...@@ -28,16 +28,23 @@ if (!isset($session) || !$session->isValid('login-admin') ) { ...@@ -28,16 +28,23 @@ if (!isset($session) || !$session->isValid('login-admin') ) {
$attributes = array(); $attributes = array();
$attributes['selfURLhost'] = array(SimpleSAML_Utilities::selfURLhost());
$attributes['selfURLNoQuery'] = array(SimpleSAML_Utilities::selfURLNoQuery());
$attributes['selfURL'] = array(SimpleSAML_Utilities::selfURL());
$attributes['selfHostWithPath'] = array(SimpleSAML_Utilities::getSelfHostWithPath());
$attributes['HTTP_HOST'] = array($_SERVER['HTTP_HOST']); $attributes['HTTP_HOST'] = array($_SERVER['HTTP_HOST']);
$attributes['HTTPS'] = array($_SERVER['HTTPS']); $attributes['HTTPS'] = array($_SERVER['HTTPS']);
$attributes['SERVER_PROTOCOL'] = array($_SERVER['SERVER_PROTOCOL']); $attributes['SERVER_PROTOCOL'] = array($_SERVER['SERVER_PROTOCOL']);
$attributes['SERVER_PORT'] = array($_SERVER['SERVER_PORT']); $attributes['SERVER_PORT'] = array($_SERVER['SERVER_PORT']);
$attributes['Utilities_getSelfHost()'] = array(SimpleSAML_Utilities::getSelfHost());
$attributes['Utilities_getSelfProtocol()'] = array(SimpleSAML_Utilities::getSelfProtocol());
$attributes['Utilities_selfURLhost()'] = array(SimpleSAML_Utilities::selfURLhost());
$attributes['Utilities_selfURLNoQuery()'] = array(SimpleSAML_Utilities::selfURLNoQuery());
$attributes['Utilities_getScriptName()'] = array(SimpleSAML_Utilities::getScriptName());
$attributes['Utilities_getSelfHostWithPath()'] = array(SimpleSAML_Utilities::getSelfHostWithPath());
$attributes['Utilities_getFirstPathElement()'] = array(SimpleSAML_Utilities::getFirstPathElement());
$attributes['Utilities_selfURL()'] = array(SimpleSAML_Utilities::selfURL());
$attributes['Utilities_getRequestURI()'] = array(SimpleSAML_Utilities::getRequestURI());
......
...@@ -47,7 +47,7 @@ if ($config->getValue('enable.openid-provider') === true) ...@@ -47,7 +47,7 @@ if ($config->getValue('enable.openid-provider') === true)
'text' => 'link_openidprovider'); 'text' => 'link_openidprovider');
$links[] = array( $links[] = array(
'href' => 'example-simple/hostnames.php', 'href' => 'example-simple/hostnames.php?dummy=1',
'text' => 'link_diagnostics'); 'text' => 'link_diagnostics');
$links[] = array( $links[] = array(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment