X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fplatal.php;h=12493356f1d27f8eed076595d93629bceff87b56;hb=50579de4416173b970ad17fe8953414ebd2fa1c3;hp=951803b91c7c2e6300ee5e792e96b3c2bb5e0c4d;hpb=a0c034efcf0777541e087500e94853f515cda1ca;p=platal.git diff --git a/modules/platal.php b/modules/platal.php index 951803b..1249335 100644 --- a/modules/platal.php +++ b/modules/platal.php @@ -62,6 +62,11 @@ class PlatalModule extends PLModule function handler_index(&$page) { + // Include X-XRDS-Location response-header for Yadis discovery + global $globals; + header('X-XRDS-Location: ' . $globals->baseurl . '/openid/idp_xrds'); + + // Redirect to the suitable page if (S::logged()) { pl_redirect('events'); } else if (!@$GLOBALS['IS_XNET_SITE']) { @@ -87,7 +92,7 @@ class PlatalModule extends PLModule $page->changeTpl('platal/changeLog.tpl'); $clog = pl_entities(file_get_contents(dirname(__FILE__).'/../ChangeLog')); - $clog = preg_replace('/=+\s*/', '
', $clog);
+        $clog = preg_replace('/===+\s*/', '

', $clog);
         // url catch only (not all wiki syntax)
         $clog = preg_replace(array(
             '/((?:https?|ftp):\/\/(?:\.*,*[\w@~%$£µ&i#\-+=_\/\?;])*)/ui',
@@ -464,6 +469,10 @@ Adresse de secours : " . Post::v('email') : ""));
 
     function handler_review(&$page, $action = null, $mode = null) 
     {
+        // Include X-XRDS-Location response-header for Yadis discovery
+        global $globals;
+        header('X-XRDS-Location: ' . $globals->baseurl . '/openid/idp_xrds');
+
         $this->load('review.inc.php');
         $dom = 'Review';
         if (@$GLOBALS['IS_XNET_SITE']) {