X-Git-Url: https://git.cweiske.de/phorkie.git/blobdiff_plain/c5544ea6607e49bd5f3cceecd59903687e8b1654..98f337f8db95b36086e25b38edc5ab42aabf7c5a:/www/display.php diff --git a/www/display.php b/www/display.php index c8df8a9..464741b 100644 --- a/www/display.php +++ b/www/display.php @@ -3,16 +3,26 @@ namespace phorkie; /** * Display paste contents */ +$reqWritePermissions = false; 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(), ) ); ?>