X-Git-Url: https://git.cweiske.de/phorkie.git/blobdiff_plain/6eef15cdc3bef5971d8ffe95bcbcaff368c87e69..56857f47034f0f8ec87954b8ad60c4c6d65280ac:/www/display.php diff --git a/www/display.php b/www/display.php index ffc9786..464741b 100644 --- a/www/display.php +++ b/www/display.php @@ -9,11 +9,20 @@ require_once 'www-header.php'; $repo = new Repository(); $repo->loadFromRequest(); +header('X-Pingback: ' . $repo->getLink('linkback', null, true)); +header( + 'Link: <' . $repo->getLink('linkback', null, true) . '>;' + . 'rel="http://webmention.org/"' +); + render( 'display', array( 'repo' => $repo, 'dh' => new \Date_HumanDiff(), + 'htmlhelper' => new HtmlHelper(), + 'domain' => $_SERVER['HTTP_HOST'], + 'flashmessages' => FlashMessage::getAll(), ) ); ?>