Revision: 1724
Author: olavmrk
Date: Fri Aug 28 00:47:22 2009
Log: Fix up frontpage URLs.
http://code.google.com/p/simplesamlphp/source/detail?r=1724

Modified:
  /trunk/modules/core/www/frontpage_auth.php
  /trunk/modules/core/www/frontpage_config.php
  /trunk/modules/core/www/frontpage_federation.php

=======================================
--- /trunk/modules/core/www/frontpage_auth.php  Thu Aug 27 07:05:39 2009
+++ /trunk/modules/core/www/frontpage_auth.php  Fri Aug 28 00:47:22 2009
@@ -31,12 +31,12 @@

  if ($config->getValue('enable.saml20-sp') === true)
        $links_auth[] = array(
-               'href' => 'example-simple/saml2-example.php',
+               'href' =>  
SimpleSAML_Utilities::getBaseURL() . 'example-simple/saml2-example.php',
                'text' => '{core:frontpage:link_saml2example}');

  if ($config->getValue('enable.shib13-sp') === true)
        $links_auth[] = array(
-               'href' => 'example-simple/shib13-example.php',
+               'href' =>  
SimpleSAML_Utilities::getBaseURL() . 'example-simple/shib13-example.php',
                'text' => '{core:frontpage:link_shib13example}');


=======================================
--- /trunk/modules/core/www/frontpage_config.php        Thu Aug 27 07:05:39 2009
+++ /trunk/modules/core/www/frontpage_config.php        Fri Aug 28 00:47:22 2009
@@ -34,17 +34,17 @@


  $links_config[] = array(
-       'href' => 'example-simple/hostnames.php?dummy=1',
+       'href' =>  
SimpleSAML_Utilities::getBaseURL() . 'example-simple/hostnames.php?dummy=1',
        'text' => '{core:frontpage:link_diagnostics}'
  );

  $links_config[] = array(
-       'href' => 'admin/phpinfo.php',
+       'href' => SimpleSAML_Utilities::getBaseURL() . 'admin/phpinfo.php',
        'text' => '{core:frontpage:link_phpinfo}'
  );

  $links_config[] = array(
-       'href' => 'admin/config.php',
+       'href' => SimpleSAML_Utilities::getBaseURL() . 'admin/config.php',
        'text' => '{core:frontpage:link_configcheck}',
  );

=======================================
--- /trunk/modules/core/www/frontpage_federation.php    Thu Aug 27 07:05:39  
2009
+++ /trunk/modules/core/www/frontpage_federation.php    Fri Aug 28 00:47:22  
2009
@@ -46,7 +46,7 @@
        foreach($metadataSources as $name => $url) {
                if(!$config->getBoolean('enable.' . $name, FALSE)) continue;

-               $url = SimpleSAML_Utilities::resolveURL($url);
+               $url = SimpleSAML_Utilities::getBaseURL() . $url;
                $linkTarget = 
SimpleSAML_Utilities::addURLparameter($publishURL,  
array('url' => $url));
                $links_federation[] = array(
                        'href' => $linkTarget,
@@ -57,12 +57,12 @@


  $links_federation[] = array(
-       'href' => 'admin/metadata.php',
+       'href' => SimpleSAML_Utilities::getBaseURL() . 'admin/metadata.php',
        'text' => '{core:frontpage:link_meta_overview}'
  );

  $links_federation[] = array(
-       'href' => 'admin/metadata-converter.php',
+       'href' =>  
SimpleSAML_Utilities::getBaseURL() . 'admin/metadata-converter.php',
        'text' => '{core:frontpage:link_xmlconvert}',
  );


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"simpleSAMLphp commits" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/simplesamlphp-commits?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to