X-Git-Url: https://git.cweiske.de/phorkie.git/blobdiff_plain/92d6cf1f537c2126baf324cbdadbef1067e156b6..825c9662ddc1c534712056c458c8f6d71b81b921:/www/display.php diff --git a/www/display.php b/www/display.php index fc93b0d..a41f4a8 100644 --- a/www/display.php +++ b/www/display.php @@ -3,17 +3,24 @@ namespace phorkie; /** * Display paste contents */ -$secureAtLevel = '0'; +$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(), ) ); ?>